Files
probo/pkg/coredata/migrations/20260104T155201Z.sql
Bryan Frimin cfc514c8e0 Add SCIM management
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
2026-01-17 12:20:14 -08:00

15 lines
625 B
SQL

-- Create SCIM configurations table
CREATE TABLE iam_scim_configurations (
id TEXT PRIMARY KEY,
tenant_id TEXT NOT NULL,
organization_id TEXT NOT NULL REFERENCES organizations(id) ON DELETE CASCADE,
hashed_token BYTEA NOT NULL,
created_at TIMESTAMP WITH TIME ZONE NOT NULL,
updated_at TIMESTAMP WITH TIME ZONE NOT NULL,
CONSTRAINT iam_scim_configurations_organization_unique UNIQUE (organization_id)
);
CREATE INDEX idx_iam_scim_configurations_tenant_id ON iam_scim_configurations(tenant_id);
CREATE INDEX idx_iam_scim_configurations_organization_id ON iam_scim_configurations(organization_id);