CREATE TABLE prizes (
    id SERIAL PRIMARY KEY,
    name VARCHAR NOT NULL,
    points_min INTEGER NOT NULL,
    description TEXT NOT NULL,
    directions_to_claim TEXT NOT NULL
);

CREATE TABLE winners (
    id SERIAL PRIMARY KEY,
    user_id INTEGER NOT NULL,
    prize_id INTEGER NOT NULL,
    date TIMESTAMP NOT NULL,
    claimed BOOLEAN NOT NULL DEFAULT FALSE,
    FOREIGN KEY (user_id) REFERENCES users(id),
    FOREIGN KEY (prize_id) REFERENCES prizes(id)
);
