chore(release): first stable release #45
@@ -1,8 +1,8 @@
|
||||
-- Create ratings table to store user film ratings
|
||||
CREATE TABLE ratings (
|
||||
id BIGSERIAL PRIMARY KEY,
|
||||
user_id BIGINT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
||||
film_id BIGINT NOT NULL REFERENCES films(id) ON DELETE CASCADE,
|
||||
user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
||||
film_id UUID NOT NULL REFERENCES films(id) ON DELETE CASCADE,
|
||||
rating NUMERIC(3, 1) NOT NULL CHECK (rating >= 0 AND rating <= 10),
|
||||
source VARCHAR(50) NOT NULL DEFAULT 'MOVIENIGHT',
|
||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
Reference in New Issue
Block a user