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

Diff of /trunk/src/models/PunishmentAppeal.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 81 by rakin, Mon Jul 29 17:28:31 2024 UTC revision 337 by rakin, Mon Jul 29 17:29:37 2024 UTC
# Line 1  Line 1 
1  import { BuildOptions, DataTypes, Model, Optional } from 'sequelize';  import { Schema, model } from 'mongoose';
 import DiscordClient from '../client/Client';  
2    
3  class PunishmentAppeal extends Model {  const schema = new Schema({
       
 }  
   
 PunishmentAppeal.init({  
     id: {  
         type: DataTypes.INTEGER,  
         primaryKey: true,  
         autoIncrement: true,  
         allowNull: false,  
     },  
4      user_id: {      user_id: {
5          type: DataTypes.STRING,          type: String,
6          allowNull: false,          required: true,
7      },      },
8      guild_id: {      guild_id: {
9          type: DataTypes.STRING,          type: String,
10          allowNull: false,          required: true,
11      },      },
12      content: {      content: {
13          type: DataTypes.TEXT,          type: String,
14          allowNull: false          required: true
15        },
16        createdAt: {
17            type: Date,
18            required: true
19      }      }
 }, {  
     sequelize: DiscordClient.client.db.sequelize,  
     modelName: 'PunishmentAppeal',  
     updatedAt: false,  
     tableName: 'appeals'  
20  });  });
21    
 export default PunishmentAppeal;  
22    export default model('PunishmentAppeal', schema);

Legend:
Removed from v.81  
changed lines
  Added in v.337

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26