cr-database/mongodb/Moderation.ts

38 lines
577 B
TypeScript
Raw Permalink Normal View History

2022-02-28 11:51:44 -05:00
import { prop } from '@typegoose/typegoose';
export enum ModType {
Warn,
Unmute,
Mute,
Kick,
Unban,
Ban,
}
export default class Moderation {
@prop({ required: true })
public userID: string;
@prop({ required: true })
public logID: string;
@prop({ required: true })
public moderatorID: string;
2022-03-01 13:36:50 -05:00
@prop()
2022-02-28 11:51:44 -05:00
public reason: string;
@prop({ required: true })
public date: Date;
@prop({ required: true })
public type: ModType;
@prop()
public expiration: {
date: Date;
processed: boolean;
}
}