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/organization_jit_roles.sql
2024-06-14 14:50:33 +08:00

14 lines
689 B
SQL

/* init_order = 2 */
/** The organization roles that will be automatically provisioned to users when they join an organization through JIT. */
create table organization_jit_roles (
tenant_id varchar(21) not null
references tenants (id) on update cascade on delete cascade,
/** The ID of the organization. */
organization_id varchar(21) not null
references organizations (id) on update cascade on delete cascade,
/** The organization role ID that will be automatically provisioned. */
organization_role_id varchar(21) not null
references organization_roles (id) on update cascade on delete cascade,
primary key (tenant_id, organization_id, organization_role_id)
);