mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
18a142ab65
* feat(schema): add resource and scope table implement resource-servers and resource-scopes table with some basic queries * fix(schema): remove scope update querie not allowed to update scope once created * feat(schema): add resourceId foreign key to the scope table add resourceId foreign key to the scope table * fix(schema): remove trailling comma remove trailling comma * fix(schema): cr fix replace resource-servers table name using resources replace resource-servers table name using resources
12 lines
No EOL
534 B
SQL
12 lines
No EOL
534 B
SQL
create type sign_algorithm_type as enum ('RS256');
|
|
create type access_token_format_type as enum ('jwt');
|
|
|
|
create table resources (
|
|
id varchar(24) not null,
|
|
name text not null,
|
|
identifier text not null unique, /* resource indicator also used as audience */
|
|
access_token_ttl bigint not null default(86400), /* expiration value in seconds, default is 24h */
|
|
access_token_format access_token_format_type not null default('jwt'),
|
|
sign_algorithm sign_algorithm_type not null default('RS256'),
|
|
primary key (id)
|
|
); |