1 import { AllowNull, Column, Default, DefaultScope, HasOne, IsInt, Model, Table } from 'sequelize-typescript'
2 import { AccountModel } from '../account/account'
7 model: () => AccountModel,
13 tableName: 'application'
15 export class ApplicationModel extends Model<ApplicationModel> {
21 migrationVersion: number
23 @HasOne(() => AccountModel, {
31 static countTotal () {
32 return ApplicationModel.count()
36 return ApplicationModel.findOne()