@open-mercato/core 0.6.4-develop.4210.1.d412061cfe → 0.6.4-develop.4236.1.9fa6806b34
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/.turbo/turbo-build.log +2 -2
- package/dist/generated/entities/staff_time_entry/index.js +37 -0
- package/dist/generated/entities/staff_time_entry/index.js.map +7 -0
- package/dist/generated/entities/staff_time_entry_segment/index.js +23 -0
- package/dist/generated/entities/staff_time_entry_segment/index.js.map +7 -0
- package/dist/generated/entities/staff_time_project/index.js +35 -0
- package/dist/generated/entities/staff_time_project/index.js.map +7 -0
- package/dist/generated/entities/staff_time_project_member/index.js +29 -0
- package/dist/generated/entities/staff_time_project_member/index.js.map +7 -0
- package/dist/generated/entities.ids.generated.js +5 -1
- package/dist/generated/entities.ids.generated.js.map +2 -2
- package/dist/generated/entity-fields-registry.js +64 -0
- package/dist/generated/entity-fields-registry.js.map +2 -2
- package/dist/helpers/integration/timesheetFixtures.js +50 -0
- package/dist/helpers/integration/timesheetFixtures.js.map +7 -0
- package/dist/modules/attachments/api/library/[id]/route.js +20 -16
- package/dist/modules/attachments/api/library/[id]/route.js.map +2 -2
- package/dist/modules/attachments/api/route.js +18 -14
- package/dist/modules/attachments/api/route.js.map +2 -2
- package/dist/modules/auth/api/roles/acl/route.js +10 -4
- package/dist/modules/auth/api/roles/acl/route.js.map +2 -2
- package/dist/modules/auth/api/sidebar/preferences/route.js +27 -20
- package/dist/modules/auth/api/sidebar/preferences/route.js.map +2 -2
- package/dist/modules/auth/api/users/acl/route.js +16 -11
- package/dist/modules/auth/api/users/acl/route.js.map +2 -2
- package/dist/modules/auth/commands/users.js +87 -71
- package/dist/modules/auth/commands/users.js.map +2 -2
- package/dist/modules/auth/services/sidebarPreferencesService.js +39 -30
- package/dist/modules/auth/services/sidebarPreferencesService.js.map +2 -2
- package/dist/modules/catalog/commands/categories.js +61 -12
- package/dist/modules/catalog/commands/categories.js.map +2 -2
- package/dist/modules/catalog/commands/products.js +79 -54
- package/dist/modules/catalog/commands/products.js.map +2 -2
- package/dist/modules/catalog/commands/variants.js +29 -16
- package/dist/modules/catalog/commands/variants.js.map +2 -2
- package/dist/modules/currencies/commands/currencies.js +15 -8
- package/dist/modules/currencies/commands/currencies.js.map +2 -2
- package/dist/modules/customer_accounts/api/admin/users.js +27 -26
- package/dist/modules/customer_accounts/api/admin/users.js.map +2 -2
- package/dist/modules/customer_accounts/api/password/reset-confirm.js +5 -5
- package/dist/modules/customer_accounts/api/password/reset-confirm.js.map +2 -2
- package/dist/modules/customer_accounts/api/portal/users/[id]/roles.js +11 -10
- package/dist/modules/customer_accounts/api/portal/users/[id]/roles.js.map +2 -2
- package/dist/modules/customers/commands/addresses.js +35 -21
- package/dist/modules/customers/commands/addresses.js.map +2 -2
- package/dist/modules/customers/commands/companies.js +163 -162
- package/dist/modules/customers/commands/companies.js.map +2 -2
- package/dist/modules/customers/commands/deals.js +3 -4
- package/dist/modules/customers/commands/deals.js.map +2 -2
- package/dist/modules/customers/commands/interactions.js +19 -22
- package/dist/modules/customers/commands/interactions.js.map +2 -2
- package/dist/modules/customers/commands/people.js +18 -15
- package/dist/modules/customers/commands/people.js.map +2 -2
- package/dist/modules/customers/commands/personCompanyLinks.js +105 -94
- package/dist/modules/customers/commands/personCompanyLinks.js.map +2 -2
- package/dist/modules/customers/commands/pipeline-stages.js +30 -23
- package/dist/modules/customers/commands/pipeline-stages.js.map +2 -2
- package/dist/modules/customers/commands/pipelines.js +27 -20
- package/dist/modules/customers/commands/pipelines.js.map +2 -2
- package/dist/modules/customers/commands/tags.js +13 -5
- package/dist/modules/customers/commands/tags.js.map +2 -2
- package/dist/modules/dashboards/api/users/widgets/route.js +0 -1
- package/dist/modules/dashboards/api/users/widgets/route.js.map +2 -2
- package/dist/modules/dashboards/api/widgets/data/route.js +29 -1
- package/dist/modules/dashboards/api/widgets/data/route.js.map +2 -2
- package/dist/modules/data_sync/lib/sync-engine.js +4 -4
- package/dist/modules/data_sync/lib/sync-engine.js.map +2 -2
- package/dist/modules/data_sync/lib/sync-run-service.js +51 -27
- package/dist/modules/data_sync/lib/sync-run-service.js.map +2 -2
- package/dist/modules/directory/commands/organizations.js +192 -158
- package/dist/modules/directory/commands/organizations.js.map +3 -3
- package/dist/modules/inbox_ops/api/emails/[id]/reprocess/route.js +22 -16
- package/dist/modules/inbox_ops/api/emails/[id]/reprocess/route.js.map +2 -2
- package/dist/modules/messages/commands/messages.js +77 -75
- package/dist/modules/messages/commands/messages.js.map +2 -2
- package/dist/modules/messages/commands/shared.js +132 -132
- package/dist/modules/messages/commands/shared.js.map +2 -2
- package/dist/modules/perspectives/api/[tableId]/route.js +37 -26
- package/dist/modules/perspectives/api/[tableId]/route.js.map +2 -2
- package/dist/modules/resources/commands/resources.js +125 -117
- package/dist/modules/resources/commands/resources.js.map +2 -2
- package/dist/modules/resources/commands/tags.js +7 -3
- package/dist/modules/resources/commands/tags.js.map +2 -2
- package/dist/modules/sales/api/quotes/send/route.js +12 -11
- package/dist/modules/sales/api/quotes/send/route.js.map +2 -2
- package/dist/modules/sales/commands/documents.js +629 -478
- package/dist/modules/sales/commands/documents.js.map +2 -2
- package/dist/modules/sales/commands/payments.js +146 -146
- package/dist/modules/sales/commands/payments.js.map +2 -2
- package/dist/modules/sales/commands/returns.js +68 -60
- package/dist/modules/sales/commands/returns.js.map +2 -2
- package/dist/modules/staff/acl.js +10 -1
- package/dist/modules/staff/acl.js.map +2 -2
- package/dist/modules/staff/analytics.js +33 -0
- package/dist/modules/staff/analytics.js.map +7 -0
- package/dist/modules/staff/api/guards.js +31 -0
- package/dist/modules/staff/api/guards.js.map +7 -0
- package/dist/modules/staff/api/interceptors.js +96 -0
- package/dist/modules/staff/api/interceptors.js.map +7 -0
- package/dist/modules/staff/api/timesheets/my-projects/[projectId]/route.js +170 -0
- package/dist/modules/staff/api/timesheets/my-projects/[projectId]/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/my-projects/route.js +103 -0
- package/dist/modules/staff/api/timesheets/my-projects/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/projects/kpis/route.js +147 -0
- package/dist/modules/staff/api/timesheets/projects/kpis/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/time-entries/[id]/segments/[segmentId]/route.js +171 -0
- package/dist/modules/staff/api/timesheets/time-entries/[id]/segments/[segmentId]/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/time-entries/[id]/segments/route.js +180 -0
- package/dist/modules/staff/api/timesheets/time-entries/[id]/segments/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/time-entries/[id]/timer-start/route.js +155 -0
- package/dist/modules/staff/api/timesheets/time-entries/[id]/timer-start/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/time-entries/[id]/timer-stop/route.js +173 -0
- package/dist/modules/staff/api/timesheets/time-entries/[id]/timer-stop/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/time-entries/bulk/route.js +260 -0
- package/dist/modules/staff/api/timesheets/time-entries/bulk/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/time-entries/route.js +188 -0
- package/dist/modules/staff/api/timesheets/time-entries/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/time-projects/[id]/employees/route.js +159 -0
- package/dist/modules/staff/api/timesheets/time-projects/[id]/employees/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/time-projects/route.js +230 -0
- package/dist/modules/staff/api/timesheets/time-projects/route.js.map +7 -0
- package/dist/modules/staff/backend/staff/timesheets/page.js +710 -0
- package/dist/modules/staff/backend/staff/timesheets/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/timesheets/page.meta.js +22 -0
- package/dist/modules/staff/backend/staff/timesheets/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/edit/page.js +125 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/edit/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/edit/page.meta.js +16 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/edit/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/page.js +418 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/page.meta.js +16 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/create/page.js +79 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/create/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/create/page.meta.js +16 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/create/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/page.js +602 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/page.meta.js +25 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/projectFormConfig.js +123 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/projectFormConfig.js.map +7 -0
- package/dist/modules/staff/cli.js +38 -1
- package/dist/modules/staff/cli.js.map +2 -2
- package/dist/modules/staff/commands/index.js +2 -0
- package/dist/modules/staff/commands/index.js.map +2 -2
- package/dist/modules/staff/commands/leave-requests.js +30 -28
- package/dist/modules/staff/commands/leave-requests.js.map +3 -3
- package/dist/modules/staff/commands/team-members.js +21 -20
- package/dist/modules/staff/commands/team-members.js.map +2 -2
- package/dist/modules/staff/commands/timesheets-entries.js +409 -0
- package/dist/modules/staff/commands/timesheets-entries.js.map +7 -0
- package/dist/modules/staff/commands/timesheets-projects.js +618 -0
- package/dist/modules/staff/commands/timesheets-projects.js.map +7 -0
- package/dist/modules/staff/data/enrichers.js +104 -0
- package/dist/modules/staff/data/enrichers.js.map +7 -0
- package/dist/modules/staff/data/entities.js +226 -1
- package/dist/modules/staff/data/entities.js.map +2 -2
- package/dist/modules/staff/data/validators.js +113 -1
- package/dist/modules/staff/data/validators.js.map +2 -2
- package/dist/modules/staff/events.js +13 -1
- package/dist/modules/staff/events.js.map +2 -2
- package/dist/modules/staff/lib/crud.js +7 -1
- package/dist/modules/staff/lib/crud.js.map +2 -2
- package/dist/modules/staff/lib/staffMemberResolver.js +15 -0
- package/dist/modules/staff/lib/staffMemberResolver.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects/computeProjectHoursTrend.js +60 -0
- package/dist/modules/staff/lib/timesheets-projects/computeProjectHoursTrend.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects/computeProjectsKpis.js +260 -0
- package/dist/modules/staff/lib/timesheets-projects/computeProjectsKpis.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects/dateBuckets.js +41 -0
- package/dist/modules/staff/lib/timesheets-projects/dateBuckets.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects/initials.js +10 -0
- package/dist/modules/staff/lib/timesheets-projects/initials.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects/kpiMath.js +12 -0
- package/dist/modules/staff/lib/timesheets-projects/kpiMath.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects/listProjectMembersPreview.js +55 -0
- package/dist/modules/staff/lib/timesheets-projects/listProjectMembersPreview.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/HoursSparkline.js +66 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/HoursSparkline.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/ProjectCard.js +81 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/ProjectCard.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/ProjectMembersAvatarStack.js +58 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/ProjectMembersAvatarStack.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/ProjectsKpiStrip.js +152 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/ProjectsKpiStrip.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/SavedViewTabs.js +37 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/SavedViewTabs.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/ViewModeToggle.js +57 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/ViewModeToggle.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/useProjectsViewMode.js +50 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/useProjectsViewMode.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-ui/AddRowDropdown.js +163 -0
- package/dist/modules/staff/lib/timesheets-ui/AddRowDropdown.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-ui/CalendarPicker.js +209 -0
- package/dist/modules/staff/lib/timesheets-ui/CalendarPicker.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-ui/ColorPicker.js +52 -0
- package/dist/modules/staff/lib/timesheets-ui/ColorPicker.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-ui/CreateProjectDialog.js +77 -0
- package/dist/modules/staff/lib/timesheets-ui/CreateProjectDialog.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-ui/ListView.js +173 -0
- package/dist/modules/staff/lib/timesheets-ui/ListView.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-ui/ProjectColorDot.js +32 -0
- package/dist/modules/staff/lib/timesheets-ui/ProjectColorDot.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-ui/TimerBar.js +270 -0
- package/dist/modules/staff/lib/timesheets-ui/TimerBar.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-ui/ViewSwitcher.js +57 -0
- package/dist/modules/staff/lib/timesheets-ui/ViewSwitcher.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-ui/colors.js +43 -0
- package/dist/modules/staff/lib/timesheets-ui/colors.js.map +7 -0
- package/dist/modules/staff/migrations/Migration20260326135612.js +24 -0
- package/dist/modules/staff/migrations/Migration20260326135612.js.map +7 -0
- package/dist/modules/staff/migrations/Migration20260413102715.js +23 -0
- package/dist/modules/staff/migrations/Migration20260413102715.js.map +7 -0
- package/dist/modules/staff/migrations/Migration20260413111602.js +13 -0
- package/dist/modules/staff/migrations/Migration20260413111602.js.map +7 -0
- package/dist/modules/staff/migrations/Migration20260511112759.js +19 -0
- package/dist/modules/staff/migrations/Migration20260511112759.js.map +7 -0
- package/dist/modules/staff/search.js +35 -0
- package/dist/modules/staff/search.js.map +2 -2
- package/dist/modules/staff/setup.js +15 -1
- package/dist/modules/staff/setup.js.map +2 -2
- package/dist/modules/staff/widgets/dashboard/timesheets-hours-by-project/config.js +16 -0
- package/dist/modules/staff/widgets/dashboard/timesheets-hours-by-project/config.js.map +7 -0
- package/dist/modules/staff/widgets/dashboard/timesheets-hours-by-project/widget.client.js +126 -0
- package/dist/modules/staff/widgets/dashboard/timesheets-hours-by-project/widget.client.js.map +7 -0
- package/dist/modules/staff/widgets/dashboard/timesheets-hours-by-project/widget.js +26 -0
- package/dist/modules/staff/widgets/dashboard/timesheets-hours-by-project/widget.js.map +7 -0
- package/dist/modules/staff/widgets/dashboard/timesheets-time-reporting/config.js +15 -0
- package/dist/modules/staff/widgets/dashboard/timesheets-time-reporting/config.js.map +7 -0
- package/dist/modules/staff/widgets/dashboard/timesheets-time-reporting/widget.client.js +238 -0
- package/dist/modules/staff/widgets/dashboard/timesheets-time-reporting/widget.client.js.map +7 -0
- package/dist/modules/staff/widgets/dashboard/timesheets-time-reporting/widget.js +26 -0
- package/dist/modules/staff/widgets/dashboard/timesheets-time-reporting/widget.js.map +7 -0
- package/dist/modules/staff/widgets/injection/timer-sidebar-indicator/widget.js +145 -0
- package/dist/modules/staff/widgets/injection/timer-sidebar-indicator/widget.js.map +7 -0
- package/dist/modules/staff/widgets/injection-table.js +12 -0
- package/dist/modules/staff/widgets/injection-table.js.map +7 -0
- package/dist/modules/sync_excel/api/import/route.js +19 -17
- package/dist/modules/sync_excel/api/import/route.js.map +2 -2
- package/dist/modules/translations/commands/translations.js +22 -19
- package/dist/modules/translations/commands/translations.js.map +2 -2
- package/generated/entities/staff_time_entry/index.ts +17 -0
- package/generated/entities/staff_time_entry_segment/index.ts +10 -0
- package/generated/entities/staff_time_project/index.ts +16 -0
- package/generated/entities/staff_time_project_member/index.ts +13 -0
- package/generated/entities.ids.generated.ts +5 -1
- package/generated/entity-fields-registry.ts +64 -0
- package/package.json +7 -7
- package/src/helpers/integration/timesheetFixtures.ts +61 -0
- package/src/modules/attachments/api/library/[id]/route.ts +24 -17
- package/src/modules/attachments/api/route.ts +20 -14
- package/src/modules/auth/api/roles/acl/route.ts +11 -5
- package/src/modules/auth/api/sidebar/preferences/route.ts +33 -24
- package/src/modules/auth/api/users/acl/route.ts +17 -12
- package/src/modules/auth/commands/users.ts +96 -80
- package/src/modules/auth/services/sidebarPreferencesService.ts +40 -32
- package/src/modules/catalog/commands/categories.ts +61 -12
- package/src/modules/catalog/commands/products.ts +93 -60
- package/src/modules/catalog/commands/variants.ts +29 -16
- package/src/modules/currencies/commands/currencies.ts +27 -14
- package/src/modules/customer_accounts/api/admin/users.ts +31 -26
- package/src/modules/customer_accounts/api/password/reset-confirm.ts +5 -6
- package/src/modules/customer_accounts/api/portal/users/[id]/roles.ts +14 -13
- package/src/modules/customers/commands/addresses.ts +35 -23
- package/src/modules/customers/commands/companies.ts +166 -165
- package/src/modules/customers/commands/deals.ts +2 -4
- package/src/modules/customers/commands/interactions.ts +20 -26
- package/src/modules/customers/commands/people.ts +18 -15
- package/src/modules/customers/commands/personCompanyLinks.ts +109 -100
- package/src/modules/customers/commands/pipeline-stages.ts +31 -27
- package/src/modules/customers/commands/pipelines.ts +29 -23
- package/src/modules/customers/commands/tags.ts +13 -5
- package/src/modules/dashboards/api/users/widgets/route.ts +0 -1
- package/src/modules/dashboards/api/widgets/data/route.ts +36 -1
- package/src/modules/data_sync/lib/sync-engine.ts +4 -5
- package/src/modules/data_sync/lib/sync-run-service.ts +57 -28
- package/src/modules/directory/commands/organizations.ts +203 -166
- package/src/modules/inbox_ops/api/emails/[id]/reprocess/route.ts +26 -18
- package/src/modules/messages/commands/messages.ts +82 -80
- package/src/modules/messages/commands/shared.ts +138 -133
- package/src/modules/perspectives/api/[tableId]/route.ts +38 -27
- package/src/modules/resources/commands/resources.ts +127 -117
- package/src/modules/resources/commands/tags.ts +7 -3
- package/src/modules/sales/api/quotes/send/route.ts +17 -12
- package/src/modules/sales/commands/documents.ts +673 -481
- package/src/modules/sales/commands/payments.ts +158 -152
- package/src/modules/sales/commands/returns.ts +74 -63
- package/src/modules/staff/acl.ts +11 -0
- package/src/modules/staff/analytics.ts +30 -0
- package/src/modules/staff/api/guards.ts +59 -0
- package/src/modules/staff/api/interceptors.ts +122 -0
- package/src/modules/staff/api/timesheets/my-projects/[projectId]/route.ts +191 -0
- package/src/modules/staff/api/timesheets/my-projects/route.ts +115 -0
- package/src/modules/staff/api/timesheets/projects/kpis/route.ts +159 -0
- package/src/modules/staff/api/timesheets/time-entries/[id]/segments/[segmentId]/route.ts +187 -0
- package/src/modules/staff/api/timesheets/time-entries/[id]/segments/route.ts +191 -0
- package/src/modules/staff/api/timesheets/time-entries/[id]/timer-start/route.ts +168 -0
- package/src/modules/staff/api/timesheets/time-entries/[id]/timer-stop/route.ts +191 -0
- package/src/modules/staff/api/timesheets/time-entries/bulk/route.ts +292 -0
- package/src/modules/staff/api/timesheets/time-entries/route.ts +193 -0
- package/src/modules/staff/api/timesheets/time-projects/[id]/employees/route.ts +167 -0
- package/src/modules/staff/api/timesheets/time-projects/route.ts +244 -0
- package/src/modules/staff/backend/staff/timesheets/page.meta.ts +20 -0
- package/src/modules/staff/backend/staff/timesheets/page.tsx +899 -0
- package/src/modules/staff/backend/staff/timesheets/projects/[id]/edit/page.meta.ts +12 -0
- package/src/modules/staff/backend/staff/timesheets/projects/[id]/edit/page.tsx +141 -0
- package/src/modules/staff/backend/staff/timesheets/projects/[id]/page.meta.ts +12 -0
- package/src/modules/staff/backend/staff/timesheets/projects/[id]/page.tsx +579 -0
- package/src/modules/staff/backend/staff/timesheets/projects/create/page.meta.ts +12 -0
- package/src/modules/staff/backend/staff/timesheets/projects/create/page.tsx +90 -0
- package/src/modules/staff/backend/staff/timesheets/projects/page.meta.ts +23 -0
- package/src/modules/staff/backend/staff/timesheets/projects/page.tsx +765 -0
- package/src/modules/staff/backend/staff/timesheets/projects/projectFormConfig.ts +138 -0
- package/src/modules/staff/cli.ts +40 -1
- package/src/modules/staff/commands/index.ts +2 -0
- package/src/modules/staff/commands/leave-requests.ts +37 -29
- package/src/modules/staff/commands/team-members.ts +25 -20
- package/src/modules/staff/commands/timesheets-entries.ts +504 -0
- package/src/modules/staff/commands/timesheets-projects.ts +699 -0
- package/src/modules/staff/data/enrichers.ts +134 -0
- package/src/modules/staff/data/entities.ts +198 -0
- package/src/modules/staff/data/validators.ts +129 -0
- package/src/modules/staff/events.ts +13 -0
- package/src/modules/staff/i18n/de.json +209 -1
- package/src/modules/staff/i18n/en.json +209 -1
- package/src/modules/staff/i18n/es.json +209 -1
- package/src/modules/staff/i18n/pl.json +209 -1
- package/src/modules/staff/lib/crud.ts +8 -0
- package/src/modules/staff/lib/staffMemberResolver.ts +22 -0
- package/src/modules/staff/lib/timesheets-projects/computeProjectHoursTrend.ts +89 -0
- package/src/modules/staff/lib/timesheets-projects/computeProjectsKpis.ts +311 -0
- package/src/modules/staff/lib/timesheets-projects/dateBuckets.ts +37 -0
- package/src/modules/staff/lib/timesheets-projects/initials.ts +6 -0
- package/src/modules/staff/lib/timesheets-projects/kpiMath.ts +8 -0
- package/src/modules/staff/lib/timesheets-projects/listProjectMembersPreview.ts +83 -0
- package/src/modules/staff/lib/timesheets-projects-ui/HoursSparkline.tsx +75 -0
- package/src/modules/staff/lib/timesheets-projects-ui/ProjectCard.tsx +110 -0
- package/src/modules/staff/lib/timesheets-projects-ui/ProjectMembersAvatarStack.tsx +73 -0
- package/src/modules/staff/lib/timesheets-projects-ui/ProjectsKpiStrip.tsx +185 -0
- package/src/modules/staff/lib/timesheets-projects-ui/SavedViewTabs.tsx +53 -0
- package/src/modules/staff/lib/timesheets-projects-ui/ViewModeToggle.tsx +63 -0
- package/src/modules/staff/lib/timesheets-projects-ui/useProjectsViewMode.ts +63 -0
- package/src/modules/staff/lib/timesheets-ui/AddRowDropdown.tsx +188 -0
- package/src/modules/staff/lib/timesheets-ui/CalendarPicker.tsx +229 -0
- package/src/modules/staff/lib/timesheets-ui/ColorPicker.tsx +65 -0
- package/src/modules/staff/lib/timesheets-ui/CreateProjectDialog.tsx +99 -0
- package/src/modules/staff/lib/timesheets-ui/ListView.tsx +230 -0
- package/src/modules/staff/lib/timesheets-ui/ProjectColorDot.tsx +40 -0
- package/src/modules/staff/lib/timesheets-ui/TimerBar.tsx +327 -0
- package/src/modules/staff/lib/timesheets-ui/ViewSwitcher.tsx +60 -0
- package/src/modules/staff/lib/timesheets-ui/colors.ts +58 -0
- package/src/modules/staff/migrations/.snapshot-open-mercato.json +1148 -0
- package/src/modules/staff/migrations/Migration20260326135612.ts +26 -0
- package/src/modules/staff/migrations/Migration20260413102715.ts +25 -0
- package/src/modules/staff/migrations/Migration20260413111602.ts +13 -0
- package/src/modules/staff/migrations/Migration20260511112759.ts +21 -0
- package/src/modules/staff/search.ts +35 -0
- package/src/modules/staff/setup.ts +15 -0
- package/src/modules/staff/widgets/dashboard/timesheets-hours-by-project/config.ts +17 -0
- package/src/modules/staff/widgets/dashboard/timesheets-hours-by-project/widget.client.tsx +158 -0
- package/src/modules/staff/widgets/dashboard/timesheets-hours-by-project/widget.ts +25 -0
- package/src/modules/staff/widgets/dashboard/timesheets-time-reporting/config.ts +15 -0
- package/src/modules/staff/widgets/dashboard/timesheets-time-reporting/widget.client.tsx +297 -0
- package/src/modules/staff/widgets/dashboard/timesheets-time-reporting/widget.ts +25 -0
- package/src/modules/staff/widgets/injection/timer-sidebar-indicator/widget.tsx +161 -0
- package/src/modules/staff/widgets/injection-table.ts +10 -0
- package/src/modules/sync_excel/api/import/route.ts +23 -18
- package/src/modules/translations/commands/translations.ts +49 -41
|
@@ -2127,6 +2127,1154 @@
|
|
|
2127
2127
|
"checks": [],
|
|
2128
2128
|
"foreignKeys": {},
|
|
2129
2129
|
"comment": null
|
|
2130
|
+
},
|
|
2131
|
+
{
|
|
2132
|
+
"name": "staff_time_entries",
|
|
2133
|
+
"schema": "public",
|
|
2134
|
+
"columns": {
|
|
2135
|
+
"created_at": {
|
|
2136
|
+
"name": "created_at",
|
|
2137
|
+
"type": "timestamptz(6)",
|
|
2138
|
+
"unsigned": false,
|
|
2139
|
+
"autoincrement": false,
|
|
2140
|
+
"primary": false,
|
|
2141
|
+
"nullable": false,
|
|
2142
|
+
"unique": false,
|
|
2143
|
+
"length": 6,
|
|
2144
|
+
"precision": null,
|
|
2145
|
+
"scale": null,
|
|
2146
|
+
"default": null,
|
|
2147
|
+
"comment": null,
|
|
2148
|
+
"enumItems": [],
|
|
2149
|
+
"mappedType": "datetime"
|
|
2150
|
+
},
|
|
2151
|
+
"customer_id": {
|
|
2152
|
+
"name": "customer_id",
|
|
2153
|
+
"type": "uuid",
|
|
2154
|
+
"unsigned": false,
|
|
2155
|
+
"autoincrement": false,
|
|
2156
|
+
"primary": false,
|
|
2157
|
+
"nullable": true,
|
|
2158
|
+
"unique": false,
|
|
2159
|
+
"length": null,
|
|
2160
|
+
"precision": null,
|
|
2161
|
+
"scale": null,
|
|
2162
|
+
"default": null,
|
|
2163
|
+
"comment": null,
|
|
2164
|
+
"enumItems": [],
|
|
2165
|
+
"mappedType": "uuid"
|
|
2166
|
+
},
|
|
2167
|
+
"date": {
|
|
2168
|
+
"name": "date",
|
|
2169
|
+
"type": "date",
|
|
2170
|
+
"unsigned": false,
|
|
2171
|
+
"autoincrement": false,
|
|
2172
|
+
"primary": false,
|
|
2173
|
+
"nullable": false,
|
|
2174
|
+
"unique": false,
|
|
2175
|
+
"length": null,
|
|
2176
|
+
"precision": null,
|
|
2177
|
+
"scale": null,
|
|
2178
|
+
"default": null,
|
|
2179
|
+
"comment": null,
|
|
2180
|
+
"enumItems": [],
|
|
2181
|
+
"mappedType": "date"
|
|
2182
|
+
},
|
|
2183
|
+
"deal_id": {
|
|
2184
|
+
"name": "deal_id",
|
|
2185
|
+
"type": "uuid",
|
|
2186
|
+
"unsigned": false,
|
|
2187
|
+
"autoincrement": false,
|
|
2188
|
+
"primary": false,
|
|
2189
|
+
"nullable": true,
|
|
2190
|
+
"unique": false,
|
|
2191
|
+
"length": null,
|
|
2192
|
+
"precision": null,
|
|
2193
|
+
"scale": null,
|
|
2194
|
+
"default": null,
|
|
2195
|
+
"comment": null,
|
|
2196
|
+
"enumItems": [],
|
|
2197
|
+
"mappedType": "uuid"
|
|
2198
|
+
},
|
|
2199
|
+
"deleted_at": {
|
|
2200
|
+
"name": "deleted_at",
|
|
2201
|
+
"type": "timestamptz(6)",
|
|
2202
|
+
"unsigned": false,
|
|
2203
|
+
"autoincrement": false,
|
|
2204
|
+
"primary": false,
|
|
2205
|
+
"nullable": true,
|
|
2206
|
+
"unique": false,
|
|
2207
|
+
"length": 6,
|
|
2208
|
+
"precision": null,
|
|
2209
|
+
"scale": null,
|
|
2210
|
+
"default": null,
|
|
2211
|
+
"comment": null,
|
|
2212
|
+
"enumItems": [],
|
|
2213
|
+
"mappedType": "datetime"
|
|
2214
|
+
},
|
|
2215
|
+
"duration_minutes": {
|
|
2216
|
+
"name": "duration_minutes",
|
|
2217
|
+
"type": "int",
|
|
2218
|
+
"unsigned": false,
|
|
2219
|
+
"autoincrement": false,
|
|
2220
|
+
"primary": false,
|
|
2221
|
+
"nullable": false,
|
|
2222
|
+
"unique": false,
|
|
2223
|
+
"length": null,
|
|
2224
|
+
"precision": null,
|
|
2225
|
+
"scale": null,
|
|
2226
|
+
"default": "0",
|
|
2227
|
+
"comment": null,
|
|
2228
|
+
"enumItems": [],
|
|
2229
|
+
"mappedType": "integer"
|
|
2230
|
+
},
|
|
2231
|
+
"ended_at": {
|
|
2232
|
+
"name": "ended_at",
|
|
2233
|
+
"type": "timestamptz(6)",
|
|
2234
|
+
"unsigned": false,
|
|
2235
|
+
"autoincrement": false,
|
|
2236
|
+
"primary": false,
|
|
2237
|
+
"nullable": true,
|
|
2238
|
+
"unique": false,
|
|
2239
|
+
"length": 6,
|
|
2240
|
+
"precision": null,
|
|
2241
|
+
"scale": null,
|
|
2242
|
+
"default": null,
|
|
2243
|
+
"comment": null,
|
|
2244
|
+
"enumItems": [],
|
|
2245
|
+
"mappedType": "datetime"
|
|
2246
|
+
},
|
|
2247
|
+
"id": {
|
|
2248
|
+
"name": "id",
|
|
2249
|
+
"type": "uuid",
|
|
2250
|
+
"unsigned": false,
|
|
2251
|
+
"autoincrement": false,
|
|
2252
|
+
"primary": true,
|
|
2253
|
+
"nullable": false,
|
|
2254
|
+
"unique": false,
|
|
2255
|
+
"length": null,
|
|
2256
|
+
"precision": null,
|
|
2257
|
+
"scale": null,
|
|
2258
|
+
"default": "gen_random_uuid()",
|
|
2259
|
+
"comment": null,
|
|
2260
|
+
"enumItems": [],
|
|
2261
|
+
"mappedType": "uuid"
|
|
2262
|
+
},
|
|
2263
|
+
"notes": {
|
|
2264
|
+
"name": "notes",
|
|
2265
|
+
"type": "text",
|
|
2266
|
+
"unsigned": false,
|
|
2267
|
+
"autoincrement": false,
|
|
2268
|
+
"primary": false,
|
|
2269
|
+
"nullable": true,
|
|
2270
|
+
"unique": false,
|
|
2271
|
+
"length": null,
|
|
2272
|
+
"precision": null,
|
|
2273
|
+
"scale": null,
|
|
2274
|
+
"default": null,
|
|
2275
|
+
"comment": null,
|
|
2276
|
+
"enumItems": [],
|
|
2277
|
+
"mappedType": "text"
|
|
2278
|
+
},
|
|
2279
|
+
"order_id": {
|
|
2280
|
+
"name": "order_id",
|
|
2281
|
+
"type": "uuid",
|
|
2282
|
+
"unsigned": false,
|
|
2283
|
+
"autoincrement": false,
|
|
2284
|
+
"primary": false,
|
|
2285
|
+
"nullable": true,
|
|
2286
|
+
"unique": false,
|
|
2287
|
+
"length": null,
|
|
2288
|
+
"precision": null,
|
|
2289
|
+
"scale": null,
|
|
2290
|
+
"default": null,
|
|
2291
|
+
"comment": null,
|
|
2292
|
+
"enumItems": [],
|
|
2293
|
+
"mappedType": "uuid"
|
|
2294
|
+
},
|
|
2295
|
+
"organization_id": {
|
|
2296
|
+
"name": "organization_id",
|
|
2297
|
+
"type": "uuid",
|
|
2298
|
+
"unsigned": false,
|
|
2299
|
+
"autoincrement": false,
|
|
2300
|
+
"primary": false,
|
|
2301
|
+
"nullable": false,
|
|
2302
|
+
"unique": false,
|
|
2303
|
+
"length": null,
|
|
2304
|
+
"precision": null,
|
|
2305
|
+
"scale": null,
|
|
2306
|
+
"default": null,
|
|
2307
|
+
"comment": null,
|
|
2308
|
+
"enumItems": [],
|
|
2309
|
+
"mappedType": "uuid"
|
|
2310
|
+
},
|
|
2311
|
+
"source": {
|
|
2312
|
+
"name": "source",
|
|
2313
|
+
"type": "text",
|
|
2314
|
+
"unsigned": false,
|
|
2315
|
+
"autoincrement": false,
|
|
2316
|
+
"primary": false,
|
|
2317
|
+
"nullable": false,
|
|
2318
|
+
"unique": false,
|
|
2319
|
+
"length": null,
|
|
2320
|
+
"precision": null,
|
|
2321
|
+
"scale": null,
|
|
2322
|
+
"default": "'manual'",
|
|
2323
|
+
"comment": null,
|
|
2324
|
+
"enumItems": [
|
|
2325
|
+
"manual",
|
|
2326
|
+
"timer",
|
|
2327
|
+
"kiosk",
|
|
2328
|
+
"mobile"
|
|
2329
|
+
],
|
|
2330
|
+
"mappedType": "enum"
|
|
2331
|
+
},
|
|
2332
|
+
"staff_member_id": {
|
|
2333
|
+
"name": "staff_member_id",
|
|
2334
|
+
"type": "uuid",
|
|
2335
|
+
"unsigned": false,
|
|
2336
|
+
"autoincrement": false,
|
|
2337
|
+
"primary": false,
|
|
2338
|
+
"nullable": false,
|
|
2339
|
+
"unique": false,
|
|
2340
|
+
"length": null,
|
|
2341
|
+
"precision": null,
|
|
2342
|
+
"scale": null,
|
|
2343
|
+
"default": null,
|
|
2344
|
+
"comment": null,
|
|
2345
|
+
"enumItems": [],
|
|
2346
|
+
"mappedType": "uuid"
|
|
2347
|
+
},
|
|
2348
|
+
"started_at": {
|
|
2349
|
+
"name": "started_at",
|
|
2350
|
+
"type": "timestamptz(6)",
|
|
2351
|
+
"unsigned": false,
|
|
2352
|
+
"autoincrement": false,
|
|
2353
|
+
"primary": false,
|
|
2354
|
+
"nullable": true,
|
|
2355
|
+
"unique": false,
|
|
2356
|
+
"length": 6,
|
|
2357
|
+
"precision": null,
|
|
2358
|
+
"scale": null,
|
|
2359
|
+
"default": null,
|
|
2360
|
+
"comment": null,
|
|
2361
|
+
"enumItems": [],
|
|
2362
|
+
"mappedType": "datetime"
|
|
2363
|
+
},
|
|
2364
|
+
"tenant_id": {
|
|
2365
|
+
"name": "tenant_id",
|
|
2366
|
+
"type": "uuid",
|
|
2367
|
+
"unsigned": false,
|
|
2368
|
+
"autoincrement": false,
|
|
2369
|
+
"primary": false,
|
|
2370
|
+
"nullable": false,
|
|
2371
|
+
"unique": false,
|
|
2372
|
+
"length": null,
|
|
2373
|
+
"precision": null,
|
|
2374
|
+
"scale": null,
|
|
2375
|
+
"default": null,
|
|
2376
|
+
"comment": null,
|
|
2377
|
+
"enumItems": [],
|
|
2378
|
+
"mappedType": "uuid"
|
|
2379
|
+
},
|
|
2380
|
+
"time_project_id": {
|
|
2381
|
+
"name": "time_project_id",
|
|
2382
|
+
"type": "uuid",
|
|
2383
|
+
"unsigned": false,
|
|
2384
|
+
"autoincrement": false,
|
|
2385
|
+
"primary": false,
|
|
2386
|
+
"nullable": true,
|
|
2387
|
+
"unique": false,
|
|
2388
|
+
"length": null,
|
|
2389
|
+
"precision": null,
|
|
2390
|
+
"scale": null,
|
|
2391
|
+
"default": null,
|
|
2392
|
+
"comment": null,
|
|
2393
|
+
"enumItems": [],
|
|
2394
|
+
"mappedType": "uuid"
|
|
2395
|
+
},
|
|
2396
|
+
"updated_at": {
|
|
2397
|
+
"name": "updated_at",
|
|
2398
|
+
"type": "timestamptz(6)",
|
|
2399
|
+
"unsigned": false,
|
|
2400
|
+
"autoincrement": false,
|
|
2401
|
+
"primary": false,
|
|
2402
|
+
"nullable": false,
|
|
2403
|
+
"unique": false,
|
|
2404
|
+
"length": 6,
|
|
2405
|
+
"precision": null,
|
|
2406
|
+
"scale": null,
|
|
2407
|
+
"default": null,
|
|
2408
|
+
"comment": null,
|
|
2409
|
+
"enumItems": [],
|
|
2410
|
+
"mappedType": "datetime"
|
|
2411
|
+
}
|
|
2412
|
+
},
|
|
2413
|
+
"indexes": [
|
|
2414
|
+
{
|
|
2415
|
+
"columnNames": [
|
|
2416
|
+
"organization_id",
|
|
2417
|
+
"staff_member_id",
|
|
2418
|
+
"date"
|
|
2419
|
+
],
|
|
2420
|
+
"composite": true,
|
|
2421
|
+
"constraint": false,
|
|
2422
|
+
"keyName": "staff_time_entries_member_date_idx",
|
|
2423
|
+
"primary": false,
|
|
2424
|
+
"unique": false
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
"columnNames": [
|
|
2428
|
+
"id"
|
|
2429
|
+
],
|
|
2430
|
+
"composite": false,
|
|
2431
|
+
"constraint": true,
|
|
2432
|
+
"keyName": "staff_time_entries_pkey",
|
|
2433
|
+
"primary": true,
|
|
2434
|
+
"unique": true
|
|
2435
|
+
},
|
|
2436
|
+
{
|
|
2437
|
+
"columnNames": [
|
|
2438
|
+
"organization_id",
|
|
2439
|
+
"time_project_id",
|
|
2440
|
+
"date"
|
|
2441
|
+
],
|
|
2442
|
+
"composite": true,
|
|
2443
|
+
"constraint": false,
|
|
2444
|
+
"keyName": "staff_time_entries_project_date_idx",
|
|
2445
|
+
"primary": false,
|
|
2446
|
+
"unique": false
|
|
2447
|
+
},
|
|
2448
|
+
{
|
|
2449
|
+
"columnNames": [
|
|
2450
|
+
"tenant_id",
|
|
2451
|
+
"organization_id"
|
|
2452
|
+
],
|
|
2453
|
+
"composite": true,
|
|
2454
|
+
"constraint": false,
|
|
2455
|
+
"keyName": "staff_time_entries_tenant_org_idx",
|
|
2456
|
+
"primary": false,
|
|
2457
|
+
"unique": false
|
|
2458
|
+
}
|
|
2459
|
+
],
|
|
2460
|
+
"checks": [
|
|
2461
|
+
{
|
|
2462
|
+
"name": "staff_time_entries_source_check",
|
|
2463
|
+
"expression": "\"source\" in ('manual', 'timer', 'kiosk', 'mobile')",
|
|
2464
|
+
"definition": "check (\"source\" in ('manual', 'timer', 'kiosk', 'mobile'))",
|
|
2465
|
+
"columnName": "source"
|
|
2466
|
+
}
|
|
2467
|
+
],
|
|
2468
|
+
"foreignKeys": {},
|
|
2469
|
+
"comment": null
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
"name": "staff_time_entry_segments",
|
|
2473
|
+
"schema": "public",
|
|
2474
|
+
"columns": {
|
|
2475
|
+
"created_at": {
|
|
2476
|
+
"name": "created_at",
|
|
2477
|
+
"type": "timestamptz(6)",
|
|
2478
|
+
"unsigned": false,
|
|
2479
|
+
"autoincrement": false,
|
|
2480
|
+
"primary": false,
|
|
2481
|
+
"nullable": false,
|
|
2482
|
+
"unique": false,
|
|
2483
|
+
"length": 6,
|
|
2484
|
+
"precision": null,
|
|
2485
|
+
"scale": null,
|
|
2486
|
+
"default": null,
|
|
2487
|
+
"comment": null,
|
|
2488
|
+
"enumItems": [],
|
|
2489
|
+
"mappedType": "datetime"
|
|
2490
|
+
},
|
|
2491
|
+
"deleted_at": {
|
|
2492
|
+
"name": "deleted_at",
|
|
2493
|
+
"type": "timestamptz(6)",
|
|
2494
|
+
"unsigned": false,
|
|
2495
|
+
"autoincrement": false,
|
|
2496
|
+
"primary": false,
|
|
2497
|
+
"nullable": true,
|
|
2498
|
+
"unique": false,
|
|
2499
|
+
"length": 6,
|
|
2500
|
+
"precision": null,
|
|
2501
|
+
"scale": null,
|
|
2502
|
+
"default": null,
|
|
2503
|
+
"comment": null,
|
|
2504
|
+
"enumItems": [],
|
|
2505
|
+
"mappedType": "datetime"
|
|
2506
|
+
},
|
|
2507
|
+
"ended_at": {
|
|
2508
|
+
"name": "ended_at",
|
|
2509
|
+
"type": "timestamptz(6)",
|
|
2510
|
+
"unsigned": false,
|
|
2511
|
+
"autoincrement": false,
|
|
2512
|
+
"primary": false,
|
|
2513
|
+
"nullable": true,
|
|
2514
|
+
"unique": false,
|
|
2515
|
+
"length": 6,
|
|
2516
|
+
"precision": null,
|
|
2517
|
+
"scale": null,
|
|
2518
|
+
"default": null,
|
|
2519
|
+
"comment": null,
|
|
2520
|
+
"enumItems": [],
|
|
2521
|
+
"mappedType": "datetime"
|
|
2522
|
+
},
|
|
2523
|
+
"id": {
|
|
2524
|
+
"name": "id",
|
|
2525
|
+
"type": "uuid",
|
|
2526
|
+
"unsigned": false,
|
|
2527
|
+
"autoincrement": false,
|
|
2528
|
+
"primary": true,
|
|
2529
|
+
"nullable": false,
|
|
2530
|
+
"unique": false,
|
|
2531
|
+
"length": null,
|
|
2532
|
+
"precision": null,
|
|
2533
|
+
"scale": null,
|
|
2534
|
+
"default": "gen_random_uuid()",
|
|
2535
|
+
"comment": null,
|
|
2536
|
+
"enumItems": [],
|
|
2537
|
+
"mappedType": "uuid"
|
|
2538
|
+
},
|
|
2539
|
+
"organization_id": {
|
|
2540
|
+
"name": "organization_id",
|
|
2541
|
+
"type": "uuid",
|
|
2542
|
+
"unsigned": false,
|
|
2543
|
+
"autoincrement": false,
|
|
2544
|
+
"primary": false,
|
|
2545
|
+
"nullable": false,
|
|
2546
|
+
"unique": false,
|
|
2547
|
+
"length": null,
|
|
2548
|
+
"precision": null,
|
|
2549
|
+
"scale": null,
|
|
2550
|
+
"default": null,
|
|
2551
|
+
"comment": null,
|
|
2552
|
+
"enumItems": [],
|
|
2553
|
+
"mappedType": "uuid"
|
|
2554
|
+
},
|
|
2555
|
+
"segment_type": {
|
|
2556
|
+
"name": "segment_type",
|
|
2557
|
+
"type": "text",
|
|
2558
|
+
"unsigned": false,
|
|
2559
|
+
"autoincrement": false,
|
|
2560
|
+
"primary": false,
|
|
2561
|
+
"nullable": false,
|
|
2562
|
+
"unique": false,
|
|
2563
|
+
"length": null,
|
|
2564
|
+
"precision": null,
|
|
2565
|
+
"scale": null,
|
|
2566
|
+
"default": "'work'",
|
|
2567
|
+
"comment": null,
|
|
2568
|
+
"enumItems": [
|
|
2569
|
+
"work",
|
|
2570
|
+
"break"
|
|
2571
|
+
],
|
|
2572
|
+
"mappedType": "enum"
|
|
2573
|
+
},
|
|
2574
|
+
"started_at": {
|
|
2575
|
+
"name": "started_at",
|
|
2576
|
+
"type": "timestamptz(6)",
|
|
2577
|
+
"unsigned": false,
|
|
2578
|
+
"autoincrement": false,
|
|
2579
|
+
"primary": false,
|
|
2580
|
+
"nullable": false,
|
|
2581
|
+
"unique": false,
|
|
2582
|
+
"length": 6,
|
|
2583
|
+
"precision": null,
|
|
2584
|
+
"scale": null,
|
|
2585
|
+
"default": null,
|
|
2586
|
+
"comment": null,
|
|
2587
|
+
"enumItems": [],
|
|
2588
|
+
"mappedType": "datetime"
|
|
2589
|
+
},
|
|
2590
|
+
"tenant_id": {
|
|
2591
|
+
"name": "tenant_id",
|
|
2592
|
+
"type": "uuid",
|
|
2593
|
+
"unsigned": false,
|
|
2594
|
+
"autoincrement": false,
|
|
2595
|
+
"primary": false,
|
|
2596
|
+
"nullable": false,
|
|
2597
|
+
"unique": false,
|
|
2598
|
+
"length": null,
|
|
2599
|
+
"precision": null,
|
|
2600
|
+
"scale": null,
|
|
2601
|
+
"default": null,
|
|
2602
|
+
"comment": null,
|
|
2603
|
+
"enumItems": [],
|
|
2604
|
+
"mappedType": "uuid"
|
|
2605
|
+
},
|
|
2606
|
+
"time_entry_id": {
|
|
2607
|
+
"name": "time_entry_id",
|
|
2608
|
+
"type": "uuid",
|
|
2609
|
+
"unsigned": false,
|
|
2610
|
+
"autoincrement": false,
|
|
2611
|
+
"primary": false,
|
|
2612
|
+
"nullable": false,
|
|
2613
|
+
"unique": false,
|
|
2614
|
+
"length": null,
|
|
2615
|
+
"precision": null,
|
|
2616
|
+
"scale": null,
|
|
2617
|
+
"default": null,
|
|
2618
|
+
"comment": null,
|
|
2619
|
+
"enumItems": [],
|
|
2620
|
+
"mappedType": "uuid"
|
|
2621
|
+
},
|
|
2622
|
+
"updated_at": {
|
|
2623
|
+
"name": "updated_at",
|
|
2624
|
+
"type": "timestamptz(6)",
|
|
2625
|
+
"unsigned": false,
|
|
2626
|
+
"autoincrement": false,
|
|
2627
|
+
"primary": false,
|
|
2628
|
+
"nullable": false,
|
|
2629
|
+
"unique": false,
|
|
2630
|
+
"length": 6,
|
|
2631
|
+
"precision": null,
|
|
2632
|
+
"scale": null,
|
|
2633
|
+
"default": null,
|
|
2634
|
+
"comment": null,
|
|
2635
|
+
"enumItems": [],
|
|
2636
|
+
"mappedType": "datetime"
|
|
2637
|
+
}
|
|
2638
|
+
},
|
|
2639
|
+
"indexes": [
|
|
2640
|
+
{
|
|
2641
|
+
"columnNames": [
|
|
2642
|
+
"time_entry_id"
|
|
2643
|
+
],
|
|
2644
|
+
"composite": false,
|
|
2645
|
+
"constraint": false,
|
|
2646
|
+
"keyName": "staff_time_entry_segments_entry_idx",
|
|
2647
|
+
"primary": false,
|
|
2648
|
+
"unique": false
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
"columnNames": [
|
|
2652
|
+
"id"
|
|
2653
|
+
],
|
|
2654
|
+
"composite": false,
|
|
2655
|
+
"constraint": true,
|
|
2656
|
+
"keyName": "staff_time_entry_segments_pkey",
|
|
2657
|
+
"primary": true,
|
|
2658
|
+
"unique": true
|
|
2659
|
+
},
|
|
2660
|
+
{
|
|
2661
|
+
"columnNames": [
|
|
2662
|
+
"tenant_id",
|
|
2663
|
+
"organization_id"
|
|
2664
|
+
],
|
|
2665
|
+
"composite": true,
|
|
2666
|
+
"constraint": false,
|
|
2667
|
+
"keyName": "staff_time_entry_segments_tenant_org_idx",
|
|
2668
|
+
"primary": false,
|
|
2669
|
+
"unique": false
|
|
2670
|
+
}
|
|
2671
|
+
],
|
|
2672
|
+
"checks": [
|
|
2673
|
+
{
|
|
2674
|
+
"name": "staff_time_entry_segments_segment_type_check",
|
|
2675
|
+
"expression": "\"segment_type\" in ('work', 'break')",
|
|
2676
|
+
"definition": "check (\"segment_type\" in ('work', 'break'))",
|
|
2677
|
+
"columnName": "segment_type"
|
|
2678
|
+
}
|
|
2679
|
+
],
|
|
2680
|
+
"foreignKeys": {},
|
|
2681
|
+
"comment": null
|
|
2682
|
+
},
|
|
2683
|
+
{
|
|
2684
|
+
"name": "staff_time_project_members",
|
|
2685
|
+
"schema": "public",
|
|
2686
|
+
"columns": {
|
|
2687
|
+
"assigned_end_date": {
|
|
2688
|
+
"name": "assigned_end_date",
|
|
2689
|
+
"type": "date",
|
|
2690
|
+
"unsigned": false,
|
|
2691
|
+
"autoincrement": false,
|
|
2692
|
+
"primary": false,
|
|
2693
|
+
"nullable": true,
|
|
2694
|
+
"unique": false,
|
|
2695
|
+
"length": null,
|
|
2696
|
+
"precision": null,
|
|
2697
|
+
"scale": null,
|
|
2698
|
+
"default": null,
|
|
2699
|
+
"comment": null,
|
|
2700
|
+
"enumItems": [],
|
|
2701
|
+
"mappedType": "date"
|
|
2702
|
+
},
|
|
2703
|
+
"assigned_start_date": {
|
|
2704
|
+
"name": "assigned_start_date",
|
|
2705
|
+
"type": "date",
|
|
2706
|
+
"unsigned": false,
|
|
2707
|
+
"autoincrement": false,
|
|
2708
|
+
"primary": false,
|
|
2709
|
+
"nullable": false,
|
|
2710
|
+
"unique": false,
|
|
2711
|
+
"length": null,
|
|
2712
|
+
"precision": null,
|
|
2713
|
+
"scale": null,
|
|
2714
|
+
"default": null,
|
|
2715
|
+
"comment": null,
|
|
2716
|
+
"enumItems": [],
|
|
2717
|
+
"mappedType": "date"
|
|
2718
|
+
},
|
|
2719
|
+
"created_at": {
|
|
2720
|
+
"name": "created_at",
|
|
2721
|
+
"type": "timestamptz(6)",
|
|
2722
|
+
"unsigned": false,
|
|
2723
|
+
"autoincrement": false,
|
|
2724
|
+
"primary": false,
|
|
2725
|
+
"nullable": false,
|
|
2726
|
+
"unique": false,
|
|
2727
|
+
"length": 6,
|
|
2728
|
+
"precision": null,
|
|
2729
|
+
"scale": null,
|
|
2730
|
+
"default": null,
|
|
2731
|
+
"comment": null,
|
|
2732
|
+
"enumItems": [],
|
|
2733
|
+
"mappedType": "datetime"
|
|
2734
|
+
},
|
|
2735
|
+
"deleted_at": {
|
|
2736
|
+
"name": "deleted_at",
|
|
2737
|
+
"type": "timestamptz(6)",
|
|
2738
|
+
"unsigned": false,
|
|
2739
|
+
"autoincrement": false,
|
|
2740
|
+
"primary": false,
|
|
2741
|
+
"nullable": true,
|
|
2742
|
+
"unique": false,
|
|
2743
|
+
"length": 6,
|
|
2744
|
+
"precision": null,
|
|
2745
|
+
"scale": null,
|
|
2746
|
+
"default": null,
|
|
2747
|
+
"comment": null,
|
|
2748
|
+
"enumItems": [],
|
|
2749
|
+
"mappedType": "datetime"
|
|
2750
|
+
},
|
|
2751
|
+
"id": {
|
|
2752
|
+
"name": "id",
|
|
2753
|
+
"type": "uuid",
|
|
2754
|
+
"unsigned": false,
|
|
2755
|
+
"autoincrement": false,
|
|
2756
|
+
"primary": true,
|
|
2757
|
+
"nullable": false,
|
|
2758
|
+
"unique": false,
|
|
2759
|
+
"length": null,
|
|
2760
|
+
"precision": null,
|
|
2761
|
+
"scale": null,
|
|
2762
|
+
"default": "gen_random_uuid()",
|
|
2763
|
+
"comment": null,
|
|
2764
|
+
"enumItems": [],
|
|
2765
|
+
"mappedType": "uuid"
|
|
2766
|
+
},
|
|
2767
|
+
"organization_id": {
|
|
2768
|
+
"name": "organization_id",
|
|
2769
|
+
"type": "uuid",
|
|
2770
|
+
"unsigned": false,
|
|
2771
|
+
"autoincrement": false,
|
|
2772
|
+
"primary": false,
|
|
2773
|
+
"nullable": false,
|
|
2774
|
+
"unique": false,
|
|
2775
|
+
"length": null,
|
|
2776
|
+
"precision": null,
|
|
2777
|
+
"scale": null,
|
|
2778
|
+
"default": null,
|
|
2779
|
+
"comment": null,
|
|
2780
|
+
"enumItems": [],
|
|
2781
|
+
"mappedType": "uuid"
|
|
2782
|
+
},
|
|
2783
|
+
"role": {
|
|
2784
|
+
"name": "role",
|
|
2785
|
+
"type": "text",
|
|
2786
|
+
"unsigned": false,
|
|
2787
|
+
"autoincrement": false,
|
|
2788
|
+
"primary": false,
|
|
2789
|
+
"nullable": true,
|
|
2790
|
+
"unique": false,
|
|
2791
|
+
"length": null,
|
|
2792
|
+
"precision": null,
|
|
2793
|
+
"scale": null,
|
|
2794
|
+
"default": null,
|
|
2795
|
+
"comment": null,
|
|
2796
|
+
"enumItems": [],
|
|
2797
|
+
"mappedType": "text"
|
|
2798
|
+
},
|
|
2799
|
+
"show_in_grid": {
|
|
2800
|
+
"name": "show_in_grid",
|
|
2801
|
+
"type": "boolean",
|
|
2802
|
+
"unsigned": false,
|
|
2803
|
+
"autoincrement": false,
|
|
2804
|
+
"primary": false,
|
|
2805
|
+
"nullable": false,
|
|
2806
|
+
"unique": false,
|
|
2807
|
+
"length": null,
|
|
2808
|
+
"precision": null,
|
|
2809
|
+
"scale": null,
|
|
2810
|
+
"default": "false",
|
|
2811
|
+
"comment": null,
|
|
2812
|
+
"enumItems": [],
|
|
2813
|
+
"mappedType": "boolean"
|
|
2814
|
+
},
|
|
2815
|
+
"staff_member_id": {
|
|
2816
|
+
"name": "staff_member_id",
|
|
2817
|
+
"type": "uuid",
|
|
2818
|
+
"unsigned": false,
|
|
2819
|
+
"autoincrement": false,
|
|
2820
|
+
"primary": false,
|
|
2821
|
+
"nullable": false,
|
|
2822
|
+
"unique": false,
|
|
2823
|
+
"length": null,
|
|
2824
|
+
"precision": null,
|
|
2825
|
+
"scale": null,
|
|
2826
|
+
"default": null,
|
|
2827
|
+
"comment": null,
|
|
2828
|
+
"enumItems": [],
|
|
2829
|
+
"mappedType": "uuid"
|
|
2830
|
+
},
|
|
2831
|
+
"status": {
|
|
2832
|
+
"name": "status",
|
|
2833
|
+
"type": "text",
|
|
2834
|
+
"unsigned": false,
|
|
2835
|
+
"autoincrement": false,
|
|
2836
|
+
"primary": false,
|
|
2837
|
+
"nullable": false,
|
|
2838
|
+
"unique": false,
|
|
2839
|
+
"length": null,
|
|
2840
|
+
"precision": null,
|
|
2841
|
+
"scale": null,
|
|
2842
|
+
"default": "'active'",
|
|
2843
|
+
"comment": null,
|
|
2844
|
+
"enumItems": [
|
|
2845
|
+
"active",
|
|
2846
|
+
"inactive"
|
|
2847
|
+
],
|
|
2848
|
+
"mappedType": "enum"
|
|
2849
|
+
},
|
|
2850
|
+
"tenant_id": {
|
|
2851
|
+
"name": "tenant_id",
|
|
2852
|
+
"type": "uuid",
|
|
2853
|
+
"unsigned": false,
|
|
2854
|
+
"autoincrement": false,
|
|
2855
|
+
"primary": false,
|
|
2856
|
+
"nullable": false,
|
|
2857
|
+
"unique": false,
|
|
2858
|
+
"length": null,
|
|
2859
|
+
"precision": null,
|
|
2860
|
+
"scale": null,
|
|
2861
|
+
"default": null,
|
|
2862
|
+
"comment": null,
|
|
2863
|
+
"enumItems": [],
|
|
2864
|
+
"mappedType": "uuid"
|
|
2865
|
+
},
|
|
2866
|
+
"time_project_id": {
|
|
2867
|
+
"name": "time_project_id",
|
|
2868
|
+
"type": "uuid",
|
|
2869
|
+
"unsigned": false,
|
|
2870
|
+
"autoincrement": false,
|
|
2871
|
+
"primary": false,
|
|
2872
|
+
"nullable": false,
|
|
2873
|
+
"unique": false,
|
|
2874
|
+
"length": null,
|
|
2875
|
+
"precision": null,
|
|
2876
|
+
"scale": null,
|
|
2877
|
+
"default": null,
|
|
2878
|
+
"comment": null,
|
|
2879
|
+
"enumItems": [],
|
|
2880
|
+
"mappedType": "uuid"
|
|
2881
|
+
},
|
|
2882
|
+
"updated_at": {
|
|
2883
|
+
"name": "updated_at",
|
|
2884
|
+
"type": "timestamptz(6)",
|
|
2885
|
+
"unsigned": false,
|
|
2886
|
+
"autoincrement": false,
|
|
2887
|
+
"primary": false,
|
|
2888
|
+
"nullable": false,
|
|
2889
|
+
"unique": false,
|
|
2890
|
+
"length": 6,
|
|
2891
|
+
"precision": null,
|
|
2892
|
+
"scale": null,
|
|
2893
|
+
"default": null,
|
|
2894
|
+
"comment": null,
|
|
2895
|
+
"enumItems": [],
|
|
2896
|
+
"mappedType": "datetime"
|
|
2897
|
+
}
|
|
2898
|
+
},
|
|
2899
|
+
"indexes": [
|
|
2900
|
+
{
|
|
2901
|
+
"columnNames": [
|
|
2902
|
+
"organization_id",
|
|
2903
|
+
"staff_member_id"
|
|
2904
|
+
],
|
|
2905
|
+
"composite": true,
|
|
2906
|
+
"constraint": false,
|
|
2907
|
+
"keyName": "staff_time_project_members_member_idx",
|
|
2908
|
+
"primary": false,
|
|
2909
|
+
"unique": false
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
"columnNames": [
|
|
2913
|
+
"id"
|
|
2914
|
+
],
|
|
2915
|
+
"composite": false,
|
|
2916
|
+
"constraint": true,
|
|
2917
|
+
"keyName": "staff_time_project_members_pkey",
|
|
2918
|
+
"primary": true,
|
|
2919
|
+
"unique": true
|
|
2920
|
+
},
|
|
2921
|
+
{
|
|
2922
|
+
"columnNames": [
|
|
2923
|
+
"organization_id",
|
|
2924
|
+
"time_project_id"
|
|
2925
|
+
],
|
|
2926
|
+
"composite": true,
|
|
2927
|
+
"constraint": false,
|
|
2928
|
+
"keyName": "staff_time_project_members_project_idx",
|
|
2929
|
+
"primary": false,
|
|
2930
|
+
"unique": false
|
|
2931
|
+
},
|
|
2932
|
+
{
|
|
2933
|
+
"columnNames": [
|
|
2934
|
+
"tenant_id",
|
|
2935
|
+
"organization_id"
|
|
2936
|
+
],
|
|
2937
|
+
"composite": true,
|
|
2938
|
+
"constraint": false,
|
|
2939
|
+
"keyName": "staff_time_project_members_tenant_org_idx",
|
|
2940
|
+
"primary": false,
|
|
2941
|
+
"unique": false
|
|
2942
|
+
},
|
|
2943
|
+
{
|
|
2944
|
+
"columnNames": [
|
|
2945
|
+
"organization_id",
|
|
2946
|
+
"tenant_id",
|
|
2947
|
+
"time_project_id",
|
|
2948
|
+
"staff_member_id"
|
|
2949
|
+
],
|
|
2950
|
+
"composite": true,
|
|
2951
|
+
"constraint": false,
|
|
2952
|
+
"keyName": "staff_time_project_members_unique_idx",
|
|
2953
|
+
"primary": false,
|
|
2954
|
+
"unique": false
|
|
2955
|
+
}
|
|
2956
|
+
],
|
|
2957
|
+
"checks": [
|
|
2958
|
+
{
|
|
2959
|
+
"name": "staff_time_project_members_status_check",
|
|
2960
|
+
"expression": "\"status\" in ('active', 'inactive')",
|
|
2961
|
+
"definition": "check (\"status\" in ('active', 'inactive'))",
|
|
2962
|
+
"columnName": "status"
|
|
2963
|
+
}
|
|
2964
|
+
],
|
|
2965
|
+
"foreignKeys": {},
|
|
2966
|
+
"comment": null
|
|
2967
|
+
},
|
|
2968
|
+
{
|
|
2969
|
+
"name": "staff_time_projects",
|
|
2970
|
+
"schema": "public",
|
|
2971
|
+
"columns": {
|
|
2972
|
+
"code": {
|
|
2973
|
+
"name": "code",
|
|
2974
|
+
"type": "text",
|
|
2975
|
+
"unsigned": false,
|
|
2976
|
+
"autoincrement": false,
|
|
2977
|
+
"primary": false,
|
|
2978
|
+
"nullable": false,
|
|
2979
|
+
"unique": false,
|
|
2980
|
+
"length": null,
|
|
2981
|
+
"precision": null,
|
|
2982
|
+
"scale": null,
|
|
2983
|
+
"default": null,
|
|
2984
|
+
"comment": null,
|
|
2985
|
+
"enumItems": [],
|
|
2986
|
+
"mappedType": "text"
|
|
2987
|
+
},
|
|
2988
|
+
"color": {
|
|
2989
|
+
"name": "color",
|
|
2990
|
+
"type": "varchar(20)",
|
|
2991
|
+
"unsigned": false,
|
|
2992
|
+
"autoincrement": false,
|
|
2993
|
+
"primary": false,
|
|
2994
|
+
"nullable": true,
|
|
2995
|
+
"unique": false,
|
|
2996
|
+
"length": 20,
|
|
2997
|
+
"precision": null,
|
|
2998
|
+
"scale": null,
|
|
2999
|
+
"default": null,
|
|
3000
|
+
"comment": null,
|
|
3001
|
+
"enumItems": [],
|
|
3002
|
+
"mappedType": "string"
|
|
3003
|
+
},
|
|
3004
|
+
"cost_center": {
|
|
3005
|
+
"name": "cost_center",
|
|
3006
|
+
"type": "text",
|
|
3007
|
+
"unsigned": false,
|
|
3008
|
+
"autoincrement": false,
|
|
3009
|
+
"primary": false,
|
|
3010
|
+
"nullable": true,
|
|
3011
|
+
"unique": false,
|
|
3012
|
+
"length": null,
|
|
3013
|
+
"precision": null,
|
|
3014
|
+
"scale": null,
|
|
3015
|
+
"default": null,
|
|
3016
|
+
"comment": null,
|
|
3017
|
+
"enumItems": [],
|
|
3018
|
+
"mappedType": "text"
|
|
3019
|
+
},
|
|
3020
|
+
"created_at": {
|
|
3021
|
+
"name": "created_at",
|
|
3022
|
+
"type": "timestamptz(6)",
|
|
3023
|
+
"unsigned": false,
|
|
3024
|
+
"autoincrement": false,
|
|
3025
|
+
"primary": false,
|
|
3026
|
+
"nullable": false,
|
|
3027
|
+
"unique": false,
|
|
3028
|
+
"length": 6,
|
|
3029
|
+
"precision": null,
|
|
3030
|
+
"scale": null,
|
|
3031
|
+
"default": null,
|
|
3032
|
+
"comment": null,
|
|
3033
|
+
"enumItems": [],
|
|
3034
|
+
"mappedType": "datetime"
|
|
3035
|
+
},
|
|
3036
|
+
"customer_id": {
|
|
3037
|
+
"name": "customer_id",
|
|
3038
|
+
"type": "uuid",
|
|
3039
|
+
"unsigned": false,
|
|
3040
|
+
"autoincrement": false,
|
|
3041
|
+
"primary": false,
|
|
3042
|
+
"nullable": true,
|
|
3043
|
+
"unique": false,
|
|
3044
|
+
"length": null,
|
|
3045
|
+
"precision": null,
|
|
3046
|
+
"scale": null,
|
|
3047
|
+
"default": null,
|
|
3048
|
+
"comment": null,
|
|
3049
|
+
"enumItems": [],
|
|
3050
|
+
"mappedType": "uuid"
|
|
3051
|
+
},
|
|
3052
|
+
"deleted_at": {
|
|
3053
|
+
"name": "deleted_at",
|
|
3054
|
+
"type": "timestamptz(6)",
|
|
3055
|
+
"unsigned": false,
|
|
3056
|
+
"autoincrement": false,
|
|
3057
|
+
"primary": false,
|
|
3058
|
+
"nullable": true,
|
|
3059
|
+
"unique": false,
|
|
3060
|
+
"length": 6,
|
|
3061
|
+
"precision": null,
|
|
3062
|
+
"scale": null,
|
|
3063
|
+
"default": null,
|
|
3064
|
+
"comment": null,
|
|
3065
|
+
"enumItems": [],
|
|
3066
|
+
"mappedType": "datetime"
|
|
3067
|
+
},
|
|
3068
|
+
"description": {
|
|
3069
|
+
"name": "description",
|
|
3070
|
+
"type": "text",
|
|
3071
|
+
"unsigned": false,
|
|
3072
|
+
"autoincrement": false,
|
|
3073
|
+
"primary": false,
|
|
3074
|
+
"nullable": true,
|
|
3075
|
+
"unique": false,
|
|
3076
|
+
"length": null,
|
|
3077
|
+
"precision": null,
|
|
3078
|
+
"scale": null,
|
|
3079
|
+
"default": null,
|
|
3080
|
+
"comment": null,
|
|
3081
|
+
"enumItems": [],
|
|
3082
|
+
"mappedType": "text"
|
|
3083
|
+
},
|
|
3084
|
+
"id": {
|
|
3085
|
+
"name": "id",
|
|
3086
|
+
"type": "uuid",
|
|
3087
|
+
"unsigned": false,
|
|
3088
|
+
"autoincrement": false,
|
|
3089
|
+
"primary": true,
|
|
3090
|
+
"nullable": false,
|
|
3091
|
+
"unique": false,
|
|
3092
|
+
"length": null,
|
|
3093
|
+
"precision": null,
|
|
3094
|
+
"scale": null,
|
|
3095
|
+
"default": "gen_random_uuid()",
|
|
3096
|
+
"comment": null,
|
|
3097
|
+
"enumItems": [],
|
|
3098
|
+
"mappedType": "uuid"
|
|
3099
|
+
},
|
|
3100
|
+
"name": {
|
|
3101
|
+
"name": "name",
|
|
3102
|
+
"type": "text",
|
|
3103
|
+
"unsigned": false,
|
|
3104
|
+
"autoincrement": false,
|
|
3105
|
+
"primary": false,
|
|
3106
|
+
"nullable": false,
|
|
3107
|
+
"unique": false,
|
|
3108
|
+
"length": null,
|
|
3109
|
+
"precision": null,
|
|
3110
|
+
"scale": null,
|
|
3111
|
+
"default": null,
|
|
3112
|
+
"comment": null,
|
|
3113
|
+
"enumItems": [],
|
|
3114
|
+
"mappedType": "text"
|
|
3115
|
+
},
|
|
3116
|
+
"organization_id": {
|
|
3117
|
+
"name": "organization_id",
|
|
3118
|
+
"type": "uuid",
|
|
3119
|
+
"unsigned": false,
|
|
3120
|
+
"autoincrement": false,
|
|
3121
|
+
"primary": false,
|
|
3122
|
+
"nullable": false,
|
|
3123
|
+
"unique": false,
|
|
3124
|
+
"length": null,
|
|
3125
|
+
"precision": null,
|
|
3126
|
+
"scale": null,
|
|
3127
|
+
"default": null,
|
|
3128
|
+
"comment": null,
|
|
3129
|
+
"enumItems": [],
|
|
3130
|
+
"mappedType": "uuid"
|
|
3131
|
+
},
|
|
3132
|
+
"owner_user_id": {
|
|
3133
|
+
"name": "owner_user_id",
|
|
3134
|
+
"type": "uuid",
|
|
3135
|
+
"unsigned": false,
|
|
3136
|
+
"autoincrement": false,
|
|
3137
|
+
"primary": false,
|
|
3138
|
+
"nullable": true,
|
|
3139
|
+
"unique": false,
|
|
3140
|
+
"length": null,
|
|
3141
|
+
"precision": null,
|
|
3142
|
+
"scale": null,
|
|
3143
|
+
"default": null,
|
|
3144
|
+
"comment": null,
|
|
3145
|
+
"enumItems": [],
|
|
3146
|
+
"mappedType": "uuid"
|
|
3147
|
+
},
|
|
3148
|
+
"project_type": {
|
|
3149
|
+
"name": "project_type",
|
|
3150
|
+
"type": "text",
|
|
3151
|
+
"unsigned": false,
|
|
3152
|
+
"autoincrement": false,
|
|
3153
|
+
"primary": false,
|
|
3154
|
+
"nullable": true,
|
|
3155
|
+
"unique": false,
|
|
3156
|
+
"length": null,
|
|
3157
|
+
"precision": null,
|
|
3158
|
+
"scale": null,
|
|
3159
|
+
"default": null,
|
|
3160
|
+
"comment": null,
|
|
3161
|
+
"enumItems": [],
|
|
3162
|
+
"mappedType": "text"
|
|
3163
|
+
},
|
|
3164
|
+
"start_date": {
|
|
3165
|
+
"name": "start_date",
|
|
3166
|
+
"type": "date",
|
|
3167
|
+
"unsigned": false,
|
|
3168
|
+
"autoincrement": false,
|
|
3169
|
+
"primary": false,
|
|
3170
|
+
"nullable": true,
|
|
3171
|
+
"unique": false,
|
|
3172
|
+
"length": null,
|
|
3173
|
+
"precision": null,
|
|
3174
|
+
"scale": null,
|
|
3175
|
+
"default": null,
|
|
3176
|
+
"comment": null,
|
|
3177
|
+
"enumItems": [],
|
|
3178
|
+
"mappedType": "date"
|
|
3179
|
+
},
|
|
3180
|
+
"status": {
|
|
3181
|
+
"name": "status",
|
|
3182
|
+
"type": "text",
|
|
3183
|
+
"unsigned": false,
|
|
3184
|
+
"autoincrement": false,
|
|
3185
|
+
"primary": false,
|
|
3186
|
+
"nullable": false,
|
|
3187
|
+
"unique": false,
|
|
3188
|
+
"length": null,
|
|
3189
|
+
"precision": null,
|
|
3190
|
+
"scale": null,
|
|
3191
|
+
"default": "'active'",
|
|
3192
|
+
"comment": null,
|
|
3193
|
+
"enumItems": [
|
|
3194
|
+
"active",
|
|
3195
|
+
"on_hold",
|
|
3196
|
+
"completed"
|
|
3197
|
+
],
|
|
3198
|
+
"mappedType": "enum"
|
|
3199
|
+
},
|
|
3200
|
+
"tenant_id": {
|
|
3201
|
+
"name": "tenant_id",
|
|
3202
|
+
"type": "uuid",
|
|
3203
|
+
"unsigned": false,
|
|
3204
|
+
"autoincrement": false,
|
|
3205
|
+
"primary": false,
|
|
3206
|
+
"nullable": false,
|
|
3207
|
+
"unique": false,
|
|
3208
|
+
"length": null,
|
|
3209
|
+
"precision": null,
|
|
3210
|
+
"scale": null,
|
|
3211
|
+
"default": null,
|
|
3212
|
+
"comment": null,
|
|
3213
|
+
"enumItems": [],
|
|
3214
|
+
"mappedType": "uuid"
|
|
3215
|
+
},
|
|
3216
|
+
"updated_at": {
|
|
3217
|
+
"name": "updated_at",
|
|
3218
|
+
"type": "timestamptz(6)",
|
|
3219
|
+
"unsigned": false,
|
|
3220
|
+
"autoincrement": false,
|
|
3221
|
+
"primary": false,
|
|
3222
|
+
"nullable": false,
|
|
3223
|
+
"unique": false,
|
|
3224
|
+
"length": 6,
|
|
3225
|
+
"precision": null,
|
|
3226
|
+
"scale": null,
|
|
3227
|
+
"default": null,
|
|
3228
|
+
"comment": null,
|
|
3229
|
+
"enumItems": [],
|
|
3230
|
+
"mappedType": "datetime"
|
|
3231
|
+
}
|
|
3232
|
+
},
|
|
3233
|
+
"indexes": [
|
|
3234
|
+
{
|
|
3235
|
+
"columnNames": [
|
|
3236
|
+
"organization_id",
|
|
3237
|
+
"tenant_id",
|
|
3238
|
+
"code"
|
|
3239
|
+
],
|
|
3240
|
+
"composite": true,
|
|
3241
|
+
"constraint": false,
|
|
3242
|
+
"keyName": "staff_time_projects_code_unique_idx",
|
|
3243
|
+
"primary": false,
|
|
3244
|
+
"unique": false
|
|
3245
|
+
},
|
|
3246
|
+
{
|
|
3247
|
+
"columnNames": [
|
|
3248
|
+
"id"
|
|
3249
|
+
],
|
|
3250
|
+
"composite": false,
|
|
3251
|
+
"constraint": true,
|
|
3252
|
+
"keyName": "staff_time_projects_pkey",
|
|
3253
|
+
"primary": true,
|
|
3254
|
+
"unique": true
|
|
3255
|
+
},
|
|
3256
|
+
{
|
|
3257
|
+
"columnNames": [
|
|
3258
|
+
"tenant_id",
|
|
3259
|
+
"organization_id"
|
|
3260
|
+
],
|
|
3261
|
+
"composite": true,
|
|
3262
|
+
"constraint": false,
|
|
3263
|
+
"keyName": "staff_time_projects_tenant_org_idx",
|
|
3264
|
+
"primary": false,
|
|
3265
|
+
"unique": false
|
|
3266
|
+
}
|
|
3267
|
+
],
|
|
3268
|
+
"checks": [
|
|
3269
|
+
{
|
|
3270
|
+
"name": "staff_time_projects_status_check",
|
|
3271
|
+
"expression": "\"status\" in ('active', 'on_hold', 'completed')",
|
|
3272
|
+
"definition": "check (\"status\" in ('active', 'on_hold', 'completed'))",
|
|
3273
|
+
"columnName": "status"
|
|
3274
|
+
}
|
|
3275
|
+
],
|
|
3276
|
+
"foreignKeys": {},
|
|
3277
|
+
"comment": null
|
|
2130
3278
|
}
|
|
2131
3279
|
],
|
|
2132
3280
|
"views": [],
|