1
0
Fork 0
peertube/server/models/application/application.ts

18 lines
340 B
TypeScript
Raw Normal View History

2017-12-12 11:53:50 -05:00
import { AllowNull, Column, Default, IsInt, Model, Table } from 'sequelize-typescript'
@Table({
tableName: 'application'
})
export class ApplicationModel extends Model<ApplicationModel> {
@AllowNull(false)
@Default(0)
@IsInt
@Column
migrationVersion: number
static countTotal () {
return ApplicationModel.count()
}
}