@replyke/express
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
22 lines (21 loc) • 807 B
TypeScript
import { Model, Sequelize, CreationOptional } from "sequelize";
import { IReportAttributes, IReportCreationAttributes } from "../interfaces/IReport";
export default class Report extends Model<IReportAttributes, IReportCreationAttributes> implements IReportAttributes {
id: string;
projectId: string;
targetId: string;
reporters: string[];
targetType: "Comment" | "Entity";
reason: string;
details: string | null;
status: "Pending" | "On Hold" | "Escalated" | "Dismissed" | "Actioned";
actionTaken: string | null;
createdAt: CreationOptional<Date>;
updatedAt: CreationOptional<Date>;
deletedAt: CreationOptional<Date>;
static initModel(sequelize: Sequelize): void;
/**
* Define associations to other models
*/
static associate(): void;
}