diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2012-08-18 16:29:03 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2012-08-18 16:29:03 +0200 |
commit | 202ef602aa8672c74619cd2db47dc3e1bab747a6 (patch) | |
tree | c51a312a2a2a63edb0b6ed24019d97934031042a /schema.sql | |
parent | d1c51370a79867089f002a0b61cc3c6eb0680d08 (diff) |
Lafargue: Fix semi-private posting.
Diffstat (limited to 'schema.sql')
-rw-r--r-- | schema.sql | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -165,6 +165,14 @@ CREATE TABLE lazychat_references( FOREIGN KEY(referee) REFERENCES lazychat_messages ); +CREATE TABLE user_default_target( + "user" INTEGER NOT NULL, + target INTEGER NOT NULL, + PRIMARY KEY("user", target), + FOREIGN KEY("user") REFERENCES users, + FOREIGN KEY(target) REFERENCES roles +); + CREATE VIEW effective_role_subroles AS WITH RECURSIVE t(superrole, subrole) AS ( SELECT id, id |