Interface: TaprootFkTarget
Defined in: server/migrations/index.ts:198
A users/organizations table the consumer owns and wants taproot to FK into.
Properties
columnType?
optional columnType?: string;Defined in: server/migrations/index.ts:210
PG type the taproot columns are altered to before the FK is created. "UUID" for taproot/uuid auth; "TEXT" for cuid/string user ids. Default "UUID". Must be a valid PG type token (letters, digits, underscores, spaces, parentheses only).
onDelete?
optional onDelete?: ForeignKeyOnDelete;Defined in: server/migrations/index.ts:216
ON DELETE for the constraint. Audit FKs default to "SET NULL" (columns are nullable); org FKs default to "RESTRICT" (most org columns are NOT NULL, which forbids SET NULL).
referencedColumn?
optional referencedColumn?: string;Defined in: server/migrations/index.ts:204
Referenced PK column. Default "id".
schema
schema: string;Defined in: server/migrations/index.ts:200
Schema of the referenced table (e.g. "public" for own-auth, "taproot" for taproot auth).
table
table: string;Defined in: server/migrations/index.ts:202
Referenced table name (e.g. "users"/"user", "organizations"/"organization").