Download server/src/models/Entry.js from soxogvv/MNEMO: direct link, hf CLI and curl.
- Browser
- Download file 479 Bytes
-
https://huggingface.co/spaces/soxogvv/MNEMO/resolve/main/server/src/models/Entry.js
- Command line
-
hf download hf://spaces/soxogvv/MNEMO/server/src/models/Entry.js
-
curl -L -o Entry.js https://huggingface.co/spaces/soxogvv/MNEMO/resolve/main/server/src/models/Entry.js
479 Bytes
| import mongoose from "mongoose"; | |
| const entrySchema = new mongoose.Schema( | |
| { | |
| cardId: { | |
| type: mongoose.Schema.Types.ObjectId, | |
| required: true, | |
| ref: "Card" | |
| }, | |
| question: { | |
| type: String, | |
| required: true, | |
| trim: true | |
| }, | |
| answer: { | |
| type: String, | |
| required: true | |
| }, | |
| order: { | |
| type: Number, | |
| default: 0 | |
| } | |
| }, | |
| { | |
| timestamps: true | |
| } | |
| ); | |
| export const Entry = mongoose.model("Entry", entrySchema); | |