MNEMO / server /src /models /Card.js
AadityaPawarx1's picture
style: fix image rendering and refine AnswerRenderer logic
bcf42ee
raw
history blame contribute delete
392 Bytes
import mongoose from "mongoose";
const cardSchema = new mongoose.Schema(
{
title: {
type: String,
required: true,
trim: true
},
parentId: {
type: mongoose.Schema.Types.ObjectId,
default: null
},
order: {
type: Number,
default: 0
}
},
{
timestamps: true
}
);
export const Card = mongoose.model("Card", cardSchema);