CREATE TABLE IF NOT EXISTS room (
    id UUID PRIMARY KEY,
    project UUID NOT NULL,
    room_name VARCHAR(255) NOT NULL,
    public BOOLEAN NOT NULL DEFAULT false,
    category UUID,
    created_by UUID NOT NULL,
    created_at TIMESTAMPTZ NOT NULL,
    last_msg_at TIMESTAMPTZ NOT NULL
);

CREATE INDEX idx_room_project ON room (project);
CREATE INDEX idx_room_category ON room (category);
