Description varchar(255) NULL ,
CorrespondAddress varchar(120) NULL ,
CommentAddress varchar(120) NULL ,
+ Lifecycle varchar(32) NULL ,
+ SubjectTag varchar(120) NULL ,
InitialPriority integer NULL ,
FinalPriority integer NULL ,
DefaultDueIn integer NULL ,
Description varchar(255) NULL ,
Domain varchar(64),
Type varchar(64),
- Instance integer
+ Instance integer,
+ Creator integer NOT NULL DEFAULT 0 ,
+ Created DATETIME NULL ,
+ LastUpdatedBy integer NOT NULL DEFAULT 0 ,
+ LastUpdated DATETIME NULL
) ;
RightName varchar(25) NOT NULL ,
ObjectType varchar(25) NOT NULL ,
ObjectId INTEGER default 0,
- DelegatedBy integer NOT NULL default 0,
- DelegatedFrom integer NOT NULL default 0
+ Creator integer NOT NULL DEFAULT 0 ,
+ Created DATETIME NULL ,
+ LastUpdatedBy integer NOT NULL DEFAULT 0 ,
+ LastUpdated DATETIME NULL
) ;
CREATE TABLE GroupMembers (
id INTEGER PRIMARY KEY ,
GroupId integer NULL,
- MemberId integer NULL
+ MemberId integer NULL,
+ Creator integer NOT NULL DEFAULT 0 ,
+ Created DATETIME NULL ,
+ LastUpdatedBy integer NOT NULL DEFAULT 0 ,
+ LastUpdated DATETIME NULL
) ;
CREATE TABLE Users (
id INTEGER ,
Name varchar(200) NOT NULL ,
- Password varchar(40) NULL ,
+ Password varchar(256) NULL ,
+ AuthToken varchar(16) NULL ,
Comments blob NULL ,
Signature blob NULL ,
EmailAddress varchar(120) NULL ,
Priority integer NULL ,
TimeEstimated integer NULL ,
TimeWorked integer NULL ,
- Status varchar(10) NULL ,
+ Status varchar(64) NULL ,
TimeLeft integer NULL ,
Told DATETIME NULL ,
Starts DATETIME NULL ,
-# {{{ ObjectCustomFieldValues
CREATE TABLE ObjectCustomFieldValues (
id INTEGER NOT NULL ,
CREATE INDEX ObjectCustomFieldValues1 ON ObjectCustomFieldValues (Content);
CREATE INDEX ObjectCustomFieldValues2 ON ObjectCustomFieldValues (CustomField,ObjectType,ObjectId);
-# }}}
-# {{{ CustomFields
CREATE TABLE CustomFields (
id INTEGER NOT NULL ,
Name varchar(200) NULL ,
Type varchar(200) NULL , # Changed -- 'Single' and 'Multiple' is moved out
+ RenderType varchar(64) NULL ,
MaxValues integer, # New -- was 'Single'(1) and 'Multiple'(0)
Pattern varchar(65536) NULL , # New -- Must validate against this
Repeated int2 NOT NULL DEFAULT 0 , # New -- repeated table entry
+ BasedOn INTEGER NULL,
+ ValuesClass varchar(64) NULL ,
Description varchar(255) NULL ,
SortOrder integer NOT NULL DEFAULT 0 ,
LookupType varchar(255) NOT NULL,
PRIMARY KEY (id)
) ;
-# }}}
-# {{{ ObjectCustomFields
CREATE TABLE ObjectCustomFields (
id INTEGER NOT NULL ,
PRIMARY KEY (id)
) ;
-# }}}
-# {{{ CustomFieldValues
CREATE TABLE CustomFieldValues (
id INTEGER NOT NULL ,
Name varchar(200) NULL ,
Description varchar(255) NULL ,
SortOrder integer NOT NULL DEFAULT 0 ,
+ Category varchar(255) NULL ,
Creator integer NOT NULL DEFAULT 0 ,
Created DATETIME NULL ,
CREATE INDEX CustomFieldValues1 ON CustomFieldValues (CustomField);
-# }}}
--- {{{ Attributes
CREATE TABLE Attributes (
--- }}}
+CREATE TABLE Classes (
+id INTEGER PRIMARY KEY,
+Name varchar(255) NOT NULL DEFAULT '',
+Description varchar(255) NOT NULL DEFAULT '',
+SortOrder integer NOT NULL DEFAULT 0,
+Disabled smallint NOT NULL DEFAULT 0,
+Creator integer NOT NULL DEFAULT 0,
+Created TIMESTAMP NULL,
+LastUpdatedBy integer NOT NULL DEFAULT 0,
+LastUpdated TIMESTAMP NULL,
+HotList smallint NOT NULL DEFAULT 0
+);
+
+CREATE TABLE Articles (
+id INTEGER PRIMARY KEY,
+Name varchar(255) NOT NULL DEFAULT '',
+Summary varchar(255) NOT NULL DEFAULT '',
+SortOrder integer NOT NULL DEFAULT 0,
+Class integer NOT NULL DEFAULT 0,
+Parent integer NOT NULL DEFAULT 0,
+URI varchar(255),
+Creator integer NOT NULL DEFAULT 0,
+Created TIMESTAMP NULL,
+LastUpdatedBy integer NOT NULL DEFAULT 0,
+LastUpdated TIMESTAMP NULL
+);
+
+
+CREATE TABLE Topics (
+id INTEGER PRIMARY KEY,
+Parent integer NOT NULL DEFAULT 0,
+Name varchar(255) NOT NULL DEFAULT '',
+Description varchar(255) NOT NULL DEFAULT '',
+ObjectType varchar(64) NOT NULL DEFAULT '',
+ObjectId integer NOT NULL
+);
+
+
+CREATE TABLE ObjectTopics (
+id INTEGER PRIMARY KEY,
+Topic integer NOT NULL,
+ObjectType varchar(64) NOT NULL DEFAULT '',
+ObjectId integer NOT NULL
+);
+
+CREATE TABLE ObjectClasses (
+id INTEGER PRIMARY KEY,
+Class integer NOT NULL,
+ObjectType varchar(64) NOT NULL DEFAULT '',
+ObjectId integer NOT NULL,
+Creator integer NOT NULL DEFAULT 0,
+Created TIMESTAMP NULL,
+LastUpdatedBy integer NOT NULL DEFAULT 0,
+LastUpdated TIMESTAMP NULL
+);