@replyke/express
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
20 lines (19 loc) • 680 B
TypeScript
import { Model } from "sequelize";
export interface IReportAttributes {
id: string;
projectId: string;
reporters: string[];
targetId: string;
targetType: "Comment" | "Entity";
reason: string;
details: string | null;
status: "Pending" | "On Hold" | "Escalated" | "Dismissed" | "Actioned";
actionTaken: string | null;
createdAt: Date;
updatedAt: Date;
deletedAt: Date | null;
}
export interface IReportCreationAttributes extends Omit<IReportAttributes, "id" | "status" | "createdAt" | "updatedAt" | "actionTaken"> {
}
export default interface IReport extends Model<IReportAttributes, IReportCreationAttributes>, IReportAttributes {
}