import { Schema, Document } from "mongoose";
import { IUser } from "@/types/models/user";
import ModelName from "@/constants/dbEnum";

export type UserDocument = IUser & Document;

const schema = new Schema({
  name: { type: String, required: true },
  email: { type: String, required: true },
  avatar: String,
});

export default {
  [ModelName.User]: schema,
};
