-- Add up migration script here
CREATE TABLE tasks (
    id UUID PRIMARY KEY NOT NULL,
    title VARCHAR NOT NULL,
    description TEXT,
    status TEXT CHECK(status IN ('todo', 'done', 'backlog')) DEFAULT 'todo',
    created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    completed_at TIMESTAMP
);
