♻️ Rename collections to libraries.

And make them team dependent.
This commit is contained in:
Andrey Antukh 2020-02-24 10:57:32 +01:00
parent 0ad2b13d76
commit 3ce9c8820f
19 changed files with 1068 additions and 766 deletions

View file

@ -69,6 +69,12 @@ CREATE TRIGGER team__modified_at__tgr
BEFORE UPDATE ON team
FOR EACH ROW EXECUTE PROCEDURE update_modified_at();
INSERT INTO team (id, name, photo, is_default)
VALUES ('00000000-0000-0000-0000-000000000000'::uuid,
'System Team',
'',
true);
CREATE TABLE team_profile_rel (