databaseChangeLog: - changeSet: id: create-oauth2-registered-clients author: d.krupin changes: - createTable: tableName: oauth2_registered_client columns: - column: constraints: nullable: false primaryKey: true primaryKeyName: PK_oauth2_client name: id type: VARCHAR(100) - column: constraints: nullable: false name: client_id type: VARCHAR(100) - column: name: client_id_issued_at type: TIMESTAMP constraints: nullable: false - column: name: client_secret type: TEXT constraints: nullable: false - column: name: client_secret_expires_at type: TIMESTAMP constraints: nullable: false - column: name: client_name type: TEXT constraints: nullable: false - column: name: client_authentication_methods type: TEXT constraints: nullable: false - column: name: authorization_grant_types type: TEXT constraints: nullable: true - column: name: redirect_uris type: TEXT constraints: nullable: true - column: name: post_logout_redirect_uris type: TEXT constraints: nullable: false - column: name: scopes type: TEXT constraints: nullable: false - column: name: client_settings type: TEXT constraints: nullable: false - column: name: token_settings type: TEXT constraints: nullable: false - createTable: tableName: doors columns: - column: constraints: nullable: false primaryKey: true primaryKeyName: PK_doors name: id type: TEXT - column: constraints: nullable: false name: unit_id type: VARCHAR(100) - createTable: tableName: qrs columns: - column: constraints: nullable: false primaryKey: true primaryKeyName: PK_qrs name: key_code type: TEXT - column: constraints: nullable: false foreignKeyName: fk_qr_door references: doors(id) name: door_id type: TEXT - column: constraints: nullable: true name: start_date_time type: TIMESTAMP WITH TIME ZONE - column: constraints: nullable: true name: end_date_time type: TIMESTAMP WITH TIME ZONE - addForeignKeyConstraint: baseColumnNames: unit_id baseTableName: doors constraintName: FK_unit_door referencedColumnNames: id referencedTableName: oauth2_registered_client