-- $Horde: nag/scripts/drivers/nag_tasks.sql,v 1.9 2003/02/21 18:04:18 chuck Exp $

CREATE TABLE nag_tasks (
    task_owner      VARCHAR(255) NOT NULL,
    task_id         INT NOT NULL,
    task_name       VARCHAR(64) NOT NULL,
    task_desc       TEXT NULL,
    task_modified   INT NOT NULL,
    task_due        INT NULL,
    task_priority   INT NOT NULL DEFAULT 0,
    task_category   INT NOT NULL DEFAULT 0,
    task_completed  SMALLINT NOT NULL DEFAULT 0,
    task_private    SMALLINT NOT NULL DEFAULT 1,
    task_alarm      INT NOT NULL DEFAULT 0,

    PRIMARY KEY (task_owner, task_id)
);

GRANT SELECT, INSERT, UPDATE, DELETE ON nag_tasks TO horde;
