mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
16 lines
469 B
SQL
16 lines
469 B
SQL
create type application_type as enum ('Native', 'SPA', 'Traditional');
|
|
|
|
create table applications (
|
|
id varchar(128) not null,
|
|
name varchar(256) not null,
|
|
type application_type not null,
|
|
oidc_client_id varchar(128) not null,
|
|
oidc_client_metadata jsonb /* @use OidcClientMetadata */ not null,
|
|
created_at bigint not null default(extract(epoch from now())),
|
|
primary key (id)
|
|
);
|
|
|
|
create index applications__oidc_client_id
|
|
on applications (
|
|
oidc_client_id
|
|
);
|