Spaces:
Sleeping
Sleeping
Download Backend_node/src/models/templates.models.ts from VashuTheGreat2/ML-Learner: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/Backend_node/src/models/templates.models.ts
- Command line
-
hf download hf://spaces/VashuTheGreat2/ML-Learner/Backend_node/src/models/templates.models.ts
-
curl -L -o templates.models.ts https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/Backend_node/src/models/templates.models.ts
380 Bytes
| import mongoose from "mongoose"; | |
| const TemplateSchema=new mongoose.Schema({ | |
| title:{ | |
| type:String, | |
| required:true, | |
| }, | |
| template:{ | |
| type:String, | |
| required:true, | |
| unique:true | |
| }, | |
| temp_data:{ | |
| type:Object, | |
| required:true | |
| } | |
| }) | |
| const Template = mongoose.model("Template", TemplateSchema); | |
| export default Template | |