aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/application-interface.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-16 09:45:46 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-16 09:45:46 +0200
commit74889a71fe687dda74f2a687653122327807af36 (patch)
treee938e8b6401b74fbec80513a877d9967f2c0dbcd /server/models/application-interface.ts
parent15a302943d84bc0978b84fe33110c4daa451d311 (diff)
downloadPeerTube-74889a71fe687dda74f2a687653122327807af36.tar.gz
PeerTube-74889a71fe687dda74f2a687653122327807af36.tar.zst
PeerTube-74889a71fe687dda74f2a687653122327807af36.zip
Reorganize model files
Diffstat (limited to 'server/models/application-interface.ts')
-rw-r--r--server/models/application-interface.ts26
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 @@
1import * as Sequelize from 'sequelize'
2
3export 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
11export interface ApplicationClass {
12 loadMigrationVersion: ApplicationMethods.LoadMigrationVersion
13 updateMigrationVersion: ApplicationMethods.UpdateMigrationVersion
14}
15
16export interface ApplicationAttributes {
17 migrationVersion: number
18}
19
20export interface ApplicationInstance extends ApplicationClass, ApplicationAttributes, Sequelize.Instance<ApplicationAttributes> {
21 id: number
22 createdAt: Date
23 updatedAt: Date
24}
25
26export interface ApplicationModel extends ApplicationClass, Sequelize.Model<ApplicationInstance, ApplicationAttributes> {}