@jmruthers/pace-core 0.5.190 → 0.5.193
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AuthService-CbP_utw2.d.ts → AuthService-DjnJHDtC.d.ts} +1 -0
- package/dist/{DataTable-ON3IXISJ.js → DataTable-5FU7IESH.js} +7 -6
- package/dist/{DataTable-IVYljGJ6.d.ts → DataTable-Be6dH_dR.d.ts} +1 -1
- package/dist/{PublicPageProvider-C4uxosp6.d.ts → PublicPageProvider-C0Sm_e5k.d.ts} +4 -2
- package/dist/{UnifiedAuthProvider-BYA9qB-o.d.ts → UnifiedAuthProvider-185Ih4dj.d.ts} +2 -0
- package/dist/{UnifiedAuthProvider-X5NXANVI.js → UnifiedAuthProvider-RGJTDE2C.js} +3 -3
- package/dist/{api-I6UCQ5S6.js → api-N774RPUA.js} +2 -2
- package/dist/chunk-6C4YBBJM 5.js +628 -0
- package/dist/chunk-7D4SUZUM.js 2.map +1 -0
- package/dist/{chunk-73HSNNOQ.js → chunk-7EQTDTTJ.js} +47 -74
- package/dist/chunk-7EQTDTTJ.js 2.map +1 -0
- package/dist/chunk-7EQTDTTJ.js.map +1 -0
- package/dist/{chunk-J2XXC7R5.js → chunk-7FLMSG37.js} +409 -244
- package/dist/chunk-7FLMSG37.js 2.map +1 -0
- package/dist/chunk-7FLMSG37.js.map +1 -0
- package/dist/{chunk-NIU6J6OX.js → chunk-BC4IJKSL.js} +23 -32
- package/dist/chunk-BC4IJKSL.js.map +1 -0
- package/dist/{chunk-SDMHPX3X.js → chunk-E3SPN4VZ 5.js } +198 -53
- package/dist/chunk-E3SPN4VZ.js +12917 -0
- package/dist/{chunk-SDMHPX3X.js.map → chunk-E3SPN4VZ.js.map} +1 -1
- package/dist/chunk-E66EQZE6 5.js +37 -0
- package/dist/chunk-E66EQZE6.js 2.map +1 -0
- package/dist/{chunk-DZWK57KZ.js → chunk-G37KK66H.js} +1 -1
- package/dist/{chunk-DZWK57KZ.js.map → chunk-G37KK66H.js.map} +1 -1
- package/dist/{chunk-STYK4OH2.js → chunk-HWIIPPNI.js} +44 -225
- package/dist/chunk-HWIIPPNI.js.map +1 -0
- package/dist/chunk-I7PSE6JW 5.js +191 -0
- package/dist/chunk-I7PSE6JW.js 2.map +1 -0
- package/dist/{chunk-Y4BUBBHD.js → chunk-IIELH4DL.js} +211 -136
- package/dist/chunk-IIELH4DL.js.map +1 -0
- package/dist/{chunk-RUYZKXOD.js → chunk-KNC55RTG.js} +17 -5
- package/dist/chunk-KNC55RTG.js 5.map +1 -0
- package/dist/chunk-KNC55RTG.js.map +1 -0
- package/dist/chunk-KQCRWDSA.js 5.map +1 -0
- package/dist/{chunk-4QYC5L4K.js → chunk-LFNCN2SP.js} +26 -30
- package/dist/chunk-LFNCN2SP.js 2.map +1 -0
- package/dist/chunk-LFNCN2SP.js.map +1 -0
- package/dist/chunk-LMC26NLJ 2.js +84 -0
- package/dist/{chunk-VVBAW5A5.js → chunk-NOAYCWCX 5.js } +118 -110
- package/dist/chunk-NOAYCWCX.js +4993 -0
- package/dist/chunk-NOAYCWCX.js.map +1 -0
- package/dist/chunk-QWWZ5CAQ.js 3.map +1 -0
- package/dist/chunk-QXHPKYJV 3.js +113 -0
- package/dist/chunk-R77UEZ4E 3.js +68 -0
- package/dist/chunk-VBXEHIUJ.js 6.map +1 -0
- package/dist/{chunk-HQVPB5MZ.js → chunk-XNXXZ43G.js} +77 -33
- package/dist/chunk-XNXXZ43G.js.map +1 -0
- package/dist/chunk-ZSAAAMVR 6.js +25 -0
- package/dist/components.d.ts +4 -4
- package/dist/components.js +8 -8
- package/dist/components.js 5.map +1 -0
- package/dist/{database.generated-DI89OQeI.d.ts → database.generated-CzIvgcPu.d.ts} +165 -201
- package/dist/hooks.d.ts +12 -12
- package/dist/hooks.js +9 -9
- package/dist/index.d.ts +11 -11
- package/dist/index.js +20 -27
- package/dist/index.js.map +1 -1
- package/dist/providers.d.ts +3 -3
- package/dist/providers.js +2 -2
- package/dist/rbac/index.d.ts +2 -20
- package/dist/rbac/index.js +7 -9
- package/dist/styles/index 2.js +12 -0
- package/dist/styles/index.js 5.map +1 -0
- package/dist/theming/runtime 5.js +19 -0
- package/dist/theming/runtime.js 5.map +1 -0
- package/dist/{types-Bwgl--Xo.d.ts → types-CEpcvwwF.d.ts} +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/{usePublicRouteParams-DxIDS4bC.d.ts → usePublicRouteParams-TZe0gy-4.d.ts} +1 -1
- package/dist/utils.d.ts +8 -8
- package/dist/utils.js +2 -2
- package/docs/api/classes/ColumnFactory.md +1 -1
- package/docs/api/classes/ErrorBoundary.md +1 -1
- package/docs/api/classes/InvalidScopeError.md +1 -1
- package/docs/api/classes/Logger.md +1 -1
- package/docs/api/classes/MissingUserContextError.md +1 -1
- package/docs/api/classes/OrganisationContextRequiredError.md +1 -1
- package/docs/api/classes/PermissionDeniedError.md +2 -2
- package/docs/api/classes/RBACAuditManager.md +2 -2
- package/docs/api/classes/RBACCache.md +1 -1
- package/docs/api/classes/RBACEngine.md +2 -2
- package/docs/api/classes/RBACError.md +1 -1
- package/docs/api/classes/RBACNotInitializedError.md +1 -1
- package/docs/api/classes/SecureSupabaseClient.md +10 -10
- package/docs/api/classes/StorageUtils.md +1 -1
- package/docs/api/enums/FileCategory.md +1 -1
- package/docs/api/enums/LogLevel.md +1 -1
- package/docs/api/enums/RBACErrorCode.md +1 -1
- package/docs/api/enums/RPCFunction.md +1 -1
- package/docs/api/interfaces/AddressFieldProps.md +1 -1
- package/docs/api/interfaces/AddressFieldRef.md +1 -1
- package/docs/api/interfaces/AggregateConfig.md +1 -1
- package/docs/api/interfaces/AutocompleteOptions.md +1 -1
- package/docs/api/interfaces/AvatarProps.md +1 -1
- package/docs/api/interfaces/BadgeProps.md +1 -1
- package/docs/api/interfaces/ButtonProps.md +1 -1
- package/docs/api/interfaces/CalendarProps.md +1 -1
- package/docs/api/interfaces/CardProps.md +1 -1
- package/docs/api/interfaces/ColorPalette.md +1 -1
- package/docs/api/interfaces/ColorShade.md +1 -1
- package/docs/api/interfaces/ComplianceResult.md +1 -1
- package/docs/api/interfaces/DataAccessRecord.md +1 -1
- package/docs/api/interfaces/DataRecord.md +1 -1
- package/docs/api/interfaces/DataTableAction.md +1 -1
- package/docs/api/interfaces/DataTableColumn.md +1 -1
- package/docs/api/interfaces/DataTableProps.md +1 -1
- package/docs/api/interfaces/DataTableToolbarButton.md +1 -1
- package/docs/api/interfaces/DatabaseComplianceResult.md +1 -1
- package/docs/api/interfaces/DatabaseIssue.md +1 -1
- package/docs/api/interfaces/EmptyStateConfig.md +1 -1
- package/docs/api/interfaces/EnhancedNavigationMenuProps.md +1 -1
- package/docs/api/interfaces/EventAppRoleData.md +1 -1
- package/docs/api/interfaces/ExportColumn.md +1 -1
- package/docs/api/interfaces/ExportOptions.md +1 -1
- package/docs/api/interfaces/FileDisplayProps.md +24 -11
- package/docs/api/interfaces/FileMetadata.md +1 -1
- package/docs/api/interfaces/FileReference.md +1 -1
- package/docs/api/interfaces/FileSizeLimits.md +1 -1
- package/docs/api/interfaces/FileUploadOptions.md +1 -1
- package/docs/api/interfaces/FileUploadProps.md +1 -1
- package/docs/api/interfaces/FooterProps.md +1 -1
- package/docs/api/interfaces/FormFieldProps.md +1 -1
- package/docs/api/interfaces/FormProps.md +1 -1
- package/docs/api/interfaces/GrantEventAppRoleParams.md +1 -1
- package/docs/api/interfaces/InactivityWarningModalProps.md +1 -1
- package/docs/api/interfaces/InputProps.md +1 -1
- package/docs/api/interfaces/LabelProps.md +1 -1
- package/docs/api/interfaces/LoggerConfig.md +1 -1
- package/docs/api/interfaces/LoginFormProps.md +1 -1
- package/docs/api/interfaces/NavigationAccessRecord.md +2 -2
- package/docs/api/interfaces/NavigationContextType.md +1 -1
- package/docs/api/interfaces/NavigationGuardProps.md +1 -1
- package/docs/api/interfaces/NavigationItem.md +1 -1
- package/docs/api/interfaces/NavigationMenuProps.md +1 -1
- package/docs/api/interfaces/NavigationProviderProps.md +1 -1
- package/docs/api/interfaces/Organisation.md +1 -1
- package/docs/api/interfaces/OrganisationContextType.md +1 -1
- package/docs/api/interfaces/OrganisationMembership.md +1 -1
- package/docs/api/interfaces/OrganisationProviderProps.md +1 -1
- package/docs/api/interfaces/OrganisationSecurityError.md +1 -1
- package/docs/api/interfaces/PaceAppLayoutProps.md +1 -1
- package/docs/api/interfaces/PaceLoginPageProps.md +1 -1
- package/docs/api/interfaces/PageAccessRecord.md +1 -1
- package/docs/api/interfaces/PagePermissionContextType.md +1 -1
- package/docs/api/interfaces/PagePermissionGuardProps.md +2 -2
- package/docs/api/interfaces/PagePermissionProviderProps.md +1 -1
- package/docs/api/interfaces/PaletteData.md +1 -1
- package/docs/api/interfaces/ParsedAddress.md +2 -2
- package/docs/api/interfaces/PermissionEnforcerProps.md +4 -4
- package/docs/api/interfaces/ProgressProps.md +1 -1
- package/docs/api/interfaces/ProtectedRouteProps.md +1 -1
- package/docs/api/interfaces/PublicPageFooterProps.md +1 -1
- package/docs/api/interfaces/PublicPageHeaderProps.md +1 -1
- package/docs/api/interfaces/PublicPageLayoutProps.md +1 -1
- package/docs/api/interfaces/QuickFix.md +1 -1
- package/docs/api/interfaces/RBACAccessValidateParams.md +1 -1
- package/docs/api/interfaces/RBACAccessValidateResult.md +1 -1
- package/docs/api/interfaces/RBACAuditLogParams.md +1 -1
- package/docs/api/interfaces/RBACAuditLogResult.md +1 -1
- package/docs/api/interfaces/RBACConfig.md +2 -2
- package/docs/api/interfaces/RBACContext.md +1 -1
- package/docs/api/interfaces/RBACLogger.md +1 -1
- package/docs/api/interfaces/RBACPageAccessCheckParams.md +1 -1
- package/docs/api/interfaces/RBACPerformanceMetrics.md +1 -1
- package/docs/api/interfaces/RBACPermissionCheckParams.md +1 -1
- package/docs/api/interfaces/RBACPermissionCheckResult.md +2 -2
- package/docs/api/interfaces/RBACPermissionsGetParams.md +1 -1
- package/docs/api/interfaces/RBACPermissionsGetResult.md +1 -1
- package/docs/api/interfaces/RBACResult.md +1 -1
- package/docs/api/interfaces/RBACRoleGrantParams.md +2 -2
- package/docs/api/interfaces/RBACRoleGrantResult.md +1 -1
- package/docs/api/interfaces/RBACRoleRevokeParams.md +2 -2
- package/docs/api/interfaces/RBACRoleRevokeResult.md +1 -1
- package/docs/api/interfaces/RBACRoleValidateParams.md +2 -2
- package/docs/api/interfaces/RBACRoleValidateResult.md +1 -1
- package/docs/api/interfaces/RBACRolesListParams.md +1 -1
- package/docs/api/interfaces/RBACRolesListResult.md +2 -2
- package/docs/api/interfaces/RBACSessionTrackParams.md +1 -1
- package/docs/api/interfaces/RBACSessionTrackResult.md +1 -1
- package/docs/api/interfaces/ResourcePermissions.md +1 -1
- package/docs/api/interfaces/RevokeEventAppRoleParams.md +1 -1
- package/docs/api/interfaces/RoleBasedRouterContextType.md +1 -1
- package/docs/api/interfaces/RoleBasedRouterProps.md +1 -1
- package/docs/api/interfaces/RoleManagementResult.md +1 -1
- package/docs/api/interfaces/RouteAccessRecord.md +2 -2
- package/docs/api/interfaces/RouteConfig.md +2 -2
- package/docs/api/interfaces/RuntimeComplianceResult.md +1 -1
- package/docs/api/interfaces/SecureDataContextType.md +1 -1
- package/docs/api/interfaces/SecureDataProviderProps.md +1 -1
- package/docs/api/interfaces/SessionRestorationLoaderProps.md +1 -1
- package/docs/api/interfaces/SetupIssue.md +1 -1
- package/docs/api/interfaces/StorageConfig.md +1 -1
- package/docs/api/interfaces/StorageFileInfo.md +1 -1
- package/docs/api/interfaces/StorageFileMetadata.md +1 -1
- package/docs/api/interfaces/StorageListOptions.md +1 -1
- package/docs/api/interfaces/StorageListResult.md +1 -1
- package/docs/api/interfaces/StorageUploadOptions.md +1 -1
- package/docs/api/interfaces/StorageUploadResult.md +1 -1
- package/docs/api/interfaces/StorageUrlOptions.md +1 -1
- package/docs/api/interfaces/StyleImport.md +1 -1
- package/docs/api/interfaces/SwitchProps.md +1 -1
- package/docs/api/interfaces/TabsContentProps.md +1 -1
- package/docs/api/interfaces/TabsListProps.md +1 -1
- package/docs/api/interfaces/TabsProps.md +1 -1
- package/docs/api/interfaces/TabsTriggerProps.md +1 -1
- package/docs/api/interfaces/TextareaProps.md +1 -1
- package/docs/api/interfaces/ToastActionElement.md +1 -1
- package/docs/api/interfaces/ToastProps.md +1 -1
- package/docs/api/interfaces/UnifiedAuthContextType.md +60 -38
- package/docs/api/interfaces/UnifiedAuthProviderProps.md +13 -13
- package/docs/api/interfaces/UseFormDialogOptions.md +1 -1
- package/docs/api/interfaces/UseFormDialogReturn.md +1 -1
- package/docs/api/interfaces/UseInactivityTrackerOptions.md +1 -1
- package/docs/api/interfaces/UseInactivityTrackerReturn.md +1 -1
- package/docs/api/interfaces/UsePublicEventLogoOptions.md +2 -2
- package/docs/api/interfaces/UsePublicEventLogoReturn.md +1 -1
- package/docs/api/interfaces/UsePublicEventOptions.md +1 -1
- package/docs/api/interfaces/UsePublicEventReturn.md +1 -1
- package/docs/api/interfaces/UsePublicFileDisplayOptions.md +2 -2
- package/docs/api/interfaces/UsePublicFileDisplayReturn.md +1 -1
- package/docs/api/interfaces/UsePublicRouteParamsReturn.md +1 -1
- package/docs/api/interfaces/UseResolvedScopeOptions.md +2 -2
- package/docs/api/interfaces/UseResolvedScopeReturn.md +1 -1
- package/docs/api/interfaces/UseResourcePermissionsOptions.md +1 -1
- package/docs/api/interfaces/UserEventAccess.md +1 -1
- package/docs/api/interfaces/UserMenuProps.md +1 -1
- package/docs/api/interfaces/UserProfile.md +1 -1
- package/docs/api/modules.md +202 -217
- package/docs/migration/README.md +18 -0
- package/docs/migration/database-changes-december-2025.md +768 -0
- package/docs/migration/person-scoped-profiles-migration-guide.md +472 -0
- package/docs/rbac/event-based-apps.md +124 -6
- package/package.json +1 -1
- package/scripts/check-pace-core-compliance.cjs +292 -57
- package/src/__tests__/public-recipe-view.test.ts +10 -10
- package/src/__tests__/rls-policies.test.ts +16 -14
- package/src/components/AddressField/README.md +6 -6
- package/src/components/DataTable/__tests__/DataTable.default-state.test.tsx +172 -45
- package/src/components/DataTable/__tests__/DataTable.grouping-aggregation.test.tsx +121 -28
- package/src/components/DataTable/__tests__/DataTableCore.test-setup.ts +9 -8
- package/src/components/DataTable/__tests__/DataTableCore.test.tsx +20 -52
- package/src/components/DataTable/__tests__/a11y.basic.test.tsx +170 -34
- package/src/components/DataTable/__tests__/keyboard.test.tsx +75 -12
- package/src/components/DataTable/__tests__/pagination.modes.test.tsx +75 -11
- package/src/components/DataTable/components/UnifiedTableBody.tsx +85 -14
- package/src/components/DataTable/hooks/useDataTablePermissions.ts +75 -10
- package/src/components/FileDisplay/FileDisplay.test.tsx +2 -1
- package/src/components/FileDisplay/FileDisplay.tsx +16 -4
- package/src/components/NavigationMenu/NavigationMenu.test.tsx +6 -4
- package/src/components/NavigationMenu/NavigationMenu.tsx +1 -10
- package/src/components/OrganisationSelector/OrganisationSelector.tsx +35 -16
- package/src/components/PaceAppLayout/PaceAppLayout.test.tsx +25 -2
- package/src/components/PaceAppLayout/PaceAppLayout.tsx +97 -68
- package/src/components/PaceLoginPage/PaceLoginPage.tsx +0 -7
- package/src/components/ProtectedRoute/ProtectedRoute.test.tsx +5 -9
- package/src/components/ProtectedRoute/ProtectedRoute.tsx +0 -1
- package/src/components/PublicLayout/PublicPageProvider.tsx +0 -1
- package/src/components/Select/Select.test.tsx +4 -1
- package/src/components/Select/Select.tsx +60 -15
- package/src/hooks/__tests__/usePermissionCache.simple.test.ts +192 -0
- package/src/hooks/__tests__/usePermissionCache.unit.test.ts +741 -0
- package/src/hooks/__tests__/usePublicEvent.simple.test.ts +703 -0
- package/src/hooks/__tests__/usePublicEvent.unit.test.ts +581 -0
- package/src/hooks/__tests__/useSecureDataAccess.unit.test.tsx +23 -15
- package/src/hooks/public/usePublicEvent.ts +8 -8
- package/src/hooks/public/usePublicFileDisplay.ts +2 -2
- package/src/hooks/services/useAuthService.ts +21 -3
- package/src/hooks/services/useEventService.ts +21 -3
- package/src/hooks/services/useInactivityService.ts +21 -3
- package/src/hooks/services/useOrganisationService.ts +21 -3
- package/src/hooks/useFileDisplay.ts +18 -26
- package/src/hooks/useQueryCache.ts +6 -6
- package/src/hooks/useSecureDataAccess.test.ts +24 -17
- package/src/hooks/useSecureDataAccess.ts +18 -13
- package/src/providers/__tests__/OrganisationProvider.test.tsx +27 -21
- package/src/providers/services/EventServiceProvider.tsx +0 -8
- package/src/providers/services/UnifiedAuthProvider.tsx +174 -24
- package/src/rbac/__tests__/adapters.comprehensive.test.tsx +10 -16
- package/src/rbac/__tests__/isSuperAdmin.real.test.ts +82 -0
- package/src/rbac/adapters.tsx +3 -22
- package/src/rbac/api.test.ts +2 -2
- package/src/rbac/api.ts +7 -1
- package/src/rbac/components/EnhancedNavigationMenu.tsx +2 -15
- package/src/rbac/components/NavigationGuard.tsx +1 -10
- package/src/rbac/components/NavigationProvider.tsx +0 -1
- package/src/rbac/components/PermissionEnforcer.tsx +45 -12
- package/src/rbac/components/SecureDataProvider.tsx +0 -1
- package/src/rbac/components/__tests__/EnhancedNavigationMenu.test.tsx +7 -43
- package/src/rbac/components/__tests__/NavigationGuard.test.tsx +4 -11
- package/src/rbac/components/__tests__/NavigationProvider.test.tsx +3 -3
- package/src/rbac/components/__tests__/SecureDataProvider.fixed.test.tsx +1 -1
- package/src/rbac/components/__tests__/SecureDataProvider.test.tsx +1 -1
- package/src/rbac/engine.ts +14 -2
- package/src/rbac/hooks/index.ts +0 -3
- package/src/rbac/hooks/usePermissions.ts +51 -11
- package/src/rbac/hooks/useRBAC.simple.test.ts +95 -0
- package/src/rbac/hooks/useRBAC.ts +3 -13
- package/src/rbac/hooks/useResolvedScope.test.ts +75 -54
- package/src/rbac/hooks/useResolvedScope.ts +58 -33
- package/src/rbac/hooks/useSecureSupabase.ts +4 -9
- package/src/rbac/secureClient.ts +31 -0
- package/src/rbac/utils/__tests__/eventContext.test.ts +2 -2
- package/src/rbac/utils/__tests__/eventContext.unit.test.ts +490 -0
- package/src/rbac/utils/eventContext.ts +5 -2
- package/src/services/AuthService.ts +37 -8
- package/src/services/EventService.ts +4 -57
- package/src/services/InactivityService.ts +127 -34
- package/src/services/OrganisationService.ts +160 -149
- package/src/services/__tests__/OrganisationService.pagination.test.ts +34 -8
- package/src/services/__tests__/OrganisationService.test.ts +218 -86
- package/src/types/database.generated.ts +166 -201
- package/src/types/supabase.ts +2 -2
- package/src/utils/__tests__/secureDataAccess.unit.test.ts +3 -2
- package/src/utils/file-reference/index.ts +4 -4
- package/src/utils/google-places/googlePlacesUtils.ts +1 -1
- package/src/utils/google-places/types.ts +1 -1
- package/src/utils/request-deduplication.ts +4 -4
- package/src/utils/security/secureDataAccess.test.ts +1 -1
- package/src/utils/security/secureDataAccess.ts +7 -4
- package/src/utils/storage/README.md +1 -1
- package/dist/chunk-4QYC5L4K.js.map +0 -1
- package/dist/chunk-73HSNNOQ.js.map +0 -1
- package/dist/chunk-HQVPB5MZ.js.map +0 -1
- package/dist/chunk-J2XXC7R5.js.map +0 -1
- package/dist/chunk-NIU6J6OX.js.map +0 -1
- package/dist/chunk-RUYZKXOD.js.map +0 -1
- package/dist/chunk-STYK4OH2.js.map +0 -1
- package/dist/chunk-VVBAW5A5.js.map +0 -1
- package/dist/chunk-Y4BUBBHD.js.map +0 -1
- package/scripts/check-pace-core-compliance.js +0 -512
- package/src/rbac/hooks/useSuperAdminBypass.ts +0 -126
- package/src/utils/context/superAdminOverride.ts +0 -58
- /package/dist/{DataTable-ON3IXISJ.js.map → DataTable-5FU7IESH.js.map} +0 -0
- /package/dist/{UnifiedAuthProvider-X5NXANVI.js.map → UnifiedAuthProvider-RGJTDE2C.js.map} +0 -0
- /package/dist/{api-I6UCQ5S6.js.map → api-N774RPUA.js.map} +0 -0
|
@@ -65,7 +65,7 @@ export type Database = {
|
|
|
65
65
|
foreignKeyName: "addresses_organisation_id_fkey"
|
|
66
66
|
columns: ["organisation_id"]
|
|
67
67
|
isOneToOne: false
|
|
68
|
-
referencedRelation: "
|
|
68
|
+
referencedRelation: "core_organisations"
|
|
69
69
|
referencedColumns: ["id"]
|
|
70
70
|
},
|
|
71
71
|
]
|
|
@@ -118,21 +118,21 @@ export type Database = {
|
|
|
118
118
|
foreignKeyName: "base_application_event_id_fkey"
|
|
119
119
|
columns: ["event_id"]
|
|
120
120
|
isOneToOne: false
|
|
121
|
-
referencedRelation: "
|
|
121
|
+
referencedRelation: "core_events"
|
|
122
122
|
referencedColumns: ["event_id"]
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
foreignKeyName: "base_application_organisation_id_fkey"
|
|
126
126
|
columns: ["organisation_id"]
|
|
127
127
|
isOneToOne: false
|
|
128
|
-
referencedRelation: "
|
|
128
|
+
referencedRelation: "core_organisations"
|
|
129
129
|
referencedColumns: ["id"]
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
foreignKeyName: "base_application_person_id_fkey"
|
|
133
133
|
columns: ["person_id"]
|
|
134
134
|
isOneToOne: false
|
|
135
|
-
referencedRelation: "
|
|
135
|
+
referencedRelation: "core_person"
|
|
136
136
|
referencedColumns: ["id"]
|
|
137
137
|
},
|
|
138
138
|
]
|
|
@@ -203,7 +203,7 @@ export type Database = {
|
|
|
203
203
|
foreignKeyName: "base_questions_organisation_id_fkey"
|
|
204
204
|
columns: ["organisation_id"]
|
|
205
205
|
isOneToOne: false
|
|
206
|
-
referencedRelation: "
|
|
206
|
+
referencedRelation: "core_organisations"
|
|
207
207
|
referencedColumns: ["id"]
|
|
208
208
|
},
|
|
209
209
|
]
|
|
@@ -256,14 +256,14 @@ export type Database = {
|
|
|
256
256
|
foreignKeyName: "cake_delivery_organisation_id_fkey"
|
|
257
257
|
columns: ["organisation_id"]
|
|
258
258
|
isOneToOne: false
|
|
259
|
-
referencedRelation: "
|
|
259
|
+
referencedRelation: "core_organisations"
|
|
260
260
|
referencedColumns: ["id"]
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
foreignKeyName: "delivery_delivery_event_id_fkey"
|
|
264
264
|
columns: ["delivery_event_id"]
|
|
265
265
|
isOneToOne: false
|
|
266
|
-
referencedRelation: "
|
|
266
|
+
referencedRelation: "core_events"
|
|
267
267
|
referencedColumns: ["event_id"]
|
|
268
268
|
},
|
|
269
269
|
{
|
|
@@ -317,7 +317,7 @@ export type Database = {
|
|
|
317
317
|
foreignKeyName: "cake_diettype_organisation_id_fkey"
|
|
318
318
|
columns: ["organisation_id"]
|
|
319
319
|
isOneToOne: false
|
|
320
|
-
referencedRelation: "
|
|
320
|
+
referencedRelation: "core_organisations"
|
|
321
321
|
referencedColumns: ["id"]
|
|
322
322
|
},
|
|
323
323
|
]
|
|
@@ -364,7 +364,7 @@ export type Database = {
|
|
|
364
364
|
foreignKeyName: "cake_diner_organisation_id_fkey"
|
|
365
365
|
columns: ["organisation_id"]
|
|
366
366
|
isOneToOne: false
|
|
367
|
-
referencedRelation: "
|
|
367
|
+
referencedRelation: "core_organisations"
|
|
368
368
|
referencedColumns: ["id"]
|
|
369
369
|
},
|
|
370
370
|
{
|
|
@@ -452,14 +452,14 @@ export type Database = {
|
|
|
452
452
|
foreignKeyName: "cake_dish_organisation_id_fkey"
|
|
453
453
|
columns: ["organisation_id"]
|
|
454
454
|
isOneToOne: false
|
|
455
|
-
referencedRelation: "
|
|
455
|
+
referencedRelation: "core_organisations"
|
|
456
456
|
referencedColumns: ["id"]
|
|
457
457
|
},
|
|
458
458
|
{
|
|
459
459
|
foreignKeyName: "dish_dish_event_id_fkey"
|
|
460
460
|
columns: ["dish_event_id"]
|
|
461
461
|
isOneToOne: false
|
|
462
|
-
referencedRelation: "
|
|
462
|
+
referencedRelation: "core_events"
|
|
463
463
|
referencedColumns: ["event_id"]
|
|
464
464
|
},
|
|
465
465
|
{
|
|
@@ -561,7 +561,7 @@ export type Database = {
|
|
|
561
561
|
foreignKeyName: "cake_item_organisation_id_fkey"
|
|
562
562
|
columns: ["organisation_id"]
|
|
563
563
|
isOneToOne: false
|
|
564
|
-
referencedRelation: "
|
|
564
|
+
referencedRelation: "core_organisations"
|
|
565
565
|
referencedColumns: ["id"]
|
|
566
566
|
},
|
|
567
567
|
{
|
|
@@ -609,7 +609,7 @@ export type Database = {
|
|
|
609
609
|
foreignKeyName: "cake_logistics_organisation_id_fkey"
|
|
610
610
|
columns: ["organisation_id"]
|
|
611
611
|
isOneToOne: false
|
|
612
|
-
referencedRelation: "
|
|
612
|
+
referencedRelation: "core_organisations"
|
|
613
613
|
referencedColumns: ["id"]
|
|
614
614
|
},
|
|
615
615
|
]
|
|
@@ -659,14 +659,14 @@ export type Database = {
|
|
|
659
659
|
foreignKeyName: "cake_meal_organisation_id_fkey"
|
|
660
660
|
columns: ["organisation_id"]
|
|
661
661
|
isOneToOne: false
|
|
662
|
-
referencedRelation: "
|
|
662
|
+
referencedRelation: "core_organisations"
|
|
663
663
|
referencedColumns: ["id"]
|
|
664
664
|
},
|
|
665
665
|
{
|
|
666
666
|
foreignKeyName: "meal_meal_event_id_fkey"
|
|
667
667
|
columns: ["meal_event_id"]
|
|
668
668
|
isOneToOne: false
|
|
669
|
-
referencedRelation: "
|
|
669
|
+
referencedRelation: "core_events"
|
|
670
670
|
referencedColumns: ["event_id"]
|
|
671
671
|
},
|
|
672
672
|
{
|
|
@@ -720,7 +720,7 @@ export type Database = {
|
|
|
720
720
|
foreignKeyName: "cake_mealplan_organisation_id_fkey"
|
|
721
721
|
columns: ["organisation_id"]
|
|
722
722
|
isOneToOne: false
|
|
723
|
-
referencedRelation: "
|
|
723
|
+
referencedRelation: "core_organisations"
|
|
724
724
|
referencedColumns: ["id"]
|
|
725
725
|
},
|
|
726
726
|
{
|
|
@@ -779,7 +779,7 @@ export type Database = {
|
|
|
779
779
|
foreignKeyName: "cake_mealtype_organisation_id_fkey"
|
|
780
780
|
columns: ["organisation_id"]
|
|
781
781
|
isOneToOne: false
|
|
782
|
-
referencedRelation: "
|
|
782
|
+
referencedRelation: "core_organisations"
|
|
783
783
|
referencedColumns: ["id"]
|
|
784
784
|
},
|
|
785
785
|
]
|
|
@@ -829,7 +829,7 @@ export type Database = {
|
|
|
829
829
|
foreignKeyName: "cake_package_organisation_id_fkey"
|
|
830
830
|
columns: ["organisation_id"]
|
|
831
831
|
isOneToOne: false
|
|
832
|
-
referencedRelation: "
|
|
832
|
+
referencedRelation: "core_organisations"
|
|
833
833
|
referencedColumns: ["id"]
|
|
834
834
|
},
|
|
835
835
|
{
|
|
@@ -886,7 +886,7 @@ export type Database = {
|
|
|
886
886
|
foreignKeyName: "cake_recipe_organisation_id_fkey"
|
|
887
887
|
columns: ["organisation_id"]
|
|
888
888
|
isOneToOne: false
|
|
889
|
-
referencedRelation: "
|
|
889
|
+
referencedRelation: "core_organisations"
|
|
890
890
|
referencedColumns: ["id"]
|
|
891
891
|
},
|
|
892
892
|
{
|
|
@@ -954,7 +954,7 @@ export type Database = {
|
|
|
954
954
|
foreignKeyName: "cake_supplier_organisation_id_fkey"
|
|
955
955
|
columns: ["organisation_id"]
|
|
956
956
|
isOneToOne: false
|
|
957
|
-
referencedRelation: "
|
|
957
|
+
referencedRelation: "core_organisations"
|
|
958
958
|
referencedColumns: ["id"]
|
|
959
959
|
},
|
|
960
960
|
]
|
|
@@ -1004,14 +1004,14 @@ export type Database = {
|
|
|
1004
1004
|
foreignKeyName: "cake_supply_organisation_id_fkey"
|
|
1005
1005
|
columns: ["organisation_id"]
|
|
1006
1006
|
isOneToOne: false
|
|
1007
|
-
referencedRelation: "
|
|
1007
|
+
referencedRelation: "core_organisations"
|
|
1008
1008
|
referencedColumns: ["id"]
|
|
1009
1009
|
},
|
|
1010
1010
|
{
|
|
1011
1011
|
foreignKeyName: "supply_supply_event_id_fkey"
|
|
1012
1012
|
columns: ["supply_event_id"]
|
|
1013
1013
|
isOneToOne: false
|
|
1014
|
-
referencedRelation: "
|
|
1014
|
+
referencedRelation: "core_events"
|
|
1015
1015
|
referencedColumns: ["event_id"]
|
|
1016
1016
|
},
|
|
1017
1017
|
{
|
|
@@ -1075,19 +1075,19 @@ export type Database = {
|
|
|
1075
1075
|
foreignKeyName: "cake_unit_organisation_id_fkey"
|
|
1076
1076
|
columns: ["organisation_id"]
|
|
1077
1077
|
isOneToOne: false
|
|
1078
|
-
referencedRelation: "
|
|
1078
|
+
referencedRelation: "core_organisations"
|
|
1079
1079
|
referencedColumns: ["id"]
|
|
1080
1080
|
},
|
|
1081
1081
|
{
|
|
1082
1082
|
foreignKeyName: "unit_unit_event_id_fkey"
|
|
1083
1083
|
columns: ["unit_event_id"]
|
|
1084
1084
|
isOneToOne: false
|
|
1085
|
-
referencedRelation: "
|
|
1085
|
+
referencedRelation: "core_events"
|
|
1086
1086
|
referencedColumns: ["event_id"]
|
|
1087
1087
|
},
|
|
1088
1088
|
]
|
|
1089
1089
|
}
|
|
1090
|
-
|
|
1090
|
+
core_events: {
|
|
1091
1091
|
Row: {
|
|
1092
1092
|
created_at: string | null
|
|
1093
1093
|
created_by: string | null
|
|
@@ -1162,12 +1162,12 @@ export type Database = {
|
|
|
1162
1162
|
foreignKeyName: "event_organisation_id_fkey"
|
|
1163
1163
|
columns: ["organisation_id"]
|
|
1164
1164
|
isOneToOne: false
|
|
1165
|
-
referencedRelation: "
|
|
1165
|
+
referencedRelation: "core_organisations"
|
|
1166
1166
|
referencedColumns: ["id"]
|
|
1167
1167
|
},
|
|
1168
1168
|
]
|
|
1169
1169
|
}
|
|
1170
|
-
|
|
1170
|
+
core_event_app_access: {
|
|
1171
1171
|
Row: {
|
|
1172
1172
|
app_id: string
|
|
1173
1173
|
created_at: string
|
|
@@ -1203,14 +1203,14 @@ export type Database = {
|
|
|
1203
1203
|
foreignKeyName: "event_app_access_event_id_fkey"
|
|
1204
1204
|
columns: ["event_id"]
|
|
1205
1205
|
isOneToOne: false
|
|
1206
|
-
referencedRelation: "
|
|
1206
|
+
referencedRelation: "core_events"
|
|
1207
1207
|
referencedColumns: ["event_id"]
|
|
1208
1208
|
},
|
|
1209
1209
|
{
|
|
1210
1210
|
foreignKeyName: "event_app_access_organisation_id_fkey"
|
|
1211
1211
|
columns: ["organisation_id"]
|
|
1212
1212
|
isOneToOne: false
|
|
1213
|
-
referencedRelation: "
|
|
1213
|
+
referencedRelation: "core_organisations"
|
|
1214
1214
|
referencedColumns: ["id"]
|
|
1215
1215
|
},
|
|
1216
1216
|
{
|
|
@@ -1224,12 +1224,12 @@ export type Database = {
|
|
|
1224
1224
|
foreignKeyName: "fk_event_app_access_event_id"
|
|
1225
1225
|
columns: ["event_id"]
|
|
1226
1226
|
isOneToOne: false
|
|
1227
|
-
referencedRelation: "
|
|
1227
|
+
referencedRelation: "core_events"
|
|
1228
1228
|
referencedColumns: ["event_id"]
|
|
1229
1229
|
},
|
|
1230
1230
|
]
|
|
1231
1231
|
}
|
|
1232
|
-
|
|
1232
|
+
core_file_references: {
|
|
1233
1233
|
Row: {
|
|
1234
1234
|
app_id: string
|
|
1235
1235
|
created_at: string | null
|
|
@@ -1278,12 +1278,12 @@ export type Database = {
|
|
|
1278
1278
|
foreignKeyName: "file_references_organisation_id_fkey"
|
|
1279
1279
|
columns: ["organisation_id"]
|
|
1280
1280
|
isOneToOne: false
|
|
1281
|
-
referencedRelation: "
|
|
1281
|
+
referencedRelation: "core_organisations"
|
|
1282
1282
|
referencedColumns: ["id"]
|
|
1283
1283
|
},
|
|
1284
1284
|
]
|
|
1285
1285
|
}
|
|
1286
|
-
|
|
1286
|
+
core_form_context_types: {
|
|
1287
1287
|
Row: {
|
|
1288
1288
|
created_at: string | null
|
|
1289
1289
|
created_by: string | null
|
|
@@ -1325,12 +1325,12 @@ export type Database = {
|
|
|
1325
1325
|
foreignKeyName: "form_contexts_organisation_id_fkey"
|
|
1326
1326
|
columns: ["organisation_id"]
|
|
1327
1327
|
isOneToOne: false
|
|
1328
|
-
referencedRelation: "
|
|
1328
|
+
referencedRelation: "core_organisations"
|
|
1329
1329
|
referencedColumns: ["id"]
|
|
1330
1330
|
},
|
|
1331
1331
|
]
|
|
1332
1332
|
}
|
|
1333
|
-
|
|
1333
|
+
core_form_field_config: {
|
|
1334
1334
|
Row: {
|
|
1335
1335
|
admin_notes: string | null
|
|
1336
1336
|
category: string | null
|
|
@@ -1381,12 +1381,12 @@ export type Database = {
|
|
|
1381
1381
|
foreignKeyName: "form_field_config_organisation_id_fkey"
|
|
1382
1382
|
columns: ["organisation_id"]
|
|
1383
1383
|
isOneToOne: false
|
|
1384
|
-
referencedRelation: "
|
|
1384
|
+
referencedRelation: "core_organisations"
|
|
1385
1385
|
referencedColumns: ["id"]
|
|
1386
1386
|
},
|
|
1387
1387
|
]
|
|
1388
1388
|
}
|
|
1389
|
-
|
|
1389
|
+
core_form_fields: {
|
|
1390
1390
|
Row: {
|
|
1391
1391
|
column_name: string
|
|
1392
1392
|
created_at: string | null
|
|
@@ -1446,19 +1446,19 @@ export type Database = {
|
|
|
1446
1446
|
foreignKeyName: "form_fields_form_id_fkey"
|
|
1447
1447
|
columns: ["form_id"]
|
|
1448
1448
|
isOneToOne: false
|
|
1449
|
-
referencedRelation: "
|
|
1449
|
+
referencedRelation: "core_forms"
|
|
1450
1450
|
referencedColumns: ["id"]
|
|
1451
1451
|
},
|
|
1452
1452
|
{
|
|
1453
1453
|
foreignKeyName: "form_fields_organisation_id_fkey"
|
|
1454
1454
|
columns: ["organisation_id"]
|
|
1455
1455
|
isOneToOne: false
|
|
1456
|
-
referencedRelation: "
|
|
1456
|
+
referencedRelation: "core_organisations"
|
|
1457
1457
|
referencedColumns: ["id"]
|
|
1458
1458
|
},
|
|
1459
1459
|
]
|
|
1460
1460
|
}
|
|
1461
|
-
|
|
1461
|
+
core_form_response_values: {
|
|
1462
1462
|
Row: {
|
|
1463
1463
|
column_name: string
|
|
1464
1464
|
created_at: string | null
|
|
@@ -1500,26 +1500,26 @@ export type Database = {
|
|
|
1500
1500
|
foreignKeyName: "fk_form_response_values_organisation_id"
|
|
1501
1501
|
columns: ["organisation_id"]
|
|
1502
1502
|
isOneToOne: false
|
|
1503
|
-
referencedRelation: "
|
|
1503
|
+
referencedRelation: "core_organisations"
|
|
1504
1504
|
referencedColumns: ["id"]
|
|
1505
1505
|
},
|
|
1506
1506
|
{
|
|
1507
1507
|
foreignKeyName: "form_response_values_form_field_id_fkey"
|
|
1508
1508
|
columns: ["form_field_id"]
|
|
1509
1509
|
isOneToOne: false
|
|
1510
|
-
referencedRelation: "
|
|
1510
|
+
referencedRelation: "core_form_fields"
|
|
1511
1511
|
referencedColumns: ["id"]
|
|
1512
1512
|
},
|
|
1513
1513
|
{
|
|
1514
1514
|
foreignKeyName: "form_response_values_response_id_fkey"
|
|
1515
1515
|
columns: ["response_id"]
|
|
1516
1516
|
isOneToOne: false
|
|
1517
|
-
referencedRelation: "
|
|
1517
|
+
referencedRelation: "core_form_responses"
|
|
1518
1518
|
referencedColumns: ["id"]
|
|
1519
1519
|
},
|
|
1520
1520
|
]
|
|
1521
1521
|
}
|
|
1522
|
-
|
|
1522
|
+
core_form_responses: {
|
|
1523
1523
|
Row: {
|
|
1524
1524
|
created_at: string | null
|
|
1525
1525
|
created_by: string | null
|
|
@@ -1570,19 +1570,19 @@ export type Database = {
|
|
|
1570
1570
|
foreignKeyName: "fk_form_responses_organisation_id"
|
|
1571
1571
|
columns: ["organisation_id"]
|
|
1572
1572
|
isOneToOne: false
|
|
1573
|
-
referencedRelation: "
|
|
1573
|
+
referencedRelation: "core_organisations"
|
|
1574
1574
|
referencedColumns: ["id"]
|
|
1575
1575
|
},
|
|
1576
1576
|
{
|
|
1577
1577
|
foreignKeyName: "form_responses_form_id_fkey"
|
|
1578
1578
|
columns: ["form_id"]
|
|
1579
1579
|
isOneToOne: false
|
|
1580
|
-
referencedRelation: "
|
|
1580
|
+
referencedRelation: "core_forms"
|
|
1581
1581
|
referencedColumns: ["id"]
|
|
1582
1582
|
},
|
|
1583
1583
|
]
|
|
1584
1584
|
}
|
|
1585
|
-
|
|
1585
|
+
core_forms: {
|
|
1586
1586
|
Row: {
|
|
1587
1587
|
allow_multiple_submissions: boolean | null
|
|
1588
1588
|
closes_at: string | null
|
|
@@ -1648,14 +1648,14 @@ export type Database = {
|
|
|
1648
1648
|
foreignKeyName: "fk_forms_organisation_id"
|
|
1649
1649
|
columns: ["organisation_id"]
|
|
1650
1650
|
isOneToOne: false
|
|
1651
|
-
referencedRelation: "
|
|
1651
|
+
referencedRelation: "core_organisations"
|
|
1652
1652
|
referencedColumns: ["id"]
|
|
1653
1653
|
},
|
|
1654
1654
|
{
|
|
1655
1655
|
foreignKeyName: "forms_context_id_fkey"
|
|
1656
1656
|
columns: ["context_id"]
|
|
1657
1657
|
isOneToOne: false
|
|
1658
|
-
referencedRelation: "
|
|
1658
|
+
referencedRelation: "core_form_context_types"
|
|
1659
1659
|
referencedColumns: ["id"]
|
|
1660
1660
|
},
|
|
1661
1661
|
]
|
|
@@ -1705,7 +1705,7 @@ export type Database = {
|
|
|
1705
1705
|
foreignKeyName: "fk_medi_access_log_organisation_id"
|
|
1706
1706
|
columns: ["organisation_id"]
|
|
1707
1707
|
isOneToOne: false
|
|
1708
|
-
referencedRelation: "
|
|
1708
|
+
referencedRelation: "core_organisations"
|
|
1709
1709
|
referencedColumns: ["id"]
|
|
1710
1710
|
},
|
|
1711
1711
|
{
|
|
@@ -1771,7 +1771,7 @@ export type Database = {
|
|
|
1771
1771
|
foreignKeyName: "fk_medi_action_plan_organisation_id"
|
|
1772
1772
|
columns: ["organisation_id"]
|
|
1773
1773
|
isOneToOne: false
|
|
1774
|
-
referencedRelation: "
|
|
1774
|
+
referencedRelation: "core_organisations"
|
|
1775
1775
|
referencedColumns: ["id"]
|
|
1776
1776
|
},
|
|
1777
1777
|
{
|
|
@@ -1873,7 +1873,7 @@ export type Database = {
|
|
|
1873
1873
|
foreignKeyName: "fk_medi_condition_organisation_id"
|
|
1874
1874
|
columns: ["organisation_id"]
|
|
1875
1875
|
isOneToOne: false
|
|
1876
|
-
referencedRelation: "
|
|
1876
|
+
referencedRelation: "core_organisations"
|
|
1877
1877
|
referencedColumns: ["id"]
|
|
1878
1878
|
},
|
|
1879
1879
|
{
|
|
@@ -1931,7 +1931,7 @@ export type Database = {
|
|
|
1931
1931
|
foreignKeyName: "medi_condition_type_organisation_id_fkey"
|
|
1932
1932
|
columns: ["organisation_id"]
|
|
1933
1933
|
isOneToOne: false
|
|
1934
|
-
referencedRelation: "
|
|
1934
|
+
referencedRelation: "core_organisations"
|
|
1935
1935
|
referencedColumns: ["id"]
|
|
1936
1936
|
},
|
|
1937
1937
|
{
|
|
@@ -1988,7 +1988,7 @@ export type Database = {
|
|
|
1988
1988
|
foreignKeyName: "fk_medi_diet_organisation_id"
|
|
1989
1989
|
columns: ["organisation_id"]
|
|
1990
1990
|
isOneToOne: false
|
|
1991
|
-
referencedRelation: "
|
|
1991
|
+
referencedRelation: "core_organisations"
|
|
1992
1992
|
referencedColumns: ["id"]
|
|
1993
1993
|
},
|
|
1994
1994
|
{
|
|
@@ -2112,14 +2112,14 @@ export type Database = {
|
|
|
2112
2112
|
foreignKeyName: "fk_medi_profile_organisation_id"
|
|
2113
2113
|
columns: ["organisation_id"]
|
|
2114
2114
|
isOneToOne: false
|
|
2115
|
-
referencedRelation: "
|
|
2115
|
+
referencedRelation: "core_organisations"
|
|
2116
2116
|
referencedColumns: ["id"]
|
|
2117
2117
|
},
|
|
2118
2118
|
{
|
|
2119
2119
|
foreignKeyName: "medi_profile_member_id_fkey"
|
|
2120
2120
|
columns: ["member_id"]
|
|
2121
2121
|
isOneToOne: true
|
|
2122
|
-
referencedRelation: "
|
|
2122
|
+
referencedRelation: "core_member"
|
|
2123
2123
|
referencedColumns: ["id"]
|
|
2124
2124
|
},
|
|
2125
2125
|
]
|
|
@@ -2160,7 +2160,7 @@ export type Database = {
|
|
|
2160
2160
|
foreignKeyName: "fk_medi_profile_versions_organisation_id"
|
|
2161
2161
|
columns: ["organisation_id"]
|
|
2162
2162
|
isOneToOne: false
|
|
2163
|
-
referencedRelation: "
|
|
2163
|
+
referencedRelation: "core_organisations"
|
|
2164
2164
|
referencedColumns: ["id"]
|
|
2165
2165
|
},
|
|
2166
2166
|
{
|
|
@@ -2310,7 +2310,7 @@ export type Database = {
|
|
|
2310
2310
|
foreignKeyName: "credit_balance_organisation_id_fkey"
|
|
2311
2311
|
columns: ["organisation_id"]
|
|
2312
2312
|
isOneToOne: false
|
|
2313
|
-
referencedRelation: "
|
|
2313
|
+
referencedRelation: "core_organisations"
|
|
2314
2314
|
referencedColumns: ["id"]
|
|
2315
2315
|
},
|
|
2316
2316
|
]
|
|
@@ -2428,7 +2428,7 @@ export type Database = {
|
|
|
2428
2428
|
foreignKeyName: "invoice_organisation_id_fkey"
|
|
2429
2429
|
columns: ["organisation_id"]
|
|
2430
2430
|
isOneToOne: false
|
|
2431
|
-
referencedRelation: "
|
|
2431
|
+
referencedRelation: "core_organisations"
|
|
2432
2432
|
referencedColumns: ["id"]
|
|
2433
2433
|
},
|
|
2434
2434
|
]
|
|
@@ -2497,7 +2497,7 @@ export type Database = {
|
|
|
2497
2497
|
foreignKeyName: "line_item_organisation_id_fkey"
|
|
2498
2498
|
columns: ["organisation_id"]
|
|
2499
2499
|
isOneToOne: false
|
|
2500
|
-
referencedRelation: "
|
|
2500
|
+
referencedRelation: "core_organisations"
|
|
2501
2501
|
referencedColumns: ["id"]
|
|
2502
2502
|
},
|
|
2503
2503
|
]
|
|
@@ -2648,7 +2648,7 @@ export type Database = {
|
|
|
2648
2648
|
foreignKeyName: "payment_method_organisation_id_fkey"
|
|
2649
2649
|
columns: ["organisation_id"]
|
|
2650
2650
|
isOneToOne: false
|
|
2651
|
-
referencedRelation: "
|
|
2651
|
+
referencedRelation: "core_organisations"
|
|
2652
2652
|
referencedColumns: ["id"]
|
|
2653
2653
|
},
|
|
2654
2654
|
]
|
|
@@ -2740,7 +2740,7 @@ export type Database = {
|
|
|
2740
2740
|
foreignKeyName: "webhook_log_organisation_id_fkey"
|
|
2741
2741
|
columns: ["organisation_id"]
|
|
2742
2742
|
isOneToOne: false
|
|
2743
|
-
referencedRelation: "
|
|
2743
|
+
referencedRelation: "core_organisations"
|
|
2744
2744
|
referencedColumns: ["id"]
|
|
2745
2745
|
},
|
|
2746
2746
|
]
|
|
@@ -2782,12 +2782,12 @@ export type Database = {
|
|
|
2782
2782
|
foreignKeyName: "note_attachments_organisation_id_fkey"
|
|
2783
2783
|
columns: ["organisation_id"]
|
|
2784
2784
|
isOneToOne: false
|
|
2785
|
-
referencedRelation: "
|
|
2785
|
+
referencedRelation: "core_organisations"
|
|
2786
2786
|
referencedColumns: ["id"]
|
|
2787
2787
|
},
|
|
2788
2788
|
]
|
|
2789
2789
|
}
|
|
2790
|
-
|
|
2790
|
+
core_organisation_app_access: {
|
|
2791
2791
|
Row: {
|
|
2792
2792
|
app_id: string
|
|
2793
2793
|
created_at: string | null
|
|
@@ -2833,12 +2833,12 @@ export type Database = {
|
|
|
2833
2833
|
foreignKeyName: "organisation_app_access_organisation_id_fkey"
|
|
2834
2834
|
columns: ["organisation_id"]
|
|
2835
2835
|
isOneToOne: false
|
|
2836
|
-
referencedRelation: "
|
|
2836
|
+
referencedRelation: "core_organisations"
|
|
2837
2837
|
referencedColumns: ["id"]
|
|
2838
2838
|
},
|
|
2839
2839
|
]
|
|
2840
2840
|
}
|
|
2841
|
-
|
|
2841
|
+
core_organisation_audit_log: {
|
|
2842
2842
|
Row: {
|
|
2843
2843
|
action: string
|
|
2844
2844
|
created_at: string
|
|
@@ -2883,7 +2883,7 @@ export type Database = {
|
|
|
2883
2883
|
foreignKeyName: "organisation_audit_log_organisation_id_fkey"
|
|
2884
2884
|
columns: ["organisation_id"]
|
|
2885
2885
|
isOneToOne: false
|
|
2886
|
-
referencedRelation: "
|
|
2886
|
+
referencedRelation: "core_organisations"
|
|
2887
2887
|
referencedColumns: ["id"]
|
|
2888
2888
|
},
|
|
2889
2889
|
]
|
|
@@ -2927,7 +2927,7 @@ export type Database = {
|
|
|
2927
2927
|
foreignKeyName: "organisation_invitations_organisation_id_fkey"
|
|
2928
2928
|
columns: ["organisation_id"]
|
|
2929
2929
|
isOneToOne: false
|
|
2930
|
-
referencedRelation: "
|
|
2930
|
+
referencedRelation: "core_organisations"
|
|
2931
2931
|
referencedColumns: ["id"]
|
|
2932
2932
|
},
|
|
2933
2933
|
]
|
|
@@ -3001,12 +3001,12 @@ export type Database = {
|
|
|
3001
3001
|
foreignKeyName: "organisation_settings_organisation_id_fkey"
|
|
3002
3002
|
columns: ["organisation_id"]
|
|
3003
3003
|
isOneToOne: true
|
|
3004
|
-
referencedRelation: "
|
|
3004
|
+
referencedRelation: "core_organisations"
|
|
3005
3005
|
referencedColumns: ["id"]
|
|
3006
3006
|
},
|
|
3007
3007
|
]
|
|
3008
3008
|
}
|
|
3009
|
-
|
|
3009
|
+
core_organisations: {
|
|
3010
3010
|
Row: {
|
|
3011
3011
|
created_at: string | null
|
|
3012
3012
|
created_by: string | null
|
|
@@ -3054,12 +3054,12 @@ export type Database = {
|
|
|
3054
3054
|
foreignKeyName: "organisations_parent_id_fkey"
|
|
3055
3055
|
columns: ["parent_id"]
|
|
3056
3056
|
isOneToOne: false
|
|
3057
|
-
referencedRelation: "
|
|
3057
|
+
referencedRelation: "core_organisations"
|
|
3058
3058
|
referencedColumns: ["id"]
|
|
3059
3059
|
},
|
|
3060
3060
|
]
|
|
3061
3061
|
}
|
|
3062
|
-
|
|
3062
|
+
core_consent: {
|
|
3063
3063
|
Row: {
|
|
3064
3064
|
consent_type_id: number
|
|
3065
3065
|
created_at: string | null
|
|
@@ -3104,26 +3104,26 @@ export type Database = {
|
|
|
3104
3104
|
foreignKeyName: "consents_consent_type_id_fkey"
|
|
3105
3105
|
columns: ["consent_type_id"]
|
|
3106
3106
|
isOneToOne: false
|
|
3107
|
-
referencedRelation: "
|
|
3107
|
+
referencedRelation: "core_consent_type"
|
|
3108
3108
|
referencedColumns: ["id"]
|
|
3109
3109
|
},
|
|
3110
3110
|
{
|
|
3111
3111
|
foreignKeyName: "consents_member_id_fkey1"
|
|
3112
3112
|
columns: ["member_id"]
|
|
3113
3113
|
isOneToOne: false
|
|
3114
|
-
referencedRelation: "
|
|
3114
|
+
referencedRelation: "core_member"
|
|
3115
3115
|
referencedColumns: ["id"]
|
|
3116
3116
|
},
|
|
3117
3117
|
{
|
|
3118
3118
|
foreignKeyName: "fk_pace_consent_organisation_id"
|
|
3119
3119
|
columns: ["organisation_id"]
|
|
3120
3120
|
isOneToOne: false
|
|
3121
|
-
referencedRelation: "
|
|
3121
|
+
referencedRelation: "core_organisations"
|
|
3122
3122
|
referencedColumns: ["id"]
|
|
3123
3123
|
},
|
|
3124
3124
|
]
|
|
3125
3125
|
}
|
|
3126
|
-
|
|
3126
|
+
core_consent_type: {
|
|
3127
3127
|
Row: {
|
|
3128
3128
|
active: boolean | null
|
|
3129
3129
|
category: string | null
|
|
@@ -3162,12 +3162,12 @@ export type Database = {
|
|
|
3162
3162
|
foreignKeyName: "pace_consent_type_organisation_id_fkey"
|
|
3163
3163
|
columns: ["organisation_id"]
|
|
3164
3164
|
isOneToOne: false
|
|
3165
|
-
referencedRelation: "
|
|
3165
|
+
referencedRelation: "core_organisations"
|
|
3166
3166
|
referencedColumns: ["id"]
|
|
3167
3167
|
},
|
|
3168
3168
|
]
|
|
3169
3169
|
}
|
|
3170
|
-
|
|
3170
|
+
core_contact: {
|
|
3171
3171
|
Row: {
|
|
3172
3172
|
contact_person_id: string | null
|
|
3173
3173
|
contact_type_id: number | null
|
|
@@ -3215,33 +3215,33 @@ export type Database = {
|
|
|
3215
3215
|
foreignKeyName: "fk_pace_contact_organisation_id"
|
|
3216
3216
|
columns: ["organisation_id"]
|
|
3217
3217
|
isOneToOne: false
|
|
3218
|
-
referencedRelation: "
|
|
3218
|
+
referencedRelation: "core_organisations"
|
|
3219
3219
|
referencedColumns: ["id"]
|
|
3220
3220
|
},
|
|
3221
3221
|
{
|
|
3222
3222
|
foreignKeyName: "pace_contact_related_person_id_fkey"
|
|
3223
3223
|
columns: ["contact_person_id"]
|
|
3224
3224
|
isOneToOne: false
|
|
3225
|
-
referencedRelation: "
|
|
3225
|
+
referencedRelation: "core_person"
|
|
3226
3226
|
referencedColumns: ["id"]
|
|
3227
3227
|
},
|
|
3228
3228
|
{
|
|
3229
3229
|
foreignKeyName: "pace_contact_relationship_type_id_fkey"
|
|
3230
3230
|
columns: ["contact_type_id"]
|
|
3231
3231
|
isOneToOne: false
|
|
3232
|
-
referencedRelation: "
|
|
3232
|
+
referencedRelation: "core_contact_type"
|
|
3233
3233
|
referencedColumns: ["id"]
|
|
3234
3234
|
},
|
|
3235
3235
|
{
|
|
3236
3236
|
foreignKeyName: "pace_member_permissions_member_id_fkey"
|
|
3237
3237
|
columns: ["member_id"]
|
|
3238
3238
|
isOneToOne: false
|
|
3239
|
-
referencedRelation: "
|
|
3239
|
+
referencedRelation: "core_member"
|
|
3240
3240
|
referencedColumns: ["id"]
|
|
3241
3241
|
},
|
|
3242
3242
|
]
|
|
3243
3243
|
}
|
|
3244
|
-
|
|
3244
|
+
core_contact_type: {
|
|
3245
3245
|
Row: {
|
|
3246
3246
|
created_at: string | null
|
|
3247
3247
|
created_by: string | null
|
|
@@ -3277,12 +3277,12 @@ export type Database = {
|
|
|
3277
3277
|
foreignKeyName: "pace_contact_type_organisation_id_fkey"
|
|
3278
3278
|
columns: ["organisation_id"]
|
|
3279
3279
|
isOneToOne: false
|
|
3280
|
-
referencedRelation: "
|
|
3280
|
+
referencedRelation: "core_organisations"
|
|
3281
3281
|
referencedColumns: ["id"]
|
|
3282
3282
|
},
|
|
3283
3283
|
]
|
|
3284
3284
|
}
|
|
3285
|
-
|
|
3285
|
+
core_gender_type: {
|
|
3286
3286
|
Row: {
|
|
3287
3287
|
created_at: string | null
|
|
3288
3288
|
created_by: string | null
|
|
@@ -3315,12 +3315,12 @@ export type Database = {
|
|
|
3315
3315
|
foreignKeyName: "pace_gender_type_organisation_id_fkey"
|
|
3316
3316
|
columns: ["organisation_id"]
|
|
3317
3317
|
isOneToOne: false
|
|
3318
|
-
referencedRelation: "
|
|
3318
|
+
referencedRelation: "core_organisations"
|
|
3319
3319
|
referencedColumns: ["id"]
|
|
3320
3320
|
},
|
|
3321
3321
|
]
|
|
3322
3322
|
}
|
|
3323
|
-
|
|
3323
|
+
core_identification: {
|
|
3324
3324
|
Row: {
|
|
3325
3325
|
created_at: string | null
|
|
3326
3326
|
document_number: string | null
|
|
@@ -3371,26 +3371,26 @@ export type Database = {
|
|
|
3371
3371
|
foreignKeyName: "fk_pace_identification_organisation_id"
|
|
3372
3372
|
columns: ["organisation_id"]
|
|
3373
3373
|
isOneToOne: false
|
|
3374
|
-
referencedRelation: "
|
|
3374
|
+
referencedRelation: "core_organisations"
|
|
3375
3375
|
referencedColumns: ["id"]
|
|
3376
3376
|
},
|
|
3377
3377
|
{
|
|
3378
3378
|
foreignKeyName: "fk_pace_identification_type_id"
|
|
3379
3379
|
columns: ["identification_type_id"]
|
|
3380
3380
|
isOneToOne: false
|
|
3381
|
-
referencedRelation: "
|
|
3381
|
+
referencedRelation: "core_identification_type"
|
|
3382
3382
|
referencedColumns: ["id"]
|
|
3383
3383
|
},
|
|
3384
3384
|
{
|
|
3385
3385
|
foreignKeyName: "pace_identification_member_id_fkey"
|
|
3386
3386
|
columns: ["member_id"]
|
|
3387
3387
|
isOneToOne: false
|
|
3388
|
-
referencedRelation: "
|
|
3388
|
+
referencedRelation: "core_member"
|
|
3389
3389
|
referencedColumns: ["id"]
|
|
3390
3390
|
},
|
|
3391
3391
|
]
|
|
3392
3392
|
}
|
|
3393
|
-
|
|
3393
|
+
core_identification_type: {
|
|
3394
3394
|
Row: {
|
|
3395
3395
|
created_at: string | null
|
|
3396
3396
|
created_by: string | null
|
|
@@ -3432,12 +3432,12 @@ export type Database = {
|
|
|
3432
3432
|
foreignKeyName: "pace_identification_type_organisation_id_fkey"
|
|
3433
3433
|
columns: ["organisation_id"]
|
|
3434
3434
|
isOneToOne: false
|
|
3435
|
-
referencedRelation: "
|
|
3435
|
+
referencedRelation: "core_organisations"
|
|
3436
3436
|
referencedColumns: ["id"]
|
|
3437
3437
|
},
|
|
3438
3438
|
]
|
|
3439
3439
|
}
|
|
3440
|
-
|
|
3440
|
+
core_member: {
|
|
3441
3441
|
Row: {
|
|
3442
3442
|
address_id: string | null
|
|
3443
3443
|
created_at: string | null
|
|
@@ -3506,40 +3506,40 @@ export type Database = {
|
|
|
3506
3506
|
foreignKeyName: "pace_member_organisation_id_fkey"
|
|
3507
3507
|
columns: ["organisation_id"]
|
|
3508
3508
|
isOneToOne: false
|
|
3509
|
-
referencedRelation: "
|
|
3509
|
+
referencedRelation: "core_organisations"
|
|
3510
3510
|
referencedColumns: ["id"]
|
|
3511
3511
|
},
|
|
3512
3512
|
{
|
|
3513
3513
|
foreignKeyName: "pace_member_person_id_fkey"
|
|
3514
3514
|
columns: ["person_id"]
|
|
3515
3515
|
isOneToOne: true
|
|
3516
|
-
referencedRelation: "
|
|
3516
|
+
referencedRelation: "core_person"
|
|
3517
3517
|
referencedColumns: ["id"]
|
|
3518
3518
|
},
|
|
3519
3519
|
{
|
|
3520
3520
|
foreignKeyName: "pace_members_gender_id_fkey"
|
|
3521
3521
|
columns: ["gender_id"]
|
|
3522
3522
|
isOneToOne: false
|
|
3523
|
-
referencedRelation: "
|
|
3523
|
+
referencedRelation: "core_gender_type"
|
|
3524
3524
|
referencedColumns: ["id"]
|
|
3525
3525
|
},
|
|
3526
3526
|
{
|
|
3527
3527
|
foreignKeyName: "pace_members_membership_type_id_fkey"
|
|
3528
3528
|
columns: ["membership_type_id"]
|
|
3529
3529
|
isOneToOne: false
|
|
3530
|
-
referencedRelation: "
|
|
3530
|
+
referencedRelation: "core_membership_type"
|
|
3531
3531
|
referencedColumns: ["id"]
|
|
3532
3532
|
},
|
|
3533
3533
|
{
|
|
3534
3534
|
foreignKeyName: "pace_members_pronoun_id_fkey"
|
|
3535
3535
|
columns: ["pronoun_id"]
|
|
3536
3536
|
isOneToOne: false
|
|
3537
|
-
referencedRelation: "
|
|
3537
|
+
referencedRelation: "core_pronoun_type"
|
|
3538
3538
|
referencedColumns: ["id"]
|
|
3539
3539
|
},
|
|
3540
3540
|
]
|
|
3541
3541
|
}
|
|
3542
|
-
|
|
3542
|
+
core_member_role: {
|
|
3543
3543
|
Row: {
|
|
3544
3544
|
created_at: string | null
|
|
3545
3545
|
created_by: string | null
|
|
@@ -3587,21 +3587,21 @@ export type Database = {
|
|
|
3587
3587
|
foreignKeyName: "pace_member_role_organisation_id_fkey"
|
|
3588
3588
|
columns: ["organisation_id"]
|
|
3589
3589
|
isOneToOne: false
|
|
3590
|
-
referencedRelation: "
|
|
3590
|
+
referencedRelation: "core_organisations"
|
|
3591
3591
|
referencedColumns: ["id"]
|
|
3592
3592
|
},
|
|
3593
3593
|
{
|
|
3594
3594
|
foreignKeyName: "pace_member_roles_member_id_fkey"
|
|
3595
3595
|
columns: ["member_id"]
|
|
3596
3596
|
isOneToOne: false
|
|
3597
|
-
referencedRelation: "
|
|
3597
|
+
referencedRelation: "core_member"
|
|
3598
3598
|
referencedColumns: ["id"]
|
|
3599
3599
|
},
|
|
3600
3600
|
{
|
|
3601
3601
|
foreignKeyName: "pace_member_roles_role_id_fkey"
|
|
3602
3602
|
columns: ["role_id"]
|
|
3603
3603
|
isOneToOne: false
|
|
3604
|
-
referencedRelation: "
|
|
3604
|
+
referencedRelation: "core_role_type"
|
|
3605
3605
|
referencedColumns: ["id"]
|
|
3606
3606
|
},
|
|
3607
3607
|
{
|
|
@@ -3613,7 +3613,7 @@ export type Database = {
|
|
|
3613
3613
|
},
|
|
3614
3614
|
]
|
|
3615
3615
|
}
|
|
3616
|
-
|
|
3616
|
+
core_membership_type: {
|
|
3617
3617
|
Row: {
|
|
3618
3618
|
created_at: string | null
|
|
3619
3619
|
created_by: string | null
|
|
@@ -3655,12 +3655,12 @@ export type Database = {
|
|
|
3655
3655
|
foreignKeyName: "pace_membership_type_organisation_id_fkey"
|
|
3656
3656
|
columns: ["organisation_id"]
|
|
3657
3657
|
isOneToOne: false
|
|
3658
|
-
referencedRelation: "
|
|
3658
|
+
referencedRelation: "core_organisations"
|
|
3659
3659
|
referencedColumns: ["id"]
|
|
3660
3660
|
},
|
|
3661
3661
|
]
|
|
3662
3662
|
}
|
|
3663
|
-
|
|
3663
|
+
core_merchandise: {
|
|
3664
3664
|
Row: {
|
|
3665
3665
|
category: string | null
|
|
3666
3666
|
color: string | null
|
|
@@ -3711,26 +3711,26 @@ export type Database = {
|
|
|
3711
3711
|
foreignKeyName: "pace_merchandise_event_id_fkey"
|
|
3712
3712
|
columns: ["event_id"]
|
|
3713
3713
|
isOneToOne: false
|
|
3714
|
-
referencedRelation: "
|
|
3714
|
+
referencedRelation: "core_events"
|
|
3715
3715
|
referencedColumns: ["event_id"]
|
|
3716
3716
|
},
|
|
3717
3717
|
{
|
|
3718
3718
|
foreignKeyName: "pace_merchandise_organisation_id_fkey"
|
|
3719
3719
|
columns: ["organisation_id"]
|
|
3720
3720
|
isOneToOne: false
|
|
3721
|
-
referencedRelation: "
|
|
3721
|
+
referencedRelation: "core_organisations"
|
|
3722
3722
|
referencedColumns: ["id"]
|
|
3723
3723
|
},
|
|
3724
3724
|
{
|
|
3725
3725
|
foreignKeyName: "pace_merchandise_person_id_fkey"
|
|
3726
3726
|
columns: ["person_id"]
|
|
3727
3727
|
isOneToOne: false
|
|
3728
|
-
referencedRelation: "
|
|
3728
|
+
referencedRelation: "core_person"
|
|
3729
3729
|
referencedColumns: ["id"]
|
|
3730
3730
|
},
|
|
3731
3731
|
]
|
|
3732
3732
|
}
|
|
3733
|
-
|
|
3733
|
+
core_person: {
|
|
3734
3734
|
Row: {
|
|
3735
3735
|
created_at: string | null
|
|
3736
3736
|
created_by: string | null
|
|
@@ -3775,7 +3775,7 @@ export type Database = {
|
|
|
3775
3775
|
}
|
|
3776
3776
|
Relationships: []
|
|
3777
3777
|
}
|
|
3778
|
-
|
|
3778
|
+
core_phone: {
|
|
3779
3779
|
Row: {
|
|
3780
3780
|
created_at: string | null
|
|
3781
3781
|
created_by: string | null
|
|
@@ -3817,26 +3817,26 @@ export type Database = {
|
|
|
3817
3817
|
foreignKeyName: "fk_pace_phone_organisation_id"
|
|
3818
3818
|
columns: ["organisation_id"]
|
|
3819
3819
|
isOneToOne: false
|
|
3820
|
-
referencedRelation: "
|
|
3820
|
+
referencedRelation: "core_organisations"
|
|
3821
3821
|
referencedColumns: ["id"]
|
|
3822
3822
|
},
|
|
3823
3823
|
{
|
|
3824
3824
|
foreignKeyName: "team_phones_contact_id_fkey"
|
|
3825
3825
|
columns: ["person_id"]
|
|
3826
3826
|
isOneToOne: false
|
|
3827
|
-
referencedRelation: "
|
|
3827
|
+
referencedRelation: "core_person"
|
|
3828
3828
|
referencedColumns: ["id"]
|
|
3829
3829
|
},
|
|
3830
3830
|
{
|
|
3831
3831
|
foreignKeyName: "team_phones_phone_type_id_fkey"
|
|
3832
3832
|
columns: ["phone_type_id"]
|
|
3833
3833
|
isOneToOne: false
|
|
3834
|
-
referencedRelation: "
|
|
3834
|
+
referencedRelation: "core_phone_type"
|
|
3835
3835
|
referencedColumns: ["id"]
|
|
3836
3836
|
},
|
|
3837
3837
|
]
|
|
3838
3838
|
}
|
|
3839
|
-
|
|
3839
|
+
core_phone_type: {
|
|
3840
3840
|
Row: {
|
|
3841
3841
|
created_at: string | null
|
|
3842
3842
|
created_by: string | null
|
|
@@ -3869,12 +3869,12 @@ export type Database = {
|
|
|
3869
3869
|
foreignKeyName: "pace_phone_type_organisation_id_fkey"
|
|
3870
3870
|
columns: ["organisation_id"]
|
|
3871
3871
|
isOneToOne: false
|
|
3872
|
-
referencedRelation: "
|
|
3872
|
+
referencedRelation: "core_organisations"
|
|
3873
3873
|
referencedColumns: ["id"]
|
|
3874
3874
|
},
|
|
3875
3875
|
]
|
|
3876
3876
|
}
|
|
3877
|
-
|
|
3877
|
+
core_pronoun_type: {
|
|
3878
3878
|
Row: {
|
|
3879
3879
|
created_at: string | null
|
|
3880
3880
|
created_by: string | null
|
|
@@ -3907,12 +3907,12 @@ export type Database = {
|
|
|
3907
3907
|
foreignKeyName: "pace_pronoun_type_organisation_id_fkey"
|
|
3908
3908
|
columns: ["organisation_id"]
|
|
3909
3909
|
isOneToOne: false
|
|
3910
|
-
referencedRelation: "
|
|
3910
|
+
referencedRelation: "core_organisations"
|
|
3911
3911
|
referencedColumns: ["id"]
|
|
3912
3912
|
},
|
|
3913
3913
|
]
|
|
3914
3914
|
}
|
|
3915
|
-
|
|
3915
|
+
core_qualification: {
|
|
3916
3916
|
Row: {
|
|
3917
3917
|
created_at: string | null
|
|
3918
3918
|
credential_id: string | null
|
|
@@ -3957,19 +3957,19 @@ export type Database = {
|
|
|
3957
3957
|
foreignKeyName: "fk_pace_qualification_organisation_id"
|
|
3958
3958
|
columns: ["organisation_id"]
|
|
3959
3959
|
isOneToOne: false
|
|
3960
|
-
referencedRelation: "
|
|
3960
|
+
referencedRelation: "core_organisations"
|
|
3961
3961
|
referencedColumns: ["id"]
|
|
3962
3962
|
},
|
|
3963
3963
|
{
|
|
3964
3964
|
foreignKeyName: "pace_qualification_member_id_fkey"
|
|
3965
3965
|
columns: ["member_id"]
|
|
3966
3966
|
isOneToOne: false
|
|
3967
|
-
referencedRelation: "
|
|
3967
|
+
referencedRelation: "core_member"
|
|
3968
3968
|
referencedColumns: ["id"]
|
|
3969
3969
|
},
|
|
3970
3970
|
]
|
|
3971
3971
|
}
|
|
3972
|
-
|
|
3972
|
+
core_role_type: {
|
|
3973
3973
|
Row: {
|
|
3974
3974
|
created_at: string | null
|
|
3975
3975
|
created_by: string | null
|
|
@@ -4002,7 +4002,7 @@ export type Database = {
|
|
|
4002
4002
|
foreignKeyName: "pace_role_type_organisation_id_fkey"
|
|
4003
4003
|
columns: ["organisation_id"]
|
|
4004
4004
|
isOneToOne: false
|
|
4005
|
-
referencedRelation: "
|
|
4005
|
+
referencedRelation: "core_organisations"
|
|
4006
4006
|
referencedColumns: ["id"]
|
|
4007
4007
|
},
|
|
4008
4008
|
]
|
|
@@ -4317,7 +4317,7 @@ export type Database = {
|
|
|
4317
4317
|
foreignKeyName: "rbac_apps_organisation_id_fkey"
|
|
4318
4318
|
columns: ["organisation_id"]
|
|
4319
4319
|
isOneToOne: false
|
|
4320
|
-
referencedRelation: "
|
|
4320
|
+
referencedRelation: "core_organisations"
|
|
4321
4321
|
referencedColumns: ["id"]
|
|
4322
4322
|
},
|
|
4323
4323
|
]
|
|
@@ -4376,7 +4376,7 @@ export type Database = {
|
|
|
4376
4376
|
foreignKeyName: "rbac_audit_events_organisation_id_fkey"
|
|
4377
4377
|
columns: ["organisation_id"]
|
|
4378
4378
|
isOneToOne: false
|
|
4379
|
-
referencedRelation: "
|
|
4379
|
+
referencedRelation: "core_organisations"
|
|
4380
4380
|
referencedColumns: ["id"]
|
|
4381
4381
|
},
|
|
4382
4382
|
]
|
|
@@ -4414,7 +4414,7 @@ export type Database = {
|
|
|
4414
4414
|
foreignKeyName: "rbac_auth_attempts_organisation_id_fkey"
|
|
4415
4415
|
columns: ["organisation_id"]
|
|
4416
4416
|
isOneToOne: false
|
|
4417
|
-
referencedRelation: "
|
|
4417
|
+
referencedRelation: "core_organisations"
|
|
4418
4418
|
referencedColumns: ["id"]
|
|
4419
4419
|
},
|
|
4420
4420
|
]
|
|
@@ -4471,14 +4471,14 @@ export type Database = {
|
|
|
4471
4471
|
foreignKeyName: "rbac_event_app_roles_event_id_fkey"
|
|
4472
4472
|
columns: ["event_id"]
|
|
4473
4473
|
isOneToOne: false
|
|
4474
|
-
referencedRelation: "
|
|
4474
|
+
referencedRelation: "core_events"
|
|
4475
4475
|
referencedColumns: ["event_id"]
|
|
4476
4476
|
},
|
|
4477
4477
|
{
|
|
4478
4478
|
foreignKeyName: "rbac_event_app_roles_organisation_id_fkey"
|
|
4479
4479
|
columns: ["organisation_id"]
|
|
4480
4480
|
isOneToOne: false
|
|
4481
|
-
referencedRelation: "
|
|
4481
|
+
referencedRelation: "core_organisations"
|
|
4482
4482
|
referencedColumns: ["id"]
|
|
4483
4483
|
},
|
|
4484
4484
|
]
|
|
@@ -4543,7 +4543,7 @@ export type Database = {
|
|
|
4543
4543
|
foreignKeyName: "rbac_global_roles_organisation_id_fkey"
|
|
4544
4544
|
columns: ["organisation_id"]
|
|
4545
4545
|
isOneToOne: false
|
|
4546
|
-
referencedRelation: "
|
|
4546
|
+
referencedRelation: "core_organisations"
|
|
4547
4547
|
referencedColumns: ["id"]
|
|
4548
4548
|
},
|
|
4549
4549
|
]
|
|
@@ -4602,7 +4602,7 @@ export type Database = {
|
|
|
4602
4602
|
foreignKeyName: "rbac_organisation_roles_new_organisation_id_fkey"
|
|
4603
4603
|
columns: ["organisation_id"]
|
|
4604
4604
|
isOneToOne: false
|
|
4605
|
-
referencedRelation: "
|
|
4605
|
+
referencedRelation: "core_organisations"
|
|
4606
4606
|
referencedColumns: ["id"]
|
|
4607
4607
|
},
|
|
4608
4608
|
{
|
|
@@ -4678,7 +4678,7 @@ export type Database = {
|
|
|
4678
4678
|
foreignKeyName: "rbac_page_permissions_organisation_id_fkey"
|
|
4679
4679
|
columns: ["organisation_id"]
|
|
4680
4680
|
isOneToOne: false
|
|
4681
|
-
referencedRelation: "
|
|
4681
|
+
referencedRelation: "core_organisations"
|
|
4682
4682
|
referencedColumns: ["id"]
|
|
4683
4683
|
},
|
|
4684
4684
|
]
|
|
@@ -4812,7 +4812,7 @@ export type Database = {
|
|
|
4812
4812
|
foreignKeyName: "fk_user_login_history_event"
|
|
4813
4813
|
columns: ["event_id"]
|
|
4814
4814
|
isOneToOne: false
|
|
4815
|
-
referencedRelation: "
|
|
4815
|
+
referencedRelation: "core_events"
|
|
4816
4816
|
referencedColumns: ["event_id"]
|
|
4817
4817
|
},
|
|
4818
4818
|
{
|
|
@@ -4847,14 +4847,14 @@ export type Database = {
|
|
|
4847
4847
|
foreignKeyName: "rbac_user_login_history_organisation_id_fkey"
|
|
4848
4848
|
columns: ["organisation_id"]
|
|
4849
4849
|
isOneToOne: false
|
|
4850
|
-
referencedRelation: "
|
|
4850
|
+
referencedRelation: "core_organisations"
|
|
4851
4851
|
referencedColumns: ["id"]
|
|
4852
4852
|
},
|
|
4853
4853
|
{
|
|
4854
4854
|
foreignKeyName: "user_login_history_event_id_fkey"
|
|
4855
4855
|
columns: ["event_id"]
|
|
4856
4856
|
isOneToOne: false
|
|
4857
|
-
referencedRelation: "
|
|
4857
|
+
referencedRelation: "core_events"
|
|
4858
4858
|
referencedColumns: ["event_id"]
|
|
4859
4859
|
},
|
|
4860
4860
|
]
|
|
@@ -4889,7 +4889,7 @@ export type Database = {
|
|
|
4889
4889
|
foreignKeyName: "rbac_user_profiles_organisation_id_fkey"
|
|
4890
4890
|
columns: ["organisation_id"]
|
|
4891
4891
|
isOneToOne: false
|
|
4892
|
-
referencedRelation: "
|
|
4892
|
+
referencedRelation: "core_organisations"
|
|
4893
4893
|
referencedColumns: ["id"]
|
|
4894
4894
|
},
|
|
4895
4895
|
]
|
|
@@ -4952,14 +4952,14 @@ export type Database = {
|
|
|
4952
4952
|
foreignKeyName: "rbac_user_sessions_event_id_fkey"
|
|
4953
4953
|
columns: ["event_id"]
|
|
4954
4954
|
isOneToOne: false
|
|
4955
|
-
referencedRelation: "
|
|
4955
|
+
referencedRelation: "core_events"
|
|
4956
4956
|
referencedColumns: ["event_id"]
|
|
4957
4957
|
},
|
|
4958
4958
|
{
|
|
4959
4959
|
foreignKeyName: "rbac_user_sessions_organisation_id_fkey"
|
|
4960
4960
|
columns: ["organisation_id"]
|
|
4961
4961
|
isOneToOne: false
|
|
4962
|
-
referencedRelation: "
|
|
4962
|
+
referencedRelation: "core_organisations"
|
|
4963
4963
|
referencedColumns: ["id"]
|
|
4964
4964
|
},
|
|
4965
4965
|
]
|
|
@@ -5006,14 +5006,14 @@ export type Database = {
|
|
|
5006
5006
|
foreignKeyName: "internal_notes_member_id_fkey"
|
|
5007
5007
|
columns: ["member_id"]
|
|
5008
5008
|
isOneToOne: false
|
|
5009
|
-
referencedRelation: "
|
|
5009
|
+
referencedRelation: "core_member"
|
|
5010
5010
|
referencedColumns: ["id"]
|
|
5011
5011
|
},
|
|
5012
5012
|
{
|
|
5013
5013
|
foreignKeyName: "team_internal_notes_organisation_id_fkey"
|
|
5014
5014
|
columns: ["organisation_id"]
|
|
5015
5015
|
isOneToOne: false
|
|
5016
|
-
referencedRelation: "
|
|
5016
|
+
referencedRelation: "core_organisations"
|
|
5017
5017
|
referencedColumns: ["id"]
|
|
5018
5018
|
},
|
|
5019
5019
|
]
|
|
@@ -5067,7 +5067,7 @@ export type Database = {
|
|
|
5067
5067
|
foreignKeyName: "team_unit_organisation_id_fkey"
|
|
5068
5068
|
columns: ["organisation_id"]
|
|
5069
5069
|
isOneToOne: false
|
|
5070
|
-
referencedRelation: "
|
|
5070
|
+
referencedRelation: "core_organisations"
|
|
5071
5071
|
referencedColumns: ["id"]
|
|
5072
5072
|
},
|
|
5073
5073
|
]
|
|
@@ -5147,14 +5147,14 @@ export type Database = {
|
|
|
5147
5147
|
foreignKeyName: "fk_trac_accommodation_event_id"
|
|
5148
5148
|
columns: ["event_id"]
|
|
5149
5149
|
isOneToOne: false
|
|
5150
|
-
referencedRelation: "
|
|
5150
|
+
referencedRelation: "core_events"
|
|
5151
5151
|
referencedColumns: ["event_id"]
|
|
5152
5152
|
},
|
|
5153
5153
|
{
|
|
5154
5154
|
foreignKeyName: "trac_accommodation_organisation_id_fkey"
|
|
5155
5155
|
columns: ["organisation_id"]
|
|
5156
5156
|
isOneToOne: false
|
|
5157
|
-
referencedRelation: "
|
|
5157
|
+
referencedRelation: "core_organisations"
|
|
5158
5158
|
referencedColumns: ["id"]
|
|
5159
5159
|
},
|
|
5160
5160
|
]
|
|
@@ -5249,21 +5249,21 @@ export type Database = {
|
|
|
5249
5249
|
foreignKeyName: "fk_trac_activity_event_id"
|
|
5250
5250
|
columns: ["event_id"]
|
|
5251
5251
|
isOneToOne: false
|
|
5252
|
-
referencedRelation: "
|
|
5252
|
+
referencedRelation: "core_events"
|
|
5253
5253
|
referencedColumns: ["event_id"]
|
|
5254
5254
|
},
|
|
5255
5255
|
{
|
|
5256
5256
|
foreignKeyName: "trac_activity_event_id_fkey"
|
|
5257
5257
|
columns: ["event_id"]
|
|
5258
5258
|
isOneToOne: false
|
|
5259
|
-
referencedRelation: "
|
|
5259
|
+
referencedRelation: "core_events"
|
|
5260
5260
|
referencedColumns: ["event_id"]
|
|
5261
5261
|
},
|
|
5262
5262
|
{
|
|
5263
5263
|
foreignKeyName: "trac_activity_organisation_id_fkey"
|
|
5264
5264
|
columns: ["organisation_id"]
|
|
5265
5265
|
isOneToOne: false
|
|
5266
|
-
referencedRelation: "
|
|
5266
|
+
referencedRelation: "core_organisations"
|
|
5267
5267
|
referencedColumns: ["id"]
|
|
5268
5268
|
},
|
|
5269
5269
|
]
|
|
@@ -5307,7 +5307,7 @@ export type Database = {
|
|
|
5307
5307
|
foreignKeyName: "trac_attachments_organisation_id_fkey"
|
|
5308
5308
|
columns: ["organisation_id"]
|
|
5309
5309
|
isOneToOne: false
|
|
5310
|
-
referencedRelation: "
|
|
5310
|
+
referencedRelation: "core_organisations"
|
|
5311
5311
|
referencedColumns: ["id"]
|
|
5312
5312
|
},
|
|
5313
5313
|
]
|
|
@@ -5360,14 +5360,14 @@ export type Database = {
|
|
|
5360
5360
|
foreignKeyName: "fk_trac_contacts_event_id"
|
|
5361
5361
|
columns: ["event_id"]
|
|
5362
5362
|
isOneToOne: false
|
|
5363
|
-
referencedRelation: "
|
|
5363
|
+
referencedRelation: "core_events"
|
|
5364
5364
|
referencedColumns: ["event_id"]
|
|
5365
5365
|
},
|
|
5366
5366
|
{
|
|
5367
5367
|
foreignKeyName: "trac_contacts_organisation_id_fkey"
|
|
5368
5368
|
columns: ["organisation_id"]
|
|
5369
5369
|
isOneToOne: false
|
|
5370
|
-
referencedRelation: "
|
|
5370
|
+
referencedRelation: "core_organisations"
|
|
5371
5371
|
referencedColumns: ["id"]
|
|
5372
5372
|
},
|
|
5373
5373
|
]
|
|
@@ -5411,21 +5411,21 @@ export type Database = {
|
|
|
5411
5411
|
foreignKeyName: "fk_trac_currency_rates_event_id"
|
|
5412
5412
|
columns: ["event_id"]
|
|
5413
5413
|
isOneToOne: false
|
|
5414
|
-
referencedRelation: "
|
|
5414
|
+
referencedRelation: "core_events"
|
|
5415
5415
|
referencedColumns: ["event_id"]
|
|
5416
5416
|
},
|
|
5417
5417
|
{
|
|
5418
5418
|
foreignKeyName: "trac_currency_rates_event_id_fkey"
|
|
5419
5419
|
columns: ["event_id"]
|
|
5420
5420
|
isOneToOne: false
|
|
5421
|
-
referencedRelation: "
|
|
5421
|
+
referencedRelation: "core_events"
|
|
5422
5422
|
referencedColumns: ["event_id"]
|
|
5423
5423
|
},
|
|
5424
5424
|
{
|
|
5425
5425
|
foreignKeyName: "trac_currency_rates_organisation_id_fkey"
|
|
5426
5426
|
columns: ["organisation_id"]
|
|
5427
5427
|
isOneToOne: false
|
|
5428
|
-
referencedRelation: "
|
|
5428
|
+
referencedRelation: "core_organisations"
|
|
5429
5429
|
referencedColumns: ["id"]
|
|
5430
5430
|
},
|
|
5431
5431
|
]
|
|
@@ -5505,7 +5505,7 @@ export type Database = {
|
|
|
5505
5505
|
foreignKeyName: "trac_journal_images_organisation_id_fkey"
|
|
5506
5506
|
columns: ["organisation_id"]
|
|
5507
5507
|
isOneToOne: false
|
|
5508
|
-
referencedRelation: "
|
|
5508
|
+
referencedRelation: "core_organisations"
|
|
5509
5509
|
referencedColumns: ["id"]
|
|
5510
5510
|
},
|
|
5511
5511
|
{
|
|
@@ -5580,7 +5580,7 @@ export type Database = {
|
|
|
5580
5580
|
foreignKeyName: "fk_trac_journal_posts_event_id"
|
|
5581
5581
|
columns: ["event_id"]
|
|
5582
5582
|
isOneToOne: false
|
|
5583
|
-
referencedRelation: "
|
|
5583
|
+
referencedRelation: "core_events"
|
|
5584
5584
|
referencedColumns: ["event_id"]
|
|
5585
5585
|
},
|
|
5586
5586
|
{
|
|
@@ -5608,7 +5608,7 @@ export type Database = {
|
|
|
5608
5608
|
foreignKeyName: "trac_journal_posts_organisation_id_fkey"
|
|
5609
5609
|
columns: ["organisation_id"]
|
|
5610
5610
|
isOneToOne: false
|
|
5611
|
-
referencedRelation: "
|
|
5611
|
+
referencedRelation: "core_organisations"
|
|
5612
5612
|
referencedColumns: ["id"]
|
|
5613
5613
|
},
|
|
5614
5614
|
]
|
|
@@ -5655,7 +5655,7 @@ export type Database = {
|
|
|
5655
5655
|
foreignKeyName: "trac_location_cache_organisation_id_fkey"
|
|
5656
5656
|
columns: ["organisation_id"]
|
|
5657
5657
|
isOneToOne: false
|
|
5658
|
-
referencedRelation: "
|
|
5658
|
+
referencedRelation: "core_organisations"
|
|
5659
5659
|
referencedColumns: ["id"]
|
|
5660
5660
|
},
|
|
5661
5661
|
]
|
|
@@ -5735,14 +5735,14 @@ export type Database = {
|
|
|
5735
5735
|
foreignKeyName: "fk_trac_risks_event_id"
|
|
5736
5736
|
columns: ["event_id"]
|
|
5737
5737
|
isOneToOne: false
|
|
5738
|
-
referencedRelation: "
|
|
5738
|
+
referencedRelation: "core_events"
|
|
5739
5739
|
referencedColumns: ["event_id"]
|
|
5740
5740
|
},
|
|
5741
5741
|
{
|
|
5742
5742
|
foreignKeyName: "trac_risks_organisation_id_fkey"
|
|
5743
5743
|
columns: ["organisation_id"]
|
|
5744
5744
|
isOneToOne: false
|
|
5745
|
-
referencedRelation: "
|
|
5745
|
+
referencedRelation: "core_organisations"
|
|
5746
5746
|
referencedColumns: ["id"]
|
|
5747
5747
|
},
|
|
5748
5748
|
{
|
|
@@ -5847,21 +5847,21 @@ export type Database = {
|
|
|
5847
5847
|
foreignKeyName: "fk_trac_transport_event_id"
|
|
5848
5848
|
columns: ["event_id"]
|
|
5849
5849
|
isOneToOne: false
|
|
5850
|
-
referencedRelation: "
|
|
5850
|
+
referencedRelation: "core_events"
|
|
5851
5851
|
referencedColumns: ["event_id"]
|
|
5852
5852
|
},
|
|
5853
5853
|
{
|
|
5854
5854
|
foreignKeyName: "trac_transport_event_id_fkey"
|
|
5855
5855
|
columns: ["event_id"]
|
|
5856
5856
|
isOneToOne: false
|
|
5857
|
-
referencedRelation: "
|
|
5857
|
+
referencedRelation: "core_events"
|
|
5858
5858
|
referencedColumns: ["event_id"]
|
|
5859
5859
|
},
|
|
5860
5860
|
{
|
|
5861
5861
|
foreignKeyName: "trac_transport_organisation_id_fkey"
|
|
5862
5862
|
columns: ["organisation_id"]
|
|
5863
5863
|
isOneToOne: false
|
|
5864
|
-
referencedRelation: "
|
|
5864
|
+
referencedRelation: "core_organisations"
|
|
5865
5865
|
referencedColumns: ["id"]
|
|
5866
5866
|
},
|
|
5867
5867
|
]
|
|
@@ -5878,7 +5878,7 @@ export type Database = {
|
|
|
5878
5878
|
}
|
|
5879
5879
|
Relationships: []
|
|
5880
5880
|
}
|
|
5881
|
-
|
|
5881
|
+
core_organisation_memberships: {
|
|
5882
5882
|
Row: {
|
|
5883
5883
|
created_at: string | null
|
|
5884
5884
|
created_by: string | null
|
|
@@ -5920,7 +5920,7 @@ export type Database = {
|
|
|
5920
5920
|
foreignKeyName: "rbac_organisation_roles_new_organisation_id_fkey"
|
|
5921
5921
|
columns: ["organisation_id"]
|
|
5922
5922
|
isOneToOne: false
|
|
5923
|
-
referencedRelation: "
|
|
5923
|
+
referencedRelation: "core_organisations"
|
|
5924
5924
|
referencedColumns: ["id"]
|
|
5925
5925
|
},
|
|
5926
5926
|
{
|
|
@@ -5946,7 +5946,7 @@ export type Database = {
|
|
|
5946
5946
|
},
|
|
5947
5947
|
]
|
|
5948
5948
|
}
|
|
5949
|
-
|
|
5949
|
+
core_field_list: {
|
|
5950
5950
|
Row: {
|
|
5951
5951
|
field_name: unknown
|
|
5952
5952
|
field_type: string | null
|
|
@@ -6005,14 +6005,14 @@ export type Database = {
|
|
|
6005
6005
|
foreignKeyName: "rbac_event_app_roles_event_id_fkey"
|
|
6006
6006
|
columns: ["event_id"]
|
|
6007
6007
|
isOneToOne: false
|
|
6008
|
-
referencedRelation: "
|
|
6008
|
+
referencedRelation: "core_events"
|
|
6009
6009
|
referencedColumns: ["event_id"]
|
|
6010
6010
|
},
|
|
6011
6011
|
{
|
|
6012
6012
|
foreignKeyName: "rbac_event_app_roles_organisation_id_fkey"
|
|
6013
6013
|
columns: ["organisation_id"]
|
|
6014
6014
|
isOneToOne: false
|
|
6015
|
-
referencedRelation: "
|
|
6015
|
+
referencedRelation: "core_organisations"
|
|
6016
6016
|
referencedColumns: ["id"]
|
|
6017
6017
|
},
|
|
6018
6018
|
]
|
|
@@ -6071,43 +6071,7 @@ export type Database = {
|
|
|
6071
6071
|
foreignKeyName: "rbac_organisation_roles_new_organisation_id_fkey"
|
|
6072
6072
|
columns: ["organisation_id"]
|
|
6073
6073
|
isOneToOne: false
|
|
6074
|
-
referencedRelation: "
|
|
6075
|
-
referencedColumns: ["id"]
|
|
6076
|
-
},
|
|
6077
|
-
{
|
|
6078
|
-
foreignKeyName: "rbac_organisation_roles_user_profiles_fkey"
|
|
6079
|
-
columns: ["user_id"]
|
|
6080
|
-
isOneToOne: false
|
|
6081
|
-
referencedRelation: "rbac_user_profiles"
|
|
6082
|
-
referencedColumns: ["id"]
|
|
6083
|
-
},
|
|
6084
|
-
{
|
|
6085
|
-
foreignKeyName: "rbac_organisation_roles_user_profiles_fkey"
|
|
6086
|
-
columns: ["user_id"]
|
|
6087
|
-
isOneToOne: false
|
|
6088
|
-
referencedRelation: "user_profiles"
|
|
6089
|
-
referencedColumns: ["id"]
|
|
6090
|
-
},
|
|
6091
|
-
{
|
|
6092
|
-
foreignKeyName: "rbac_organisation_roles_user_profiles_fkey"
|
|
6093
|
-
columns: ["user_id"]
|
|
6094
|
-
isOneToOne: false
|
|
6095
|
-
referencedRelation: "user_profiles"
|
|
6096
|
-
referencedColumns: ["user_id"]
|
|
6097
|
-
},
|
|
6098
|
-
]
|
|
6099
|
-
}
|
|
6100
|
-
user_organisation_memberships: {
|
|
6101
|
-
Row: {
|
|
6102
|
-
organisation_id: string | null
|
|
6103
|
-
user_id: string | null
|
|
6104
|
-
}
|
|
6105
|
-
Relationships: [
|
|
6106
|
-
{
|
|
6107
|
-
foreignKeyName: "rbac_organisation_roles_new_organisation_id_fkey"
|
|
6108
|
-
columns: ["organisation_id"]
|
|
6109
|
-
isOneToOne: false
|
|
6110
|
-
referencedRelation: "organisations"
|
|
6074
|
+
referencedRelation: "core_organisations"
|
|
6111
6075
|
referencedColumns: ["id"]
|
|
6112
6076
|
},
|
|
6113
6077
|
{
|
|
@@ -6133,6 +6097,7 @@ export type Database = {
|
|
|
6133
6097
|
},
|
|
6134
6098
|
]
|
|
6135
6099
|
}
|
|
6100
|
+
// user_organisation_memberships: Merged into core_organisation_memberships (removed)
|
|
6136
6101
|
user_profiles: {
|
|
6137
6102
|
Row: {
|
|
6138
6103
|
avatar_url: string | null
|