Add doors_slots relation to db
This commit is contained in:
parent
195df55fcf
commit
6356b162b8
@ -166,6 +166,40 @@ databaseChangeLog:
|
|||||||
nullable: false
|
nullable: false
|
||||||
name: email
|
name: email
|
||||||
type: TEXT
|
type: TEXT
|
||||||
|
- createTable:
|
||||||
|
tableName: slots_doors
|
||||||
|
columns:
|
||||||
|
- column:
|
||||||
|
constraints:
|
||||||
|
nullable: false
|
||||||
|
primaryKey: true
|
||||||
|
primaryKeyName: PK_slots_doors
|
||||||
|
name: id
|
||||||
|
type: TEXT
|
||||||
|
- column:
|
||||||
|
name: door_id
|
||||||
|
type: TEXT
|
||||||
|
constraints:
|
||||||
|
nullable: false
|
||||||
|
foreignKeyName: FK_slots_doors_doors
|
||||||
|
references: doors(id)
|
||||||
|
- column:
|
||||||
|
name: slot_id
|
||||||
|
type: TEXT
|
||||||
|
constraints:
|
||||||
|
nullable: false
|
||||||
|
foreignKeyName: FK_slots_doors_slots
|
||||||
|
references: slots(id)
|
||||||
|
- column:
|
||||||
|
name: day_of_week
|
||||||
|
type: INT
|
||||||
|
constraints:
|
||||||
|
nullable: false
|
||||||
|
- column:
|
||||||
|
name: count
|
||||||
|
type: INT
|
||||||
|
constraints:
|
||||||
|
nullable: false
|
||||||
- addForeignKeyConstraint:
|
- addForeignKeyConstraint:
|
||||||
baseColumnNames: unit_id
|
baseColumnNames: unit_id
|
||||||
baseTableName: doors
|
baseTableName: doors
|
||||||
|
Loading…
Reference in New Issue
Block a user