UNPKG

@replyke/express

Version:

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

16 lines (15 loc) 573 B
import { Model, Sequelize, CreationOptional } from "sequelize"; import { ITokenAttributes, ITokenCreationAttributes } from "../interfaces/IToken"; export default class Token extends Model<ITokenAttributes, ITokenCreationAttributes> implements ITokenAttributes { id: string; projectId: string; userId: string; refreshToken: string | null; createdAt: CreationOptional<Date>; updatedAt: CreationOptional<Date>; static initModel(sequelize: Sequelize): void; /** * Define associations to other models */ static associate(): void; }