mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-23 14:23:47 +00:00
22 lines
630 B
MySQL
22 lines
630 B
MySQL
|
CREATE TABLE principals (
|
||
|
id INTEGER PRIMARY KEY ASC,
|
||
|
uri TEXT,
|
||
|
email TEXT,
|
||
|
displayname TEXT,
|
||
|
vcardurl TEXT,
|
||
|
UNIQUE(uri)
|
||
|
);
|
||
|
|
||
|
CREATE TABLE groupmembers (
|
||
|
id INTEGER PRIMARY KEY ASC,
|
||
|
principal_id INTEGER,
|
||
|
member_id INTEGER,
|
||
|
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);
|
||
|
|