cloudservices/src/models/Moderation.ts

23 lines
478 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,
moderatorID: string,
reason: string,
type: string,
date: string
}
const Moderation: Schema = new Schema({
account: String,
userID: String,
logID: Number,
moderatorID: String,
reason: String,
type: String,
date: Date
});
export default model<ModerationInterface>('Moderation', Moderation);