Add logic for qrs extracting and add database change log for oauth2 clients

This commit is contained in:
kashiuno
2025-01-04 12:00:40 +03:00
parent 913c895cab
commit 81f7e5ebde
7 changed files with 143 additions and 1 deletions
@@ -0,0 +1,63 @@
databaseChangeLog:
- changeSet:
id: create-oauth2-registered-clients
author: d.krupin
changes:
- createTable:
tableName: oauth2_authorized_client
columns:
- column:
constraints:
nullable: false
primaryKey: true
primaryKeyName: PK_oauth2_client
name: client_registration_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
type: VARCHAR(100)
constraints:
nullable: false
- column:
name: access_token_value
type: TEXT
constraints:
nullable: false
- column:
name: access_token_issued_at
type: TIMESTAMP
constraints:
nullable: false
- column:
name: access_token_expires_at
type: TIMESTAMP
constraints:
nullable: false
- column:
name: access_token_scopes
type: TEXT
constraints:
nullable: true
- column:
name: refresh_token_value
type: TEXT
constraints:
nullable: true
- column:
name: refresh_token_issued_at
type: TIMESTAMP
constraints:
nullable: true
- column:
name: created_at
type: TIMESTAMP
constraints:
nullable: false
defaultValueComputed: CURRENT_TIMESTAMP