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,