feat(accounts): add consent settings and organization management

This commit is contained in:
TakuyaYagam1 committed 2026-10-07 13:00:39 +03:00
1 parent 24638d46d2
commit 391af7a1ef
83 files changed
+10198 -613

No files matched your search

@@ -35,9 +35,12 @@ var (
organizationsTable = pgx.Identifier{"organizations"}
organizationRepresentativesTable = pgx.Identifier{"organization_representatives"}
membershipsTable = pgx.Identifier{"memberships"}
organizationCreationResultsTable = pgx.Identifier{"organization_creation_results"}
// organizationTables are emptied together: memberships reference both
// users and organizations.
organizationTables = []pgx.Identifier{membershipsTable, organizationRepresentativesTable, organizationsTable}
// users and organizations. Creation snapshots reference idempotency records.
organizationTables = []pgx.Identifier{
organizationCreationResultsTable, membershipsTable, organizationRepresentativesTable, organizationsTable,
}
// usersDependentTables is every table that references users, directly or
// through another table of the list. A TRUNCATE of users must name all of
// them, so a migration that adds such a table adds it here.