Add clost, partners and clients to migrations

This commit is contained in:
kashiuno 2025-02-06 21:20:54 +03:00
parent a5c570ec42
commit 195df55fcf

View File

@ -116,6 +116,56 @@ databaseChangeLog:
nullable: true nullable: true
name: end_date_time name: end_date_time
type: TIMESTAMP WITH TIME ZONE type: TIMESTAMP WITH TIME ZONE
- createTable:
tableName: slots
columns:
- column:
constraints:
nullable: false
primaryKey: true
primaryKeyName: PK_slots
name: id
type: TEXT
- column:
constraints:
nullable: false
name: start_time
type: TIME WITH TIME ZONE
- column:
constraints:
nullable: false
name: end_time
type: TIME WITH TIME ZONE
- createTable:
tableName: partners
columns:
- column:
constraints:
nullable: false
primaryKey: true
primaryKeyName: PK_partners
name: id
type: TEXT
- column:
constraints:
nullable: false
name: name
type: TEXT
- createTable:
tableName: clients
columns:
- column:
constraints:
nullable: false
primaryKey: true
primaryKeyName: PK_clients
name: id
type: TEXT
- column:
constraints:
nullable: false
name: email
type: TEXT
- addForeignKeyConstraint: - addForeignKeyConstraint:
baseColumnNames: unit_id baseColumnNames: unit_id
baseTableName: doors baseTableName: doors