Download server/src/models/Card.js from soxogvv/MNEMO: direct link, hf CLI and curl.
- Browser
- Download file 392 Bytes
-
https://huggingface.co/spaces/soxogvv/MNEMO/resolve/main/server/src/models/Card.js
- Command line
-
hf download hf://spaces/soxogvv/MNEMO/server/src/models/Card.js
-
curl -L -o Card.js https://huggingface.co/spaces/soxogvv/MNEMO/resolve/main/server/src/models/Card.js
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); | |