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

17 lines
704 B
MySQL
Raw Permalink Normal View History

/* init_order = 2 */
create table idp_initiated_saml_sso_sessions (
tenant_id varchar(21) not null
references tenants (id) on update cascade on delete cascade,
/** The globally unique identifier of the assertion record. */
id varchar(21) not null,
/** The identifier of the SAML SSO connector. */
connector_id varchar(128) not null
references sso_connectors (id) on update cascade on delete cascade,
/** The SAML assertion. */
assertion_content jsonb /* @use SsoSamlAssertionContent */ not null default '{}'::jsonb,
created_at timestamptz not null default(now()),
/** The expiration time of the assertion. */
expires_at timestamptz not null,
primary key (tenant_id, id)
);