Skip to content

Commit

Permalink
feat: Add non-null clauses to disputes table
Browse files Browse the repository at this point in the history
  • Loading branch information
Vafdaf12 committed Sep 27, 2024
1 parent 6a5903f commit b961c17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions initdb/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ CREATE TYPE dispute_status AS ENUM (
CREATE TABLE disputes (
id SERIAL PRIMARY KEY,
case_date DATE DEFAULT CURRENT_DATE,
workflow BIGINT REFERENCES active_workflows(id),
workflow BIGINT REFERENCES active_workflows(id) NOT NULL,
status dispute_status DEFAULT 'Awaiting Respondant',
title VARCHAR(255) NOT NULL,
description TEXT,
complainant BIGINT REFERENCES users(id),
respondant BIGINT REFERENCES users(id),
description TEXT NOT NULL,
complainant BIGINT REFERENCES users(id) NOT NULL,
respondant BIGINT REFERENCES users(id) NOT NULL,
date_resolved DATE DEFAULT NULL
);

Expand Down

0 comments on commit b961c17

Please sign in to comment.