UNPKG

@replyke/express

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

19 lines (18 loc) 704 B
import { Model, Sequelize, CreationOptional } from "sequelize"; import { IAppNotificationAttributes, IAppNotificationCreationAttributes } from "../interfaces/IAppNotification"; export default class AppNotification extends Model<IAppNotificationAttributes, IAppNotificationCreationAttributes> implements IAppNotificationAttributes { id: string; projectId: string; userId: string; type: string; isRead: boolean; action: string; metadata: Record<string, any>; createdAt: CreationOptional<Date>; updatedAt: CreationOptional<Date>; static initModel(sequelize: Sequelize): void; /** * Define associations to other models */ static associate(): void; }