migrations.ts 670 B

123456789101112131415161718192021222324252627
  1. import * as Sequelize from 'sequelize'
  2. declare namespace Migration {
  3. interface Boolean extends Sequelize.DefineAttributeColumnOptions {
  4. defaultValue: boolean | null
  5. }
  6. interface String extends Sequelize.DefineAttributeColumnOptions {
  7. defaultValue: string | null
  8. }
  9. interface Integer extends Sequelize.DefineAttributeColumnOptions {
  10. defaultValue: number | null
  11. }
  12. interface BigInteger extends Sequelize.DefineAttributeColumnOptions {
  13. defaultValue: Sequelize.DataTypeBigInt | number | null
  14. }
  15. interface UUID extends Sequelize.DefineAttributeColumnOptions {
  16. defaultValue: Sequelize.DataTypeUUIDv4 | null
  17. }
  18. }
  19. export {
  20. Migration
  21. }