sogo/OGoContentStore/sql/appointment-create.psql
Wolfgang Sourdeau 8805e91d09 Monotone-Parent: 19e618a35e17deb331a98af60ddcc5529db862be
Monotone-Revision: a560de6c68352dec0b884b1c980ee3e94d963add

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-25T23:59:40
Monotone-Branch: ca.inverse.sogo
2006-10-25 23:59:40 +00:00

31 lines
1.2 KiB
Plaintext

--
-- (C) 2004-2005 SKYRIX Software AG
--
CREATE TABLE %s_quick (
c_name VARCHAR(256) NOT NULL PRIMARY KEY, -- the filename
uid VARCHAR(256) NOT NULL,
startdate INT NOT NULL,
enddate INT NOT NULL,
title VARCHAR(1000) NOT NULL,
participants VARCHAR(100000) NOT NULL, -- the CNs of the participants
isallday INT NULL,
iscycle INT NULL, -- client needs to fetch to resolve
ispublic INT NOT NULL,
status INT NOT NULL,
isopaque INT NOT NULL,
location VARCHAR(256) NULL,
orgmail VARCHAR(256) NULL,
partmails VARCHAR(100000) NOT NULL, -- the emails of the participants
partstates VARCHAR(256) NOT NULL, -- the status of each participant
sequence INT NULL -- the iCal sequence
);
CREATE TABLE %s_blob (
c_name VARCHAR(256) NOT NULL PRIMARY KEY, -- the filename
c_content VARCHAR(100000) NOT NULL, -- the BLOB
c_creationdate INT NOT NULL, -- creation date
c_lastmodified INT NOT NULL, -- last modification (UPDATE)
c_version INT NOT NULL, -- version counter
);