Spaces:
Running
Running
Download models/Reaction.js from 4send/messenger: direct link, hf CLI and curl.
- Browser
- Download file 344 Bytes
-
https://huggingface.co/spaces/4send/messenger/resolve/main/models/Reaction.js
- Command line
-
hf download hf://spaces/4send/messenger/models/Reaction.js
-
curl -L -o Reaction.js https://huggingface.co/spaces/4send/messenger/resolve/main/models/Reaction.js
344 Bytes
| const mongoose = require('mongoose'); | |
| const ReactionSchema = new mongoose.Schema({ | |
| message_id: { type: mongoose.Schema.Types.ObjectId, ref: 'Message', index: true }, | |
| user: { type: String }, | |
| emoji: { type: String } | |
| }); | |
| ReactionSchema.index({ message_id: 1, user: 1 }); | |
| module.exports = mongoose.model('Reaction', ReactionSchema); | |