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 .settings
.springBeans .springBeans
.sts4-cache .sts4-cache
.gigaide
bin/ bin/
!**/src/main/**/bin/ !**/src/main/**/bin/
!**/src/test/**/bin/ !**/src/test/**/bin/

View File

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