mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
9518658595
* fix(schemas): fix the get interation/consent api bug fix the get interation/consent api bug * chore: update changeset update changeset * fix: update changeset update changeset * refactor(schemas, console): alter the resource scopes description field to nullable (#5504) * refactor(schemas, console): alter the resoruce scopes description field nullable make the resourec scopes description nullable * fix(test): fix the type issue in the integration test fix the type issue in the integration test * fix(console): add the field register add the field register * fix: update the changeset update the changeset * fix(console,test): update comments and rebase update comments and rebase the master
18 lines
528 B
SQL
18 lines
528 B
SQL
/* init_order = 2 */
|
|
|
|
create table scopes (
|
|
tenant_id varchar(21) not null
|
|
references tenants (id) on update cascade on delete cascade,
|
|
id varchar(21) not null,
|
|
resource_id varchar(21) not null
|
|
references resources (id) on update cascade on delete cascade,
|
|
name varchar(256) not null,
|
|
description text,
|
|
created_at timestamptz not null default(now()),
|
|
primary key (id),
|
|
constraint scopes__resource_id_name
|
|
unique (tenant_id, resource_id, name)
|
|
);
|
|
|
|
create index scopes__id
|
|
on scopes (tenant_id, id);
|