]> err.no Git - scalable-opengroupware.org/blob - OGoContentStore/sql/folderinfo-create.psql
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1091 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / OGoContentStore / sql / folderinfo-create.psql
1 --
2 -- (C) 2004-2005 SKYRIX Software AG
3 --
4 -- TODO:
5 --   add a unique constraints on path
6
7 DROP SEQUENCE SOGo_folder_info_seq;
8
9 CREATE SEQUENCE SOGo_folder_info_seq;
10
11 DROP TABLE SOGo_folder_info;
12
13 CREATE TABLE SOGo_folder_info (
14   c_folder_id  INTEGER 
15     DEFAULT nextval('SOGo_folder_info_seq')
16     NOT NULL 
17     PRIMARY KEY,                     -- the primary key
18   c_path           VARCHAR(255)  NOT NULL, -- the full path to the folder
19   c_path1          VARCHAR(255)  NOT NULL, -- parts (for fast queries)
20   c_path2          VARCHAR(255)  NULL,     -- parts (for fast queries)
21   c_path3          VARCHAR(255)  NULL,     -- parts (for fast queries)
22   c_path4          VARCHAR(255)  NULL,     -- parts (for fast queries)
23   c_foldername     VARCHAR(255)  NOT NULL, -- last path component
24   c_location       VARCHAR(2048) NOT NULL, -- URL to folder
25   c_quick_location VARCHAR(2048) NULL,     -- URL to quicktable of folder
26   c_acl_location VARCHAR(2048) NULL,     -- URL to quicktable of folder
27   c_folder_type    VARCHAR(255)  NOT NULL  -- the folder type ...
28 );