1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-18 13:00:58 -05:00
Daggerbot-TS/src/models/suggestion.ts

23 lines
608 B
TypeScript
Raw Normal View History

2023-04-14 06:47:58 -04:00
import TClient from '../client.js';
2023-02-26 23:31:16 -05:00
import mongoose from 'mongoose';
const Schema = mongoose.model('suggestion', new mongoose.Schema({
_id: {type: String, required:true},
idea: {type: String, required:true},
user: {required:true, type: new mongoose.Schema({
2023-08-07 17:44:02 -04:00
name: {type: String},
2023-02-26 23:31:16 -05:00
_id: {type: String}
2023-02-27 02:14:54 -05:00
}, {versionKey: false})},
2023-02-26 23:31:16 -05:00
state: {type: String, required:true}
}, {versionKey: false}));
export default class suggestion extends Schema {
client: TClient;
_content: typeof Schema;
constructor(client:TClient){
super();
this.client = client;
this._content = Schema;
}
}