github.com/icyphox/x@v0.0.355-0.20220311094250-029bd783e8b8/popx/stub/migrations/transactional/20191100000001000003_identities.postgres.up.sql (about) 1 CREATE TABLE "identity_credentials" ( 2 "id" UUID NOT NULL, 3 PRIMARY KEY("id"), 4 "config" jsonb NOT NULL, 5 "identity_credential_type_id" UUID NOT NULL, 6 "identity_id" UUID NOT NULL, 7 "created_at" timestamp NOT NULL, 8 "updated_at" timestamp NOT NULL, 9 FOREIGN KEY ("identity_id") REFERENCES "identities" ("id") ON DELETE cascade, 10 FOREIGN KEY ("identity_credential_type_id") REFERENCES "identity_credential_types" ("id") ON DELETE cascade 11 )