@replyke/express
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
15 lines (14 loc) • 536 B
TypeScript
import { Model, Sequelize, CreationOptional } from "sequelize";
import { IFollowAttributes, IFollowCreationAttributes } from "../interfaces/IFollow";
export default class Follow extends Model<IFollowAttributes, IFollowCreationAttributes> implements IFollowAttributes {
id: string;
projectId: string;
followerId: string;
followedId: string;
createdAt: CreationOptional<Date>;
static initModel(sequelize: Sequelize): void;
/**
* Define associations to other models
*/
static associate(): void;
}