Commit 4f4bf1d
committed
feat: add membership_type column to storage_module for multi-scope storage
- Add membership_type int column (NULL = app-level AuthzMembership, non-NULL = entity-scoped AuthzEntityMembership)
- Rename default table names from buckets/files/upload_requests to app_buckets/app_files/app_upload_requests
- Add unique index on (database_id, COALESCE(membership_type, -1)) to enforce one module per scope
- Update entity_table_id comment to reflect app-level vs entity-scoped usage
Syncs with constructive-db PR #876 (merged).1 parent f79dd69 commit 4f4bf1d
1 file changed
Lines changed: 11 additions & 4 deletions
File tree
- packages/metaschema-modules/deploy/schemas/metaschema_modules_public/tables/storage_module
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
55 | 62 | | |
0 commit comments