0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/packages/schemas/tables/resources.sql
2022-07-06 20:33:32 +08:00

12 lines
360 B
SQL

create table resources (
id varchar(21) not null,
name text not null,
indicator text not null unique, /* resource indicator also used as audience */
access_token_ttl bigint not null default(3600), /* expiration value in seconds, default is 1h */
primary key (id)
);
create unique index resources__indicator
on resources (
indicator
);