aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/migrations.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/migrations.ts')
-rw-r--r--server/models/migrations.ts27
1 files changed, 27 insertions, 0 deletions
diff --git a/server/models/migrations.ts b/server/models/migrations.ts
new file mode 100644
index 000000000..24badb166
--- /dev/null
+++ b/server/models/migrations.ts
@@ -0,0 +1,27 @@
1import * as Sequelize from 'sequelize'
2
3declare namespace Migration {
4 interface Boolean extends Sequelize.DefineAttributeColumnOptions {
5 defaultValue: boolean | null
6 }
7
8 interface String extends Sequelize.DefineAttributeColumnOptions {
9 defaultValue: string | null
10 }
11
12 interface Integer extends Sequelize.DefineAttributeColumnOptions {
13 defaultValue: number | null
14 }
15
16 interface BigInteger extends Sequelize.DefineAttributeColumnOptions {
17 defaultValue: Sequelize.DataTypeBigInt | number | null
18 }
19
20 interface UUID extends Sequelize.DefineAttributeColumnOptions {
21 defaultValue: Sequelize.DataTypeUUIDv4 | null
22 }
23}
24
25export {
26 Migration
27}