2019-10-14 15:46:10 -04:00
|
|
|
import { Document, Schema, model } from 'mongoose';
|
|
|
|
|
|
|
|
export interface ModerationInterface extends Document {
|
|
|
|
account: string,
|
|
|
|
userID: string,
|
|
|
|
logID: string,
|
2019-10-14 23:37:04 -04:00
|
|
|
moderatorID: string,
|
2019-10-14 15:46:10 -04:00
|
|
|
reason: string,
|
|
|
|
type: string,
|
|
|
|
date: string
|
|
|
|
}
|
|
|
|
|
|
|
|
const Moderation: Schema = new Schema({
|
|
|
|
account: String,
|
|
|
|
userID: String,
|
|
|
|
logID: Number,
|
|
|
|
moderatorID: String,
|
|
|
|
reason: String,
|
|
|
|
type: String,
|
2019-10-14 23:37:04 -04:00
|
|
|
date: Date,
|
2019-10-14 15:46:10 -04:00
|
|
|
});
|
2019-10-14 23:37:04 -04:00
|
|
|
|
|
|
|
export default model<ModerationInterface>('Moderation', Moderation);
|