cloudservices/src/models/Moderation.ts

24 lines
475 B
TypeScript
Raw Normal View History

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,
2019-10-15 18:39:08 -04:00
date: Date
2019-10-14 15:46:10 -04:00
}
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);