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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 344 - (hide annotations)
Mon Jul 29 17:29:40 2024 UTC (8 months, 1 week ago) by rakin
File MIME type: application/typescript
File size: 531 byte(s)
chore: eslint autofix
1 rakin 338 import { Schema, model } from 'mongoose';
2 rakin 148
3 rakin 338 export interface ISpamViolation {
4     user_id: string;
5     guild_id: string;
6     strike?: number;
7     createdAt: Date;
8     }
9 rakin 148
10 rakin 338 const schema = new Schema({
11 rakin 148 user_id: {
12 rakin 338 type: String,
13     required: true
14 rakin 148 },
15     guild_id: {
16 rakin 338 type: String,
17     required: true
18 rakin 148 },
19     strike: {
20 rakin 338 type: Number,
21     required: true,
22     default: 1
23     },
24     createdAt: {
25     type: Date,
26     required: true
27 rakin 148 }
28     });
29    
30 rakin 338 export default model('SpamViolation', schema);

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26