auth
This commit is contained in:
@@ -0,0 +1,141 @@
|
||||
databaseChangeLog:
|
||||
- changeSet:
|
||||
id: 002-attractions
|
||||
author: gorodar
|
||||
changes:
|
||||
- createTable:
|
||||
tableName: attractions
|
||||
columns:
|
||||
- column:
|
||||
name: id
|
||||
type: uuid
|
||||
constraints:
|
||||
primaryKey: true
|
||||
nullable: false
|
||||
- column:
|
||||
name: area_id
|
||||
type: uuid
|
||||
constraints:
|
||||
foreignKeyName: fk_attractions_area_id
|
||||
references: areas(id)
|
||||
nullable: false
|
||||
- column:
|
||||
name: name
|
||||
type: varchar(255)
|
||||
constraints:
|
||||
nullable: false
|
||||
- column:
|
||||
name: icon_key
|
||||
type: varchar(512)
|
||||
- column:
|
||||
name: about
|
||||
type: text
|
||||
- column:
|
||||
name: latitude
|
||||
type: numeric(9,6)
|
||||
- column:
|
||||
name: longitude
|
||||
type: numeric(9,6)
|
||||
- column:
|
||||
name: address
|
||||
type: varchar(512)
|
||||
- column:
|
||||
name: facts
|
||||
type: jsonb
|
||||
- column:
|
||||
name: cv_profile
|
||||
type: varchar(32)
|
||||
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: 002-attractions-index-area
|
||||
author: gorodar
|
||||
changes:
|
||||
- createIndex:
|
||||
indexName: idx_attractions_area_id
|
||||
tableName: attractions
|
||||
columns:
|
||||
- column:
|
||||
name: area_id
|
||||
- changeSet:
|
||||
id: 002-attraction-photos
|
||||
author: gorodar
|
||||
changes:
|
||||
- createTable:
|
||||
tableName: attraction_photos
|
||||
columns:
|
||||
- column:
|
||||
name: id
|
||||
type: uuid
|
||||
constraints:
|
||||
primaryKey: true
|
||||
nullable: false
|
||||
- column:
|
||||
name: attraction_id
|
||||
type: uuid
|
||||
constraints:
|
||||
foreignKeyName: fk_attraction_photos_attraction_id
|
||||
references: attractions(id)
|
||||
nullable: false
|
||||
- column:
|
||||
name: s3_photo_key
|
||||
type: varchar(512)
|
||||
constraints:
|
||||
nullable: false
|
||||
- column:
|
||||
name: s3_features_key
|
||||
type: varchar(512)
|
||||
constraints:
|
||||
nullable: false
|
||||
- column:
|
||||
name: feature_format_version
|
||||
type: integer
|
||||
constraints:
|
||||
nullable: false
|
||||
- column:
|
||||
name: algo_id
|
||||
type: varchar(64)
|
||||
constraints:
|
||||
nullable: false
|
||||
- column:
|
||||
name: keypoints_count
|
||||
type: integer
|
||||
constraints:
|
||||
nullable: false
|
||||
- column:
|
||||
name: sort_order
|
||||
type: integer
|
||||
constraints:
|
||||
nullable: false
|
||||
- column:
|
||||
name: created_at
|
||||
type: timestamp
|
||||
defaultValueComputed: "(now() at time zone 'utc')"
|
||||
constraints:
|
||||
nullable: false
|
||||
- addUniqueConstraint:
|
||||
tableName: attraction_photos
|
||||
columnNames: attraction_id, sort_order
|
||||
constraintName: uq_attraction_photos_sort_order
|
||||
- changeSet:
|
||||
id: 002-attraction-photos-index-attraction
|
||||
author: gorodar
|
||||
changes:
|
||||
- createIndex:
|
||||
indexName: idx_attraction_photos_attraction_id
|
||||
tableName: attraction_photos
|
||||
columns:
|
||||
- column:
|
||||
name: attraction_id
|
||||
Reference in New Issue
Block a user