feat(invitations): accept invitations with C4 consent and contact grants; share the E0 quota across holdings

This commit is contained in:
shira committed 2026-10-09 18:03:35 +03:00
1 parent a5990d3fc6
commit 676b3c6e24
59 files changed
+4926 -194

No files matched your search

+7 -5
View File
@@ -1,7 +1,7 @@
-- Stores a new organization with the verification level that the domain
-- gave it. The deferred constraint organizations_owner_required fails the
-- transaction at commit unless an active owner membership was inserted in
-- it too.
-- gave it and the holding of its creator. The deferred constraint
-- organizations_owner_required fails the transaction at commit unless an
-- active owner membership was inserted in it too.
-- name: InsertOrganization :exec
INSERT INTO organizations (
id,
@@ -17,7 +17,8 @@ INSERT INTO organizations (
verification_changed_at,
version,
created_at,
updated_at
updated_at,
holding_id
) VALUES (
sqlc.arg(id),
sqlc.arg(name),
@@ -32,7 +33,8 @@ INSERT INTO organizations (
sqlc.arg(verification_changed_at),
sqlc.arg(version),
sqlc.arg(created_at),
sqlc.arg(updated_at)
sqlc.arg(updated_at),
sqlc.arg(holding_id)
);
-- Stores one representative at its position in the list. The adapter calls it