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

Contents of /trunk/src/models/Hardmute.ts

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26