PeerTube/server/models/migrations.ts

28 lines
578 B
TypeScript
Raw Normal View History

2019-04-18 11:28:17 +02:00
import { ModelAttributeColumnOptions } from 'sequelize'
declare namespace Migration {
2019-04-18 11:28:17 +02:00
interface Boolean extends ModelAttributeColumnOptions {
defaultValue: boolean | null
}
2019-04-18 11:28:17 +02:00
interface String extends ModelAttributeColumnOptions {
defaultValue: string | null
}
2019-04-18 11:28:17 +02:00
interface Integer extends ModelAttributeColumnOptions {
defaultValue: number | null
}
2019-04-18 11:28:17 +02:00
interface BigInteger extends ModelAttributeColumnOptions {
defaultValue: number | null
}
2018-07-26 10:45:10 +02:00
2019-04-18 11:28:17 +02:00
interface UUID extends ModelAttributeColumnOptions {
defaultValue: null
2018-07-26 10:45:10 +02:00
}
}
export {
Migration
}