This commit is contained in:
adlerhurst
2025-07-25 17:54:10 +02:00
parent 9d5f545623
commit 24ef46e75b
3 changed files with 24 additions and 23 deletions

View File

@@ -6,7 +6,7 @@ CREATE TYPE zitadel.organization_state AS ENUM (
CREATE TABLE zitadel.organizations(
id TEXT NOT NULL CHECK (id <> ''),
name TEXT NOT NULL CHECK (name <> ''),
instance_id TEXT NOT NULL REFERENCES zitadel.instances (id),
instance_id TEXT NOT NULL REFERENCES zitadel.instances (id) ON DELETE CASCADE,
state zitadel.organization_state NOT NULL,
created_at TIMESTAMPTZ DEFAULT NOW() NOT NULL,
updated_at TIMESTAMPTZ DEFAULT NOW() NOT NULL,