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

export type MessageDocument = IMessage & Document;

const schema = new Schema({
  title: { type: String, required: true },
  content: { type: String, required: true },
});

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