aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/examples/sql/sqlite.principals.sql
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/examples/sql/sqlite.principals.sql')
-rw-r--r--vendor/examples/sql/sqlite.principals.sql20
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/examples/sql/sqlite.principals.sql b/vendor/examples/sql/sqlite.principals.sql
new file mode 100644
index 000000000..4105156f8
--- /dev/null
+++ b/vendor/examples/sql/sqlite.principals.sql
@@ -0,0 +1,20 @@
+CREATE TABLE principals (
+ id INTEGER PRIMARY KEY ASC NOT NULL,
+ uri TEXT NOT NULL,
+ email TEXT,
+ displayname TEXT,
+ UNIQUE(uri)
+);
+
+CREATE TABLE groupmembers (
+ id INTEGER PRIMARY KEY ASC NOT NULL,
+ principal_id INTEGER NOT NULL,
+ member_id INTEGER NOT NULL,
+ UNIQUE(principal_id, member_id)
+);
+
+
+INSERT INTO principals (uri,email,displayname) VALUES ('principals/admin', 'admin@example.org','Administrator');
+INSERT INTO principals (uri,email,displayname) VALUES ('principals/admin/calendar-proxy-read', null, null);
+INSERT INTO principals (uri,email,displayname) VALUES ('principals/admin/calendar-proxy-write', null, null);
+