This commit is contained in:
a.ilin
2026-10-05 14:40:04 +03:00
parent 31a430e2ce
commit a8dd98c70e
43 changed files with 1818 additions and 215 deletions
@@ -0,0 +1,47 @@
databaseChangeLog:
- changeSet:
id: 001-areas
author: gorodar
changes:
- createTable:
tableName: areas
columns:
- column:
name: id
type: uuid
constraints:
primaryKey: true
nullable: false
- column:
name: parent_id
type: uuid
constraints:
foreignKeyName: fk_areas_parent_id
references: areas(id)
- column:
name: name
type: varchar(255)
constraints:
nullable: false
- column:
name: created_at
type: timestamp
defaultValueComputed: "(now() at time zone 'utc')"
constraints:
nullable: false
- column:
name: updated_at
type: timestamp
defaultValueComputed: "(now() at time zone 'utc')"
constraints:
nullable: false
- changeSet:
id: 001-areas-index-parent
author: gorodar
changes:
- createIndex:
indexName: idx_areas_parent_id
tableName: areas
columns:
- column:
name: parent_id