Modifiche
This commit is contained in:
@@ -11,6 +11,7 @@ DROP TABLE IF EXISTS users CASCADE;
|
||||
-- users table
|
||||
CREATE TABLE users (
|
||||
id SERIAL PRIMARY KEY,
|
||||
"keycloakId" VARCHAR(255) UNIQUE,
|
||||
name VARCHAR(255) NOT NULL,
|
||||
"email" VARCHAR(255) NOT NULL UNIQUE,
|
||||
"avatarUrl" VARCHAR(255) NOT NULL,
|
||||
@@ -63,6 +64,7 @@ CREATE TABLE friend_requests (
|
||||
|
||||
-- User <-> Group many-to-many join table
|
||||
CREATE TABLE "UserGroups" (
|
||||
id SERIAL PRIMARY KEY,
|
||||
"userId" INTEGER NOT NULL,
|
||||
"groupId" INTEGER NOT NULL,
|
||||
CONSTRAINT usergroups_user_fk FOREIGN KEY ("userId") REFERENCES users(id) ON DELETE CASCADE,
|
||||
|
||||
Reference in New Issue
Block a user