mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
14 lines
577 B
MySQL
14 lines
577 B
MySQL
|
/* init_order = 2 */
|
||
|
|
||
|
/** The user scopes (permissions) assigned to an application */
|
||
|
create table application_user_consent_user_scopes (
|
||
|
tenant_id varchar(21) not null
|
||
|
references tenants (id) on update cascade on delete cascade,
|
||
|
/** The globally unique identifier of the application. */
|
||
|
application_id varchar(21) not null
|
||
|
references applications (id) on update cascade on delete cascade,
|
||
|
/** The unique UserScope enum value @see (@logto/core-kit/open-id.js) for more details */
|
||
|
user_scope varchar(64) not null,
|
||
|
primary key (application_id, user_scope)
|
||
|
);
|