From 6356b162b85db97878a387bc3b6982466b1d9ec0 Mon Sep 17 00:00:00 2001 From: kashiuno Date: Sat, 8 Feb 2025 14:14:14 +0300 Subject: [PATCH] Add doors_slots relation to db --- .../db/changelog/1.0.0/changelog.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/main/resources/db/changelog/1.0.0/changelog.yml b/src/main/resources/db/changelog/1.0.0/changelog.yml index 5d54788..2f8e442 100644 --- a/src/main/resources/db/changelog/1.0.0/changelog.yml +++ b/src/main/resources/db/changelog/1.0.0/changelog.yml @@ -166,6 +166,40 @@ databaseChangeLog: nullable: false name: email 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: baseColumnNames: unit_id baseTableName: doors