From 195df55fcfc2ae2f6a1d5bd2535845c599d68343 Mon Sep 17 00:00:00 2001 From: kashiuno Date: Thu, 6 Feb 2025 21:20:54 +0300 Subject: [PATCH] Add clost, partners and clients to migrations --- .../db/changelog/1.0.0/changelog.yml | 50 +++++++++++++++++++ 1 file changed, 50 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 562c8cc..5d54788 100644 --- a/src/main/resources/db/changelog/1.0.0/changelog.yml +++ b/src/main/resources/db/changelog/1.0.0/changelog.yml @@ -116,6 +116,56 @@ 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: + - 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: baseColumnNames: unit_id baseTableName: doors