sogo/OGoContentStore/sql/folderinfo-create.psql
Wolfgang Sourdeau e1c5eb89c1 Monotone-Parent: 5a720314ac446bf86e127d6d6e938b844aab7441
Monotone-Revision: 47aef98a4894f30e9031a2a06ca088c4ac71d7f3

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-01-26T16:52:13
Monotone-Branch: ca.inverse.sogo
2007-01-26 16:52:13 +00:00

29 lines
1 KiB
Plaintext

--
-- (C) 2004-2005 SKYRIX Software AG
--
-- TODO:
-- add a unique constraints on path
DROP SEQUENCE SOGo_folder_info_seq;
CREATE SEQUENCE SOGo_folder_info_seq;
DROP TABLE SOGo_folder_info;
CREATE TABLE SOGo_folder_info (
c_folder_id INTEGER
DEFAULT nextval('SOGo_folder_info_seq')
NOT NULL
PRIMARY KEY, -- the primary key
c_path VARCHAR(255) NOT NULL, -- the full path to the folder
c_path1 VARCHAR(255) NOT NULL, -- parts (for fast queries)
c_path2 VARCHAR(255) NULL, -- parts (for fast queries)
c_path3 VARCHAR(255) NULL, -- parts (for fast queries)
c_path4 VARCHAR(255) NULL, -- parts (for fast queries)
c_foldername VARCHAR(255) NOT NULL, -- last path component
c_location VARCHAR(2048) NOT NULL, -- URL to folder
c_quick_location VARCHAR(2048) NULL, -- URL to quicktable of folder
c_acl_location VARCHAR(2048) NULL, -- URL to quicktable of folder
c_folder_type VARCHAR(255) NOT NULL -- the folder type ...
);