diff options
Diffstat (limited to 'server/models/application-interface.ts')
-rw-r--r-- | server/models/application-interface.ts | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/server/models/application-interface.ts b/server/models/application-interface.ts deleted file mode 100644 index c03513db1..000000000 --- a/server/models/application-interface.ts +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | import * as Sequelize from 'sequelize' | ||
2 | |||
3 | export namespace ApplicationMethods { | ||
4 | export type LoadMigrationVersionCallback = (err: Error, version: number) => void | ||
5 | export type LoadMigrationVersion = (callback: LoadMigrationVersionCallback) => void | ||
6 | |||
7 | export type UpdateMigrationVersionCallback = (err: Error, applicationInstance: ApplicationAttributes) => void | ||
8 | export type UpdateMigrationVersion = (newVersion: number, transaction: Sequelize.Transaction, callback: UpdateMigrationVersionCallback) => void | ||
9 | } | ||
10 | |||
11 | export interface ApplicationClass { | ||
12 | loadMigrationVersion: ApplicationMethods.LoadMigrationVersion | ||
13 | updateMigrationVersion: ApplicationMethods.UpdateMigrationVersion | ||
14 | } | ||
15 | |||
16 | export interface ApplicationAttributes { | ||
17 | migrationVersion: number | ||
18 | } | ||
19 | |||
20 | export interface ApplicationInstance extends ApplicationClass, ApplicationAttributes, Sequelize.Instance<ApplicationAttributes> { | ||
21 | id: number | ||
22 | createdAt: Date | ||
23 | updatedAt: Date | ||
24 | } | ||
25 | |||
26 | export interface ApplicationModel extends ApplicationClass, Sequelize.Model<ApplicationInstance, ApplicationAttributes> {} | ||