pull/1313/merge
Stefan Bodewig 2022-05-02 14:09:08 +09:00 committed by GitHub
commit 5a4c0d82e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 12 deletions

View File

@ -108,8 +108,9 @@ CREATE TABLE IF NOT EXISTS authorization_code (
);
CREATE TABLE IF NOT EXISTS client_grant_type (
owner_id BIGINT,
grant_type VARCHAR(2000)
owner_id BIGINT NOT NULL,
grant_type VARCHAR(2000),
UNIQUE (owner_id, grant_type)
);
CREATE TABLE IF NOT EXISTS client_response_type (
@ -199,8 +200,9 @@ CREATE TABLE IF NOT EXISTS client_contact (
);
CREATE TABLE IF NOT EXISTS client_redirect_uri (
owner_id BIGINT,
redirect_uri VARCHAR(2048)
owner_id BIGINT NOT NULL,
redirect_uri VARCHAR(2048),
UNIQUE (owner_id, redirect_uri)
);
CREATE TABLE IF NOT EXISTS client_claims_redirect_uri (
@ -222,8 +224,9 @@ CREATE TABLE IF NOT EXISTS client_resource (
);
CREATE TABLE IF NOT EXISTS client_scope (
owner_id BIGINT,
scope VARCHAR(2048)
owner_id BIGINT NOT NULL,
scope VARCHAR(2048),
UNIQUE (owner_id, scope)
);
CREATE TABLE IF NOT EXISTS token_scope (

View File

@ -109,8 +109,9 @@ CREATE TABLE IF NOT EXISTS authorization_code (
);
CREATE TABLE IF NOT EXISTS client_grant_type (
owner_id BIGINT,
grant_type VARCHAR(2000)
owner_id BIGINT NOT NULL,
grant_type VARCHAR(2000),
UNIQUE (owner_id, grant_type)
);
CREATE TABLE IF NOT EXISTS client_response_type (
@ -200,8 +201,9 @@ CREATE TABLE IF NOT EXISTS client_contact (
);
CREATE TABLE IF NOT EXISTS client_redirect_uri (
owner_id BIGINT,
redirect_uri VARCHAR(2048)
owner_id BIGINT NOT NULL,
redirect_uri VARCHAR(2048),
UNIQUE (owner_id, redirect_uri)
);
CREATE TABLE IF NOT EXISTS client_claims_redirect_uri (
@ -223,8 +225,9 @@ CREATE TABLE IF NOT EXISTS client_resource (
);
CREATE TABLE IF NOT EXISTS client_scope (
owner_id BIGINT,
scope VARCHAR(2048)
owner_id BIGINT NOT NULL,
scope VARCHAR(2048),
UNIQUE (owner_id, scope)
);
CREATE TABLE IF NOT EXISTS token_scope (