CREATE TYPE anime_status AS ENUM ('finished', 'planned', 'dropped', 'in-progress');

CREATE TABLE usertitles (
    usertitle_id    serial             PRIMARY KEY,
    user_id         int                NOT NULL,
    title_id        int                NOT NULL,
    status          anime_status       NOT NULL,
    rate            int                CHECK (rate BETWEEN 0 AND 10),
    review_id       int,
);
