From 765775529d1aba475774f7136fcb0553053f3188 Mon Sep 17 00:00:00 2001 From: Kavika Date: Sat, 6 Apr 2024 14:42:52 +1100 Subject: [PATCH] fix(backend): remove duplicate primary key for applications --- backend/migrations/20240406031915_applications.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/migrations/20240406031915_applications.sql b/backend/migrations/20240406031915_applications.sql index a2e0ff7d..e39ede9f 100644 --- a/backend/migrations/20240406031915_applications.sql +++ b/backend/migrations/20240406031915_applications.sql @@ -3,7 +3,7 @@ CREATE TYPE application_status AS ENUM ('Pending', 'Rejected', 'Successful'); CREATE TABLE applications ( id BIGINT PRIMARY KEY, campaign_id BIGINT NOT NULL, - user_id BIGINT PRIMARY KEY, + user_id BIGINT NOT NULL, status application_status NOT NULL, private_status application_status NOT NULL, created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,