50 lines
1.5 KiB
SQL
50 lines
1.5 KiB
SQL
-- $Horde: nag/scripts/sql/nag.sql,v 1.4.8.10 2009-10-22 14:24:20 jan Exp $
|
|
|
|
CREATE TABLE IF NOT EXISTS nag_tasks (
|
|
task_id VARCHAR(32) NOT NULL,
|
|
task_owner VARCHAR(255) NOT NULL,
|
|
task_creator VARCHAR(255) NOT NULL,
|
|
task_parent VARCHAR(255),
|
|
task_assignee VARCHAR(255),
|
|
task_name VARCHAR(255) NOT NULL,
|
|
task_uid VARCHAR(255) NOT NULL,
|
|
task_desc TEXT,
|
|
task_start INT,
|
|
task_due INT,
|
|
task_priority INT DEFAULT 0 NOT NULL,
|
|
task_estimate FLOAT,
|
|
task_category VARCHAR(80),
|
|
task_completed SMALLINT DEFAULT 0 NOT NULL,
|
|
task_completed_date INT,
|
|
task_alarm INT DEFAULT 0 NOT NULL,
|
|
task_private SMALLINT DEFAULT 0 NOT NULL,
|
|
--
|
|
PRIMARY KEY (task_id)
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS nag_shares (
|
|
share_id INT NOT NULL,
|
|
share_name VARCHAR(255) NOT NULL,
|
|
share_owner VARCHAR(255) NOT NULL,
|
|
share_flags SMALLINT DEFAULT 0 NOT NULL,
|
|
perm_creator SMALLINT DEFAULT 0 NOT NULL,
|
|
perm_default SMALLINT DEFAULT 0 NOT NULL,
|
|
perm_guest SMALLINT DEFAULT 0 NOT NULL,
|
|
attribute_name VARCHAR(255) NOT NULL,
|
|
attribute_desc VARCHAR(255),
|
|
PRIMARY KEY (share_id)
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS nag_shares_groups (
|
|
share_id INT NOT NULL,
|
|
group_uid VARCHAR(255) NOT NULL,
|
|
perm SMALLINT NOT NULL
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS nag_shares_users (
|
|
share_id INT NOT NULL,
|
|
user_uid VARCHAR(255) NOT NULL,
|
|
perm SMALLINT NOT NULL
|
|
);
|
|
|