Query
CREATE TABLE "oauth_user_consents" (
"id" integer PRIMARY KEY NOT NULL,
"userId" varchar NOT NULL,
"clientId" varchar NOT NULL,
"grantedAt" bigint NOT NULL,
CONSTRAINT "UQ_083721d99ce8db4033e2958ebb4" UNIQUE ("userId", "clientId"),
CONSTRAINT "FK_a651acea2f6c97f8c4514935486" FOREIGN KEY ("clientId") REFERENCES "oauth_clients" ("id") ON DELETE CASCADE,
CONSTRAINT "FK_21e6c3c2d78a097478fae6aaefa" FOREIGN KEY ("userId") REFERENCES "user" ("id") ON DELETE CASCADE
)