0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/schemas/tables/resources.sql

12 lines
534 B
MySQL
Raw Normal View History

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)
);