Change db schema

This commit is contained in:
kashiuno 2025-02-14 18:24:09 +03:00
parent 6356b162b8
commit b0323aebff
2 changed files with 22 additions and 33 deletions

1
.gitignore vendored
View File

@ -13,6 +13,7 @@ build/
.settings
.springBeans
.sts4-cache
.gigaide
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

View File

@ -89,6 +89,16 @@ databaseChangeLog:
nullable: false
name: unit_id
type: VARCHAR(100)
- column:
constraints:
nullable: true
name: description
type: TEXT
- column:
name: count
type: INT
constraints:
nullable: false
- createTable:
tableName: qrs
columns:
@ -116,26 +126,6 @@ databaseChangeLog:
nullable: true
name: end_date_time
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:
@ -167,13 +157,13 @@ databaseChangeLog:
name: email
type: TEXT
- createTable:
tableName: slots_doors
tableName: schedule
columns:
- column:
constraints:
nullable: false
primaryKey: true
primaryKeyName: PK_slots_doors
primaryKeyName: PK_schedule_doors
name: id
type: TEXT
- column:
@ -181,23 +171,21 @@ databaseChangeLog:
type: TEXT
constraints:
nullable: false
foreignKeyName: FK_slots_doors_doors
foreignKeyName: FK_schedule_doors
references: doors(id)
- column:
name: slot_id
type: TEXT
constraints:
nullable: false
foreignKeyName: FK_slots_doors_slots
references: slots(id)
nullable: true
name: start_time
type: TIME WITH TIME ZONE
- column:
name: day_of_week
type: INT
constraints:
nullable: false
nullable: true
name: end_time
type: TIME WITH TIME ZONE
- column:
name: count
type: INT
name: date
type: DATE
constraints:
nullable: false
- addForeignKeyConstraint: