mirror of
https://github.com/logto-io/logto.git
synced 2025-02-03 21:48:55 -05:00
14 lines
345 B
SQL
14 lines
345 B
SQL
create table scopes (
|
|
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)
|
|
);
|
|
|
|
create index scopes__resource_id_name
|
|
on scopes (
|
|
resource_id,
|
|
name
|
|
);
|