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/application_user_consent_organization_scopes.sql

15 lines
667 B
MySQL
Raw Normal View History

/* init_order = 2 */
/** The organization scopes (permissions) assigned to an application. */
create table application_user_consent_organization_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 globally unique identifier of the organization scope. */
organization_scope_id varchar(21) not null
references organization_scopes (id) on update cascade on delete cascade,
primary key (application_id, organization_scope_id)
);