2024-01-11 01:38:37 -05:00
|
|
|
/* init_order = 4 */
|
|
|
|
|
|
|
|
/** The organization roles that will be assigned to a user when they accept an invitation. */
|
|
|
|
create table organization_invitation_role_relations (
|
|
|
|
tenant_id varchar(21) not null
|
|
|
|
references tenants (id) on update cascade on delete cascade,
|
|
|
|
/** The ID of the invitation. */
|
2024-01-28 20:39:52 -05:00
|
|
|
organization_invitation_id varchar(21) not null
|
2024-01-11 01:38:37 -05:00
|
|
|
references organization_invitations (id) on update cascade on delete cascade,
|
|
|
|
/** The ID of the organization role. */
|
|
|
|
organization_role_id varchar(21) not null
|
|
|
|
references organization_roles (id) on update cascade on delete cascade,
|
2024-01-28 20:39:52 -05:00
|
|
|
primary key (tenant_id, organization_invitation_id, organization_role_id)
|
2024-01-11 01:38:37 -05:00
|
|
|
);
|