mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 20:47:15 +01:00
29 lines
694 B
MySQL
29 lines
694 B
MySQL
|
CREATE TABLE addressbooks (
|
||
|
id integer primary key asc NOT NULL,
|
||
|
principaluri text NOT NULL,
|
||
|
displayname text,
|
||
|
uri text NOT NULL,
|
||
|
description text,
|
||
|
synctoken integer DEFAULT 1 NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE TABLE cards (
|
||
|
id integer primary key asc NOT NULL,
|
||
|
addressbookid integer NOT NULL,
|
||
|
carddata blob,
|
||
|
uri text NOT NULL,
|
||
|
lastmodified integer,
|
||
|
etag text,
|
||
|
size integer
|
||
|
);
|
||
|
|
||
|
CREATE TABLE addressbookchanges (
|
||
|
id integer primary key asc NOT NULL,
|
||
|
uri text,
|
||
|
synctoken integer NOT NULL,
|
||
|
addressbookid integer NOT NULL,
|
||
|
operation integer NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE INDEX addressbookid_synctoken ON addressbookchanges (addressbookid, synctoken);
|