Added updated_at info in review for allowing edits
This commit is contained in:
parent
bf59ed049d
commit
3245d83aed
|
|
@ -379,6 +379,7 @@ CREATE TABLE reviews (
|
||||||
seller_rating INT CHECK (seller_rating >= 1 AND seller_rating <= 5),
|
seller_rating INT CHECK (seller_rating >= 1 AND seller_rating <= 5),
|
||||||
comment TEXT,
|
comment TEXT,
|
||||||
created_at TIMESTAMPTZ DEFAULT NOW(),
|
created_at TIMESTAMPTZ DEFAULT NOW(),
|
||||||
|
updated_at TIMESTAMPTZ DEFAULT NOW(),
|
||||||
UNIQUE(listing_id, reviewer_id)
|
UNIQUE(listing_id, reviewer_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue