mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-18 08:50:59 -05:00
23 lines
608 B
TypeScript
23 lines
608 B
TypeScript
import TClient from '../client.js';
|
|
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({
|
|
name: {type: String},
|
|
_id: {type: String}
|
|
}, {versionKey: false})},
|
|
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;
|
|
}
|
|
}
|