import mongoose, { Schema, models } from "mongoose";

interface IUserType {
    type: string;
    token: string;
    typeToken: string;
    description: string;
}

const UserTypesSchema = new Schema<IUserType>({
    type: { type: String, required: true },
    token: { type: String, required: true },
    typeToken: { type: String, required: true },
    description: { type: String, required: true },
});

const UserTypes = models.UserTypes || mongoose.model("UserTypes", UserTypesSchema);

export { UserTypes };
export type { IUserType };
