UNPKG

qrcode-framework

Version:

30 lines (29 loc) 913 B
import { Association, BelongsToGetAssociationMixin, HasManyGetAssociationsMixin } from 'sequelize'; import { BaseModel } from '../../core/BaseModel'; import { MaterialGroup } from './MaterialGroup'; import { MaterialPayment } from './MaterialPayment'; export declare const MATERIAL_STATUS: { NEW: number; VALID: number; INVALID: number; }; export declare class Material extends BaseModel { static associations: { group: Association<Material, MaterialGroup>; payments: Association<Material, MaterialPayment>; }; id: number; groupId: string; name: string; description: string; thumbUrl: string; url: string; rule: object; status: number; version: string; createdAt: Date; updatedAt: Date; deleted: boolean; getGroup: BelongsToGetAssociationMixin<MaterialGroup>; getPayments: HasManyGetAssociationsMixin<MaterialPayment>; }