Spaces:
Runtime error
Runtime error
Download models/Project.ts from 1337V/d33psite1337: direct link, hf CLI and curl.
- Browser
- Download file 457 Bytes
-
https://huggingface.co/spaces/1337V/d33psite1337/resolve/main/models/Project.ts
- Command line
-
hf download hf://spaces/1337V/d33psite1337/models/Project.ts
-
curl -L -o Project.ts https://huggingface.co/spaces/1337V/d33psite1337/resolve/main/models/Project.ts
457 Bytes
| import mongoose from "mongoose"; | |
| const ProjectSchema = new mongoose.Schema({ | |
| space_id: { | |
| type: String, | |
| required: true, | |
| }, | |
| user_id: { | |
| type: String, | |
| required: true, | |
| }, | |
| prompts: { | |
| type: [String], | |
| default: [], | |
| }, | |
| _createdAt: { | |
| type: Date, | |
| default: Date.now, | |
| }, | |
| _updatedAt: { | |
| type: Date, | |
| default: Date.now, | |
| }, | |
| }); | |
| export default mongoose.models.Project || | |
| mongoose.model("Project", ProjectSchema); | |