1 import { AllowNull, Column, Default, DefaultScope, HasOne, IsInt, Model, Table } from 'sequelize-typescript'
2 import { AccountModel } from '../account/account'
13 tableName: 'application',
16 export class ApplicationModel extends Model<ApplicationModel> {
22 migrationVersion: number
24 @HasOne(() => AccountModel, {
32 static countTotal () {
33 return ApplicationModel.count()
37 return ApplicationModel.findOne()