/[sudobot]/trunk/src/models/MuteRecord.ts
ViewVC logotype

Annotation of /trunk/src/models/MuteRecord.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 335 - (hide annotations)
Mon Jul 29 17:29:36 2024 UTC (8 months, 1 week ago) by rakin
File MIME type: application/typescript
File size: 342 byte(s)
refactor(automute): use mongodb
1 rakin 335 import { Schema, model } from 'mongoose';
2 rakin 227
3 rakin 335 const schema = new Schema({
4 rakin 227 user_id: {
5 rakin 335 type: String,
6     required: true,
7 rakin 227 unique: true
8     },
9     guild_id: {
10 rakin 335 type: String,
11     required: true
12     },
13     createdAt: {
14     type: Date,
15     required: true
16 rakin 227 }
17     });
18    
19 rakin 335 export default model("MuteRecord", schema);

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26