zitadel/migrations/cockroach/V1.58__metadata.sql

28 lines
461 B
MySQL
Raw Normal View History

CREATE TABLE auth.metadata (
aggregate_id TEXT,
key TEXT,
value BYTES,
resource_owner TEXT,
creation_date TIMESTAMPTZ,
change_date TIMESTAMPTZ,
sequence BIGINT,
PRIMARY KEY (aggregate_id, key)
);
CREATE TABLE management.metadata (
aggregate_id TEXT,
key TEXT,
value BYTES,
resource_owner TEXT,
creation_date TIMESTAMPTZ,
change_date TIMESTAMPTZ,
sequence BIGINT,
PRIMARY KEY (aggregate_id, key)
);