Change schema to fit auth server
This commit is contained in:
@@ -11,56 +11,68 @@ databaseChangeLog:
|
||||
nullable: false
|
||||
primaryKey: true
|
||||
primaryKeyName: PK_oauth2_client
|
||||
name: client_registration_id
|
||||
name: id
|
||||
type: VARCHAR(100)
|
||||
- column:
|
||||
constraints:
|
||||
nullable: false
|
||||
primaryKey: true
|
||||
primaryKeyName: PK_oauth2_client
|
||||
name: principal_name
|
||||
type: VARCHAR(200)
|
||||
- column:
|
||||
name: access_token_type
|
||||
name: client_id
|
||||
type: VARCHAR(100)
|
||||
- column:
|
||||
name: client_id_issued_at
|
||||
type: TIMESTAMP
|
||||
constraints:
|
||||
nullable: false
|
||||
- column:
|
||||
name: access_token_value
|
||||
name: client_secret
|
||||
type: TEXT
|
||||
constraints:
|
||||
nullable: false
|
||||
- column:
|
||||
name: access_token_issued_at
|
||||
name: client_secret_expires_at
|
||||
type: TIMESTAMP
|
||||
constraints:
|
||||
nullable: false
|
||||
- column:
|
||||
name: access_token_expires_at
|
||||
type: TIMESTAMP
|
||||
name: client_name
|
||||
type: TEXT
|
||||
constraints:
|
||||
nullable: false
|
||||
- column:
|
||||
name: access_token_scopes
|
||||
name: client_authentication_methods
|
||||
type: TEXT
|
||||
constraints:
|
||||
nullable: false
|
||||
- column:
|
||||
name: authorization_grant_types
|
||||
type: TEXT
|
||||
constraints:
|
||||
nullable: true
|
||||
- column:
|
||||
name: refresh_token_value
|
||||
name: redirect_uris
|
||||
type: TEXT
|
||||
constraints:
|
||||
nullable: true
|
||||
- column:
|
||||
name: refresh_token_issued_at
|
||||
type: TIMESTAMP
|
||||
name: post_logout_redirect_uris
|
||||
type: TEXT
|
||||
constraints:
|
||||
nullable: true
|
||||
nullable: false
|
||||
- column:
|
||||
name: created_at
|
||||
type: TIMESTAMP
|
||||
name: scopes
|
||||
type: TEXT
|
||||
constraints:
|
||||
nullable: false
|
||||
- column:
|
||||
name: client_settings
|
||||
type: JSONB
|
||||
constraints:
|
||||
nullable: false
|
||||
- column:
|
||||
name: token_settings
|
||||
type: JSONB
|
||||
constraints:
|
||||
nullable: false
|
||||
defaultValueComputed: CURRENT_TIMESTAMP
|
||||
- createTable:
|
||||
tableName: doors
|
||||
columns:
|
||||
@@ -76,11 +88,6 @@ databaseChangeLog:
|
||||
nullable: false
|
||||
name: unit_id
|
||||
type: VARCHAR(100)
|
||||
- column:
|
||||
constraints:
|
||||
nullable: false
|
||||
name: principal_name
|
||||
type: VARCHAR(200)
|
||||
- createTable:
|
||||
tableName: qrs
|
||||
columns:
|
||||
@@ -109,8 +116,8 @@ databaseChangeLog:
|
||||
name: end_date_time
|
||||
type: TIMESTAMP WITH TIME ZONE
|
||||
- addForeignKeyConstraint:
|
||||
baseColumnNames: unit_id, principal_name
|
||||
baseColumnNames: unit_id
|
||||
baseTableName: doors
|
||||
constraintName: FK_unit_door
|
||||
referencedColumnNames: client_registration_id, principal_name
|
||||
referencedColumnNames: id
|
||||
referencedTableName: oauth2_authorized_client
|
||||
Reference in New Issue
Block a user