Centralize durable schema migration ownership
This commit is contained in:
parent
cc328237f4
commit
069f3813ae
1 changed files with 354 additions and 350 deletions
10
crates/remora-schema/migrations/identity/0001_principals.sql
Normal file
10
crates/remora-schema/migrations/identity/0001_principals.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-- Stable principal mapping from OIDC issuer+subject pairs.
|
||||
-- Feature package remora-identity owns this schema.
|
||||
|
||||
CREATE TABLE principal_identities (
|
||||
principal_id TEXT PRIMARY KEY,
|
||||
issuer TEXT NOT NULL,
|
||||
subject TEXT NOT NULL,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||
UNIQUE (issuer, subject)
|
||||
);
|
||||
Loading…
Reference in a new issue