Fix schema to latest version

This commit is contained in:
kashiuno 2025-02-19 17:08:51 +03:00
parent 6abafedfec
commit 2211280078

View File

@ -128,12 +128,30 @@ databaseChangeLog:
constraints: constraints:
nullable: false nullable: false
- column: - column:
name: parent_door_id name: parent_door_ids
type: TEXT type: TEXT
constraints: constraints:
nullable: true nullable: true
foreignKeyName: FK_parent_doors - createTable:
references: doors(id) tableName: clients
columns:
- column:
constraints:
nullable: false
primaryKey: true
primaryKeyName: PK_clients
name: id
type: TEXT
- column:
constraints:
nullable: false
name: email
type: TEXT
- column:
constraints:
nullable: false
name: email_is_confirmed
type: BOOLEAN
- createTable: - createTable:
tableName: rent tableName: rent
columns: columns:
@ -160,7 +178,7 @@ databaseChangeLog:
constraints: constraints:
nullable: false nullable: false
foreignKeyName: FK_rent_clients foreignKeyName: FK_rent_clients
references: rent(id) references: clients(id)
- column: - column:
name: date name: date
type: DATE type: DATE
@ -188,26 +206,6 @@ databaseChangeLog:
type: TIMESTAMP WITH TIME ZONE type: TIMESTAMP WITH TIME ZONE
constraints: constraints:
nullable: false nullable: false
- 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
- column:
constraints:
nullable: false
name: email_is_confirmed
type: BOOLEAN
- createTable: - createTable:
tableName: schedule tableName: schedule
columns: columns: