aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/migrations.ts
blob: 24badb166840a9a89673827af501994e6a9b876f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import * as Sequelize from 'sequelize'

declare namespace Migration {
  interface Boolean extends Sequelize.DefineAttributeColumnOptions {
    defaultValue: boolean | null
  }

  interface String extends Sequelize.DefineAttributeColumnOptions {
    defaultValue: string | null
  }

  interface Integer extends Sequelize.DefineAttributeColumnOptions {
    defaultValue: number | null
  }

  interface BigInteger extends Sequelize.DefineAttributeColumnOptions {
    defaultValue: Sequelize.DataTypeBigInt | number | null
  }

  interface UUID extends Sequelize.DefineAttributeColumnOptions {
    defaultValue: Sequelize.DataTypeUUIDv4 | null
  }
}

export {
  Migration
}