lcp 0.1.0
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.
- checksums.yaml +7 -0
- data/.claude/skills/lcp-custom-field/SKILL.md +205 -0
- data/.claude/skills/lcp-getting-started/SKILL.md +332 -0
- data/.claude/skills/lcp-host-binding/SKILL.md +287 -0
- data/.claude/skills/lcp-model/SKILL.md +185 -0
- data/.claude/skills/lcp-permissions/SKILL.md +176 -0
- data/.claude/skills/lcp-presenter/SKILL.md +194 -0
- data/.claude/skills/lcp-workflow/SKILL.md +281 -0
- data/CHANGELOG.md +69 -0
- data/MIT-LICENSE +20 -0
- data/README.md +28 -0
- data/Rakefile +17 -0
- data/app/assets/javascripts/lcp_ruby/application.js +58 -0
- data/app/assets/javascripts/lcp_ruby/controllers/advanced_filter_controller.js +1521 -0
- data/app/assets/javascripts/lcp_ruby/controllers/approval_actions_controller.js +24 -0
- data/app/assets/javascripts/lcp_ruby/controllers/array_input_controller.js +156 -0
- data/app/assets/javascripts/lcp_ruby/controllers/batch_select_controller.js +405 -0
- data/app/assets/javascripts/lcp_ruby/controllers/cascading_selects_controller.js +436 -0
- data/app/assets/javascripts/lcp_ruby/controllers/char_counter_controller.js +28 -0
- data/app/assets/javascripts/lcp_ruby/controllers/clipboard_controller.js +62 -0
- data/app/assets/javascripts/lcp_ruby/controllers/conditional_rendering_controller.js +178 -0
- data/app/assets/javascripts/lcp_ruby/controllers/confirm_dialog_controller.js +131 -0
- data/app/assets/javascripts/lcp_ruby/controllers/custom_fields_manage_controller.js +80 -0
- data/app/assets/javascripts/lcp_ruby/controllers/dialog_controller.js +421 -0
- data/app/assets/javascripts/lcp_ruby/controllers/dialog_nested_controller.js +182 -0
- data/app/assets/javascripts/lcp_ruby/controllers/direct_upload_controller.js +100 -0
- data/app/assets/javascripts/lcp_ruby/controllers/drawer_controller.js +205 -0
- data/app/assets/javascripts/lcp_ruby/controllers/dropdown_controller.js +160 -0
- data/app/assets/javascripts/lcp_ruby/controllers/export_dialog_controller.js +15 -0
- data/app/assets/javascripts/lcp_ruby/controllers/field_picker_controller.js +290 -0
- data/app/assets/javascripts/lcp_ruby/controllers/file_upload_controller.js +135 -0
- data/app/assets/javascripts/lcp_ruby/controllers/filter_auto_submit_controller.js +46 -0
- data/app/assets/javascripts/lcp_ruby/controllers/filter_dirty_controller.js +94 -0
- data/app/assets/javascripts/lcp_ruby/controllers/form_actions_controller.js +68 -0
- data/app/assets/javascripts/lcp_ruby/controllers/form_handling_controller.js +67 -0
- data/app/assets/javascripts/lcp_ruby/controllers/import_dialog_controller.js +142 -0
- data/app/assets/javascripts/lcp_ruby/controllers/import_mapper_controller.js +322 -0
- data/app/assets/javascripts/lcp_ruby/controllers/index_sortable_controller.js +388 -0
- data/app/assets/javascripts/lcp_ruby/controllers/inline_create_controller.js +137 -0
- data/app/assets/javascripts/lcp_ruby/controllers/kanban_board_controller.js +290 -0
- data/app/assets/javascripts/lcp_ruby/controllers/menu_controller.js +19 -0
- data/app/assets/javascripts/lcp_ruby/controllers/nested_forms_controller.js +261 -0
- data/app/assets/javascripts/lcp_ruby/controllers/responsive_sidebar_controller.js +161 -0
- data/app/assets/javascripts/lcp_ruby/controllers/responsive_top_nav_controller.js +394 -0
- data/app/assets/javascripts/lcp_ruby/controllers/saved_filters_controller.js +129 -0
- data/app/assets/javascripts/lcp_ruby/controllers/search_controller.js +82 -0
- data/app/assets/javascripts/lcp_ruby/controllers/selection_controller.js +33 -0
- data/app/assets/javascripts/lcp_ruby/controllers/sidebar_controller.js +83 -0
- data/app/assets/javascripts/lcp_ruby/controllers/sidebar_toggle_controller.js +66 -0
- data/app/assets/javascripts/lcp_ruby/controllers/slider_controller.js +26 -0
- data/app/assets/javascripts/lcp_ruby/controllers/submenu_controller.js +55 -0
- data/app/assets/javascripts/lcp_ruby/controllers/tom_select_controller.js +168 -0
- data/app/assets/javascripts/lcp_ruby/controllers/tree_index_controller.js +106 -0
- data/app/assets/javascripts/lcp_ruby/controllers/tree_reparent_controller.js +182 -0
- data/app/assets/javascripts/lcp_ruby/controllers/tree_select_controller.js +119 -0
- data/app/assets/javascripts/lcp_ruby/controllers/ui_components_controller.js +135 -0
- data/app/assets/javascripts/lcp_ruby/controllers/zone_tabs_controller.js +66 -0
- data/app/assets/javascripts/lcp_ruby/dev_toolbar.js +494 -0
- data/app/assets/javascripts/lcp_ruby/i18n.js.erb +29 -0
- data/app/assets/javascripts/lcp_ruby/lucide_init.js +24 -0
- data/app/assets/javascripts/lcp_ruby/stimulus_bootstrap.js +7 -0
- data/app/assets/javascripts/lcp_ruby/utils.js +119 -0
- data/app/assets/javascripts/lcp_ruby/xhr_fetch.js +411 -0
- data/app/assets/stylesheets/lcp_ruby/application.css +1940 -0
- data/app/assets/stylesheets/lcp_ruby/dev_toolbar.css +355 -0
- data/app/controllers/concerns/lcp_ruby/dialog_rendering.rb +167 -0
- data/app/controllers/concerns/lcp_ruby/form_action_execution.rb +249 -0
- data/app/controllers/concerns/lcp_ruby/page_authorization.rb +105 -0
- data/app/controllers/concerns/lcp_ruby/zone_resolution.rb +199 -0
- data/app/controllers/lcp_ruby/actions_controller.rb +481 -0
- data/app/controllers/lcp_ruby/application_controller.rb +59 -0
- data/app/controllers/lcp_ruby/approval_tasks_controller.rb +98 -0
- data/app/controllers/lcp_ruby/auth/base_controller.rb +58 -0
- data/app/controllers/lcp_ruby/auth/callbacks_controller.rb +103 -0
- data/app/controllers/lcp_ruby/auth/passwords_controller.rb +15 -0
- data/app/controllers/lcp_ruby/auth/registrations_controller.rb +37 -0
- data/app/controllers/lcp_ruby/auth/sessions_controller.rb +112 -0
- data/app/controllers/lcp_ruby/custom_fields_controller.rb +370 -0
- data/app/controllers/lcp_ruby/dev_toolbar_controller.rb +197 -0
- data/app/controllers/lcp_ruby/dialogs_controller.rb +199 -0
- data/app/controllers/lcp_ruby/health_controller.rb +23 -0
- data/app/controllers/lcp_ruby/impersonation_controller.rb +32 -0
- data/app/controllers/lcp_ruby/landing_controller.rb +49 -0
- data/app/controllers/lcp_ruby/metrics_controller.rb +17 -0
- data/app/controllers/lcp_ruby/resources_controller.rb +2218 -0
- data/app/controllers/lcp_ruby/saved_filters_controller.rb +221 -0
- data/app/helpers/lcp_ruby/condition_helper.rb +87 -0
- data/app/helpers/lcp_ruby/dashboard_helper.rb +45 -0
- data/app/helpers/lcp_ruby/dev_toolbar_helper.rb +17 -0
- data/app/helpers/lcp_ruby/dialog_helper.rb +27 -0
- data/app/helpers/lcp_ruby/display/card_helper.rb +317 -0
- data/app/helpers/lcp_ruby/display_helper.rb +63 -0
- data/app/helpers/lcp_ruby/display_template_helper.rb +100 -0
- data/app/helpers/lcp_ruby/form_helper.rb +1020 -0
- data/app/helpers/lcp_ruby/grouped_query_helper.rb +107 -0
- data/app/helpers/lcp_ruby/i18n_payload_helper.rb +197 -0
- data/app/helpers/lcp_ruby/layout_helper.rb +832 -0
- data/app/helpers/lcp_ruby/link_through_helper.rb +29 -0
- data/app/helpers/lcp_ruby/oidc_button_helper.rb +59 -0
- data/app/helpers/lcp_ruby/search_helper.rb +31 -0
- data/app/helpers/lcp_ruby/tree_helper.rb +140 -0
- data/app/helpers/lcp_ruby/view_slot_helper.rb +33 -0
- data/app/models/lcp_ruby/user.rb +61 -0
- data/app/views/layouts/lcp_ruby/application.html.erb +168 -0
- data/app/views/layouts/lcp_ruby/auth.html.erb +170 -0
- data/app/views/lcp_ruby/auth/callbacks/failure.html.erb +18 -0
- data/app/views/lcp_ruby/auth/mailer/reset_password_instructions.html.erb +9 -0
- data/app/views/lcp_ruby/auth/passwords/edit.html.erb +34 -0
- data/app/views/lcp_ruby/auth/passwords/new.html.erb +24 -0
- data/app/views/lcp_ruby/auth/registrations/edit.html.erb +48 -0
- data/app/views/lcp_ruby/auth/registrations/new.html.erb +46 -0
- data/app/views/lcp_ruby/auth/sessions/new.html.erb +55 -0
- data/app/views/lcp_ruby/auth/shared/_links.html.erb +13 -0
- data/app/views/lcp_ruby/custom_fields/_manage_row.html.erb +82 -0
- data/app/views/lcp_ruby/custom_fields/manage.html.erb +47 -0
- data/app/views/lcp_ruby/dialogs/_dialog_composite_frame.html.erb +87 -0
- data/app/views/lcp_ruby/dialogs/_dialog_frame.html.erb +60 -0
- data/app/views/lcp_ruby/dialogs/_dialog_show_frame.html.erb +14 -0
- data/app/views/lcp_ruby/dialogs/_show_secret.html.erb +10 -0
- data/app/views/lcp_ruby/dialogs/_success.html.erb +1 -0
- data/app/views/lcp_ruby/errors/not_found.html.erb +5 -0
- data/app/views/lcp_ruby/menu_renderers/_user_menu.html.erb +51 -0
- data/app/views/lcp_ruby/menu_renderers/_user_menu_panel.html.erb +32 -0
- data/app/views/lcp_ruby/navigation/_auto_top.html.erb +16 -0
- data/app/views/lcp_ruby/navigation/_both_sidebar.html.erb +1 -0
- data/app/views/lcp_ruby/navigation/_both_top.html.erb +1 -0
- data/app/views/lcp_ruby/navigation/_impersonation_banner.html.erb +14 -0
- data/app/views/lcp_ruby/navigation/_item_content.html.erb +23 -0
- data/app/views/lcp_ruby/navigation/_link_or_button.html.erb +51 -0
- data/app/views/lcp_ruby/navigation/_mobile_header.html.erb +23 -0
- data/app/views/lcp_ruby/navigation/_panel_item.html.erb +32 -0
- data/app/views/lcp_ruby/navigation/_sidebar.html.erb +38 -0
- data/app/views/lcp_ruby/navigation/_sidebar_item.html.erb +38 -0
- data/app/views/lcp_ruby/navigation/_sidebar_toggle.html.erb +32 -0
- data/app/views/lcp_ruby/navigation/_top.html.erb +26 -0
- data/app/views/lcp_ruby/navigation/_top_item.html.erb +112 -0
- data/app/views/lcp_ruby/navigation/_widget_item.html.erb +14 -0
- data/app/views/lcp_ruby/resources/_action_button.html.erb +138 -0
- data/app/views/lcp_ruby/resources/_advanced_filter.html.erb +55 -0
- data/app/views/lcp_ruby/resources/_api_status_banner.html.erb +11 -0
- data/app/views/lcp_ruby/resources/_association_list.html.erb +132 -0
- data/app/views/lcp_ruby/resources/_audit_history.html.erb +66 -0
- data/app/views/lcp_ruby/resources/_batch_toolbar.html.erb +54 -0
- data/app/views/lcp_ruby/resources/_filter_form.html.erb +57 -0
- data/app/views/lcp_ruby/resources/_form.html.erb +73 -0
- data/app/views/lcp_ruby/resources/_form_action_button.html.erb +20 -0
- data/app/views/lcp_ruby/resources/_form_action_dropdown_item.html.erb +17 -0
- data/app/views/lcp_ruby/resources/_form_actions.html.erb +38 -0
- data/app/views/lcp_ruby/resources/_form_section.html.erb +235 -0
- data/app/views/lcp_ruby/resources/_grid_page.html.erb +17 -0
- data/app/views/lcp_ruby/resources/_grouped_index.html.erb +61 -0
- data/app/views/lcp_ruby/resources/_inline_create_form.html.erb +50 -0
- data/app/views/lcp_ruby/resources/_json_items_list.html.erb +77 -0
- data/app/views/lcp_ruby/resources/_json_nested_fields.html.erb +30 -0
- data/app/views/lcp_ruby/resources/_kanban_card.html.erb +31 -0
- data/app/views/lcp_ruby/resources/_kanban_card_body.html.erb +17 -0
- data/app/views/lcp_ruby/resources/_kanban_column.html.erb +33 -0
- data/app/views/lcp_ruby/resources/_kanban_column_header.html.erb +10 -0
- data/app/views/lcp_ruby/resources/_kanban_index.html.erb +17 -0
- data/app/views/lcp_ruby/resources/_nested_field_cell.html.erb +33 -0
- data/app/views/lcp_ruby/resources/_nested_fields.html.erb +26 -0
- data/app/views/lcp_ruby/resources/_nested_row_content.html.erb +65 -0
- data/app/views/lcp_ruby/resources/_scope_filters.html.erb +71 -0
- data/app/views/lcp_ruby/resources/_semantic_index_page.html.erb +162 -0
- data/app/views/lcp_ruby/resources/_semantic_page.html.erb +121 -0
- data/app/views/lcp_ruby/resources/_show_sections.html.erb +128 -0
- data/app/views/lcp_ruby/resources/_table_index.html.erb +169 -0
- data/app/views/lcp_ruby/resources/_tile_card.html.erb +26 -0
- data/app/views/lcp_ruby/resources/_tile_card_body.html.erb +19 -0
- data/app/views/lcp_ruby/resources/_tiles_index.html.erb +15 -0
- data/app/views/lcp_ruby/resources/_transition_button.html.erb +33 -0
- data/app/views/lcp_ruby/resources/_tree_index.html.erb +61 -0
- data/app/views/lcp_ruby/resources/_view_switcher.html.erb +24 -0
- data/app/views/lcp_ruby/resources/edit.html.erb +9 -0
- data/app/views/lcp_ruby/resources/index.html.erb +80 -0
- data/app/views/lcp_ruby/resources/new.html.erb +9 -0
- data/app/views/lcp_ruby/resources/show.html.erb +37 -0
- data/app/views/lcp_ruby/shared/_breadcrumbs.html.erb +15 -0
- data/app/views/lcp_ruby/shared/_custom_partial_error.html.erb +3 -0
- data/app/views/lcp_ruby/shared/_flash_messages.html.erb +19 -0
- data/app/views/lcp_ruby/slots/index/_advanced_filter.html.erb +3 -0
- data/app/views/lcp_ruby/slots/index/_collection_actions.html.erb +50 -0
- data/app/views/lcp_ruby/slots/index/_manage_all.html.erb +4 -0
- data/app/views/lcp_ruby/slots/index/_pagination_footer.html.erb +71 -0
- data/app/views/lcp_ruby/slots/index/_predefined_filters.html.erb +8 -0
- data/app/views/lcp_ruby/slots/index/_saved_filters.html.erb +87 -0
- data/app/views/lcp_ruby/slots/index/_search.html.erb +52 -0
- data/app/views/lcp_ruby/slots/index/_search_parameter.html.erb +72 -0
- data/app/views/lcp_ruby/slots/index/_sort_dropdown.html.erb +21 -0
- data/app/views/lcp_ruby/slots/index/_summary_bar.html.erb +22 -0
- data/app/views/lcp_ruby/slots/index/_view_switcher.html.erb +1 -0
- data/app/views/lcp_ruby/slots/show/_approval_status.html.erb +8 -0
- data/app/views/lcp_ruby/slots/show/_back_to_list.html.erb +1 -0
- data/app/views/lcp_ruby/slots/show/_copy_url.html.erb +5 -0
- data/app/views/lcp_ruby/slots/show/_single_actions.html.erb +4 -0
- data/app/views/lcp_ruby/slots/show/_view_switcher.html.erb +1 -0
- data/app/views/lcp_ruby/widgets/_approval_status.html.erb +150 -0
- data/app/views/lcp_ruby/widgets/_chart.html.erb +36 -0
- data/app/views/lcp_ruby/widgets/_embed.html.erb +13 -0
- data/app/views/lcp_ruby/widgets/_kpi_card.html.erb +29 -0
- data/app/views/lcp_ruby/widgets/_list.html.erb +17 -0
- data/app/views/lcp_ruby/widgets/_presenter_zone.html.erb +84 -0
- data/app/views/lcp_ruby/widgets/_record_show_zone.html.erb +11 -0
- data/app/views/lcp_ruby/widgets/_text.html.erb +3 -0
- data/app/views/lcp_ruby/widgets/_workflow_graph.html.erb +32 -0
- data/app/views/lcp_ruby/zones/_custom_zone.html.erb +16 -0
- data/app/views/lcp_ruby/zones/_error.html.erb +5 -0
- data/app/views/lcp_ruby/zones/_zone_frame.html.erb +25 -0
- data/app/views/lcp_ruby/zones/_zone_search.html.erb +20 -0
- data/config/locales/cs.yml +859 -0
- data/config/locales/en.yml +731 -0
- data/config/routes.rb +119 -0
- data/docs/README.md +225 -0
- data/docs/architecture.md +212 -0
- data/docs/feature-catalog.md +763 -0
- data/docs/feature-catalog.yml +20911 -0
- data/docs/getting-started.md +1187 -0
- data/docs/guides/action-buttons.md +537 -0
- data/docs/guides/adding-locale.md +353 -0
- data/docs/guides/api-backed-models.md +478 -0
- data/docs/guides/attachments.md +399 -0
- data/docs/guides/auditing.md +333 -0
- data/docs/guides/batch-actions.md +342 -0
- data/docs/guides/composite-pages.md +1290 -0
- data/docs/guides/computed-fields.md +350 -0
- data/docs/guides/conditional-rendering.md +832 -0
- data/docs/guides/custom-actions.md +238 -0
- data/docs/guides/custom-fields.md +439 -0
- data/docs/guides/custom-renderers.md +234 -0
- data/docs/guides/custom-types.md +274 -0
- data/docs/guides/dashboards.md +504 -0
- data/docs/guides/debugging/README.md +38 -0
- data/docs/guides/debugging/controllers.md +147 -0
- data/docs/guides/debugging/data.md +165 -0
- data/docs/guides/debugging/metadata.md +143 -0
- data/docs/guides/debugging/models.md +126 -0
- data/docs/guides/debugging/permissions.md +147 -0
- data/docs/guides/debugging/presenters.md +151 -0
- data/docs/guides/developer-tools.md +418 -0
- data/docs/guides/dialogs.md +392 -0
- data/docs/guides/display-types.md +1430 -0
- data/docs/guides/eager-loading.md +230 -0
- data/docs/guides/event-handlers.md +135 -0
- data/docs/guides/export.md +305 -0
- data/docs/guides/extensibility.md +761 -0
- data/docs/guides/groups.md +220 -0
- data/docs/guides/hierarchical-authorization.md +427 -0
- data/docs/guides/host-application.md +556 -0
- data/docs/guides/host-controller-integration.md +473 -0
- data/docs/guides/impersonation.md +83 -0
- data/docs/guides/import.md +165 -0
- data/docs/guides/inherited-permissions.md +459 -0
- data/docs/guides/menu.md +373 -0
- data/docs/guides/monitoring.md +254 -0
- data/docs/guides/oidc-setup.md +399 -0
- data/docs/guides/permission-source.md +205 -0
- data/docs/guides/permissions.md +364 -0
- data/docs/guides/presenters.md +2324 -0
- data/docs/guides/record-aliases.md +303 -0
- data/docs/guides/rendering-extension-points.md +280 -0
- data/docs/guides/role-source.md +288 -0
- data/docs/guides/selectbox.md +516 -0
- data/docs/guides/sequences.md +291 -0
- data/docs/guides/soft-delete.md +460 -0
- data/docs/guides/theming.md +129 -0
- data/docs/guides/tiles.md +383 -0
- data/docs/guides/tree-structures.md +297 -0
- data/docs/guides/userstamps.md +288 -0
- data/docs/guides/view-groups.md +259 -0
- data/docs/guides/view-slots.md +352 -0
- data/docs/guides/virtual-columns.md +810 -0
- data/docs/guides/workflow.md +692 -0
- data/docs/reference/api-backed-models.md +404 -0
- data/docs/reference/api-tokens.md +128 -0
- data/docs/reference/auditing.md +277 -0
- data/docs/reference/boot_lifecycle.md +188 -0
- data/docs/reference/cascading_selects.md +189 -0
- data/docs/reference/condition-operators.md +445 -0
- data/docs/reference/custom-fields.md +483 -0
- data/docs/reference/dialogs.md +286 -0
- data/docs/reference/doctor.md +168 -0
- data/docs/reference/dynamic-references.md +95 -0
- data/docs/reference/eager-loading.md +192 -0
- data/docs/reference/engine-configuration.md +989 -0
- data/docs/reference/export.md +309 -0
- data/docs/reference/forms.md +68 -0
- data/docs/reference/groups.md +176 -0
- data/docs/reference/host-controller-integration.md +342 -0
- data/docs/reference/i18n.md +497 -0
- data/docs/reference/i18n_check.md +351 -0
- data/docs/reference/import.md +260 -0
- data/docs/reference/invariant_check.md +216 -0
- data/docs/reference/menu.md +985 -0
- data/docs/reference/model-dsl.md +1157 -0
- data/docs/reference/models.md +2972 -0
- data/docs/reference/monitoring.md +222 -0
- data/docs/reference/oidc-bearer.md +269 -0
- data/docs/reference/oidc.md +407 -0
- data/docs/reference/page_filters.md +328 -0
- data/docs/reference/pages.md +1375 -0
- data/docs/reference/permission-source.md +185 -0
- data/docs/reference/permissions.md +715 -0
- data/docs/reference/presenter-dsl.md +1719 -0
- data/docs/reference/presenters.md +3627 -0
- data/docs/reference/role-source.md +227 -0
- data/docs/reference/theme-variables.md +139 -0
- data/docs/reference/tree-structures.md +374 -0
- data/docs/reference/types.md +470 -0
- data/docs/reference/view-groups.md +347 -0
- data/docs/reference/view-slots.md +228 -0
- data/docs/reference/virtual_forms.md +196 -0
- data/docs/reference/workflow-approvals.md +387 -0
- data/docs/reference/workflow.md +651 -0
- data/examples/crm/Gemfile +9 -0
- data/examples/crm/Gemfile.lock +417 -0
- data/examples/crm/Rakefile +2 -0
- data/examples/crm/app/actions/activity/complete.rb +20 -0
- data/examples/crm/app/actions/deal/close_won.rb +20 -0
- data/examples/crm/app/assets/config/manifest.js +3 -0
- data/examples/crm/app/controllers/application_controller.rb +9 -0
- data/examples/crm/app/event_handlers/deal/on_stage_change.rb +17 -0
- data/examples/crm/app/lcp_services/computed/weighted_deal_value.rb +13 -0
- data/examples/crm/app/lcp_services/data_providers/active_contacts_count.rb +14 -0
- data/examples/crm/app/lcp_services/data_providers/open_deals_count.rb +14 -0
- data/examples/crm/app/lcp_services/data_providers/pending_activities_count.rb +15 -0
- data/examples/crm/app/lcp_services/data_providers/pipeline_value.rb +27 -0
- data/examples/crm/app/lcp_services/data_providers/won_deals_count.rb +14 -0
- data/examples/crm/app/lcp_services/defaults/thirty_days_out.rb +11 -0
- data/examples/crm/app/lcp_services/transforms/titlecase.rb +11 -0
- data/examples/crm/app/lcp_services/validators/deal_credit_limit.rb +19 -0
- data/examples/crm/app/lcp_services/validators/deal_documents_required.rb +17 -0
- data/examples/crm/app/renderers/conditional_badge.rb +39 -0
- data/examples/crm/bin/rails +4 -0
- data/examples/crm/bin/rake +4 -0
- data/examples/crm/config/application.rb +31 -0
- data/examples/crm/config/boot.rb +2 -0
- data/examples/crm/config/database.yml +12 -0
- data/examples/crm/config/environment.rb +2 -0
- data/examples/crm/config/initializers/lcp_ruby.rb +45 -0
- data/examples/crm/config/lcp_ruby/menu.yml +53 -0
- data/examples/crm/config/lcp_ruby/models/activity.rb +43 -0
- data/examples/crm/config/lcp_ruby/models/city.rb +19 -0
- data/examples/crm/config/lcp_ruby/models/company.rb +65 -0
- data/examples/crm/config/lcp_ruby/models/contact.rb +62 -0
- data/examples/crm/config/lcp_ruby/models/country.rb +22 -0
- data/examples/crm/config/lcp_ruby/models/custom_field_definition.rb +60 -0
- data/examples/crm/config/lcp_ruby/models/deal.rb +85 -0
- data/examples/crm/config/lcp_ruby/models/deal_category.rb +15 -0
- data/examples/crm/config/lcp_ruby/models/gapfree_sequence.rb +17 -0
- data/examples/crm/config/lcp_ruby/models/region.rb +15 -0
- data/examples/crm/config/lcp_ruby/models/saved_filter.rb +50 -0
- data/examples/crm/config/lcp_ruby/pages/activity_quick_log.yml +19 -0
- data/examples/crm/config/lcp_ruby/pages/company_detail.yml +127 -0
- data/examples/crm/config/lcp_ruby/pages/deals_overview.yml +65 -0
- data/examples/crm/config/lcp_ruby/permissions/activity.yml +40 -0
- data/examples/crm/config/lcp_ruby/permissions/custom_field_definition.yml +16 -0
- data/examples/crm/config/lcp_ruby/permissions/deal.yml +54 -0
- data/examples/crm/config/lcp_ruby/permissions/default.yml +16 -0
- data/examples/crm/config/lcp_ruby/permissions/gapfree_sequence.yml +6 -0
- data/examples/crm/config/lcp_ruby/permissions/saved_filter.yml +27 -0
- data/examples/crm/config/lcp_ruby/presenters/activity.rb +140 -0
- data/examples/crm/config/lcp_ruby/presenters/activity_quick_form.rb +36 -0
- data/examples/crm/config/lcp_ruby/presenters/activity_short.rb +16 -0
- data/examples/crm/config/lcp_ruby/presenters/activity_tiles.rb +35 -0
- data/examples/crm/config/lcp_ruby/presenters/city.rb +53 -0
- data/examples/crm/config/lcp_ruby/presenters/company.rb +147 -0
- data/examples/crm/config/lcp_ruby/presenters/company_activities_zone.rb +26 -0
- data/examples/crm/config/lcp_ruby/presenters/company_archive.rb +37 -0
- data/examples/crm/config/lcp_ruby/presenters/company_contacts_zone.rb +22 -0
- data/examples/crm/config/lcp_ruby/presenters/company_deals_zone.rb +36 -0
- data/examples/crm/config/lcp_ruby/presenters/company_short.rb +21 -0
- data/examples/crm/config/lcp_ruby/presenters/company_show_zone.rb +38 -0
- data/examples/crm/config/lcp_ruby/presenters/company_sidebar.rb +15 -0
- data/examples/crm/config/lcp_ruby/presenters/company_tiles.rb +35 -0
- data/examples/crm/config/lcp_ruby/presenters/contact.rb +120 -0
- data/examples/crm/config/lcp_ruby/presenters/contact_quick_form.rb +17 -0
- data/examples/crm/config/lcp_ruby/presenters/contact_short.rb +20 -0
- data/examples/crm/config/lcp_ruby/presenters/contact_tiles.rb +34 -0
- data/examples/crm/config/lcp_ruby/presenters/country.rb +44 -0
- data/examples/crm/config/lcp_ruby/presenters/custom_fields.rb +124 -0
- data/examples/crm/config/lcp_ruby/presenters/deal.rb +181 -0
- data/examples/crm/config/lcp_ruby/presenters/deal_category.rb +46 -0
- data/examples/crm/config/lcp_ruby/presenters/deal_overview.rb +6 -0
- data/examples/crm/config/lcp_ruby/presenters/deal_pipeline.rb +18 -0
- data/examples/crm/config/lcp_ruby/presenters/deal_short.rb +25 -0
- data/examples/crm/config/lcp_ruby/presenters/deal_tiles.rb +48 -0
- data/examples/crm/config/lcp_ruby/presenters/region.rb +42 -0
- data/examples/crm/config/lcp_ruby/presenters/save_filter_dialog.rb +17 -0
- data/examples/crm/config/lcp_ruby/presenters/saved_filters.rb +93 -0
- data/examples/crm/config/lcp_ruby/views/activities.yml +16 -0
- data/examples/crm/config/lcp_ruby/views/cities.yml +10 -0
- data/examples/crm/config/lcp_ruby/views/companies.yml +14 -0
- data/examples/crm/config/lcp_ruby/views/contacts.yml +16 -0
- data/examples/crm/config/lcp_ruby/views/countries.yml +8 -0
- data/examples/crm/config/lcp_ruby/views/custom_fields.rb +9 -0
- data/examples/crm/config/lcp_ruby/views/deal_categories.yml +8 -0
- data/examples/crm/config/lcp_ruby/views/deals.yml +19 -0
- data/examples/crm/config/lcp_ruby/views/pipeline.yml +10 -0
- data/examples/crm/config/lcp_ruby/views/regions.yml +10 -0
- data/examples/crm/config/lcp_ruby/views/saved_filters.yml +7 -0
- data/examples/crm/config/locales/cs.yml +338 -0
- data/examples/crm/config/locales/en.yml +353 -0
- data/examples/crm/config/routes.rb +4 -0
- data/examples/crm/config/storage.yml +3 -0
- data/examples/crm/config.ru +2 -0
- data/examples/crm/db/migrate/20260219104942_create_active_storage_tables.active_storage.rb +57 -0
- data/examples/crm/db/schema.rb +245 -0
- data/examples/crm/db/seeds.rb +1111 -0
- data/examples/crm/erd.md +163 -0
- data/examples/hr/Gemfile +9 -0
- data/examples/hr/Gemfile.lock +419 -0
- data/examples/hr/Rakefile +6 -0
- data/examples/hr/app/actions/asset/assign_asset.rb +20 -0
- data/examples/hr/app/actions/asset/return_asset.rb +20 -0
- data/examples/hr/app/actions/candidate/advance.rb +32 -0
- data/examples/hr/app/actions/candidate/hire.rb +20 -0
- data/examples/hr/app/actions/candidate/reject_candidate.rb +20 -0
- data/examples/hr/app/actions/expense_claim/approve.rb +21 -0
- data/examples/hr/app/actions/expense_claim/reject.rb +21 -0
- data/examples/hr/app/actions/expense_claim/submit.rb +20 -0
- data/examples/hr/app/actions/interview/complete_interview.rb +20 -0
- data/examples/hr/app/actions/leave_request/approve.rb +21 -0
- data/examples/hr/app/actions/leave_request/cancel.rb +20 -0
- data/examples/hr/app/actions/leave_request/reject.rb +21 -0
- data/examples/hr/app/assets/config/manifest.js +1 -0
- data/examples/hr/app/assets/stylesheets/application.css +10 -0
- data/examples/hr/app/condition_services/is_own_org_unit.rb +14 -0
- data/examples/hr/app/condition_services/is_own_record.rb +20 -0
- data/examples/hr/app/controllers/application_controller.rb +15 -0
- data/examples/hr/app/event_handlers/asset_assignment/on_create.rb +24 -0
- data/examples/hr/app/event_handlers/candidate/on_status_change.rb +18 -0
- data/examples/hr/app/event_handlers/leave_request/on_status_change.rb +45 -0
- data/examples/hr/app/helpers/application_helper.rb +2 -0
- data/examples/hr/app/javascript/application.js +1 -0
- data/examples/hr/app/jobs/application_job.rb +7 -0
- data/examples/hr/app/lcp_services/computed/employee_tenure.rb +28 -0
- data/examples/hr/app/lcp_services/computed/leave_remaining.rb +13 -0
- data/examples/hr/app/lcp_services/data_providers/headcount_text.rb +14 -0
- data/examples/hr/app/lcp_services/data_providers/open_positions_count.rb +14 -0
- data/examples/hr/app/lcp_services/data_providers/pending_expenses_count.rb +14 -0
- data/examples/hr/app/lcp_services/data_providers/pending_leaves_count.rb +14 -0
- data/examples/hr/app/lcp_services/defaults/current_year.rb +11 -0
- data/examples/hr/app/lcp_services/transforms/titlecase.rb +11 -0
- data/examples/hr/app/lcp_services/validators/expense_receipt_required.rb +17 -0
- data/examples/hr/app/lcp_services/validators/leave_balance_check.rb +37 -0
- data/examples/hr/app/models/application_record.rb +3 -0
- data/examples/hr/app/views/layouts/application.html.erb +29 -0
- data/examples/hr/app/views/pwa/manifest.json.erb +22 -0
- data/examples/hr/app/views/pwa/service-worker.js +26 -0
- data/examples/hr/bin/brakeman +7 -0
- data/examples/hr/bin/bundler-audit +6 -0
- data/examples/hr/bin/ci +6 -0
- data/examples/hr/bin/dev +2 -0
- data/examples/hr/bin/docker-entrypoint +8 -0
- data/examples/hr/bin/importmap +4 -0
- data/examples/hr/bin/jobs +6 -0
- data/examples/hr/bin/kamal +27 -0
- data/examples/hr/bin/rails +4 -0
- data/examples/hr/bin/rake +4 -0
- data/examples/hr/bin/rubocop +8 -0
- data/examples/hr/bin/setup +35 -0
- data/examples/hr/bin/thrust +5 -0
- data/examples/hr/config/application.rb +31 -0
- data/examples/hr/config/boot.rb +2 -0
- data/examples/hr/config/bundler-audit.yml +5 -0
- data/examples/hr/config/cache.yml +16 -0
- data/examples/hr/config/ci.rb +20 -0
- data/examples/hr/config/credentials.yml.enc +1 -0
- data/examples/hr/config/database.yml +36 -0
- data/examples/hr/config/deploy.yml +119 -0
- data/examples/hr/config/environment.rb +5 -0
- data/examples/hr/config/environments/development.rb +66 -0
- data/examples/hr/config/environments/production.rb +74 -0
- data/examples/hr/config/environments/test.rb +45 -0
- data/examples/hr/config/importmap.rb +3 -0
- data/examples/hr/config/initializers/assets.rb +7 -0
- data/examples/hr/config/initializers/content_security_policy.rb +29 -0
- data/examples/hr/config/initializers/filter_parameter_logging.rb +8 -0
- data/examples/hr/config/initializers/inflections.rb +16 -0
- data/examples/hr/config/initializers/lcp_ruby.rb +18 -0
- data/examples/hr/config/lcp_ruby/menu.yml +86 -0
- data/examples/hr/config/lcp_ruby/models/announcement.rb +33 -0
- data/examples/hr/config/lcp_ruby/models/asset.rb +73 -0
- data/examples/hr/config/lcp_ruby/models/asset_assignment.rb +39 -0
- data/examples/hr/config/lcp_ruby/models/audit_log.yml +57 -0
- data/examples/hr/config/lcp_ruby/models/candidate.rb +68 -0
- data/examples/hr/config/lcp_ruby/models/custom_field_definition.rb +60 -0
- data/examples/hr/config/lcp_ruby/models/dashboard.rb +17 -0
- data/examples/hr/config/lcp_ruby/models/document.rb +38 -0
- data/examples/hr/config/lcp_ruby/models/employee.rb +128 -0
- data/examples/hr/config/lcp_ruby/models/employee_skill.rb +29 -0
- data/examples/hr/config/lcp_ruby/models/expense_claim.rb +70 -0
- data/examples/hr/config/lcp_ruby/models/goal.rb +48 -0
- data/examples/hr/config/lcp_ruby/models/group.rb +37 -0
- data/examples/hr/config/lcp_ruby/models/group_membership.rb +26 -0
- data/examples/hr/config/lcp_ruby/models/interview.rb +54 -0
- data/examples/hr/config/lcp_ruby/models/job_posting.rb +67 -0
- data/examples/hr/config/lcp_ruby/models/leave_balance.rb +31 -0
- data/examples/hr/config/lcp_ruby/models/leave_request.rb +52 -0
- data/examples/hr/config/lcp_ruby/models/leave_type.rb +35 -0
- data/examples/hr/config/lcp_ruby/models/organization_unit.rb +42 -0
- data/examples/hr/config/lcp_ruby/models/performance_review.rb +59 -0
- data/examples/hr/config/lcp_ruby/models/position.rb +43 -0
- data/examples/hr/config/lcp_ruby/models/skill.rb +27 -0
- data/examples/hr/config/lcp_ruby/models/training_course.rb +53 -0
- data/examples/hr/config/lcp_ruby/models/training_enrollment.rb +35 -0
- data/examples/hr/config/lcp_ruby/pages/dashboard.yml +101 -0
- data/examples/hr/config/lcp_ruby/permissions/announcement.yml +25 -0
- data/examples/hr/config/lcp_ruby/permissions/asset.yml +35 -0
- data/examples/hr/config/lcp_ruby/permissions/audit_log.yml +28 -0
- data/examples/hr/config/lcp_ruby/permissions/candidate.yml +25 -0
- data/examples/hr/config/lcp_ruby/permissions/custom_field_definition.yml +28 -0
- data/examples/hr/config/lcp_ruby/permissions/dashboard.yml +25 -0
- data/examples/hr/config/lcp_ruby/permissions/default.yml +25 -0
- data/examples/hr/config/lcp_ruby/permissions/document.yml +37 -0
- data/examples/hr/config/lcp_ruby/permissions/employee.yml +55 -0
- data/examples/hr/config/lcp_ruby/permissions/expense_claim.yml +45 -0
- data/examples/hr/config/lcp_ruby/permissions/group.yml +27 -0
- data/examples/hr/config/lcp_ruby/permissions/job_posting.yml +34 -0
- data/examples/hr/config/lcp_ruby/permissions/leave_request.yml +45 -0
- data/examples/hr/config/lcp_ruby/permissions/performance_review.yml +42 -0
- data/examples/hr/config/lcp_ruby/presenters/announcement.rb +47 -0
- data/examples/hr/config/lcp_ruby/presenters/asset.rb +69 -0
- data/examples/hr/config/lcp_ruby/presenters/asset_assignment.rb +47 -0
- data/examples/hr/config/lcp_ruby/presenters/audit_logs.yml +43 -0
- data/examples/hr/config/lcp_ruby/presenters/candidate.rb +71 -0
- data/examples/hr/config/lcp_ruby/presenters/custom_fields.rb +124 -0
- data/examples/hr/config/lcp_ruby/presenters/dashboard.rb +37 -0
- data/examples/hr/config/lcp_ruby/presenters/document.rb +46 -0
- data/examples/hr/config/lcp_ruby/presenters/employee.rb +167 -0
- data/examples/hr/config/lcp_ruby/presenters/employee_archive.rb +38 -0
- data/examples/hr/config/lcp_ruby/presenters/employee_directory.rb +27 -0
- data/examples/hr/config/lcp_ruby/presenters/employee_skill.rb +57 -0
- data/examples/hr/config/lcp_ruby/presenters/expense_claim.rb +76 -0
- data/examples/hr/config/lcp_ruby/presenters/goal.rb +60 -0
- data/examples/hr/config/lcp_ruby/presenters/group.rb +48 -0
- data/examples/hr/config/lcp_ruby/presenters/interview.rb +59 -0
- data/examples/hr/config/lcp_ruby/presenters/job_posting.rb +73 -0
- data/examples/hr/config/lcp_ruby/presenters/leave_balance.rb +50 -0
- data/examples/hr/config/lcp_ruby/presenters/leave_request.rb +89 -0
- data/examples/hr/config/lcp_ruby/presenters/leave_type.rb +52 -0
- data/examples/hr/config/lcp_ruby/presenters/organization_unit.rb +56 -0
- data/examples/hr/config/lcp_ruby/presenters/performance_review.rb +87 -0
- data/examples/hr/config/lcp_ruby/presenters/position.rb +54 -0
- data/examples/hr/config/lcp_ruby/presenters/skill.rb +45 -0
- data/examples/hr/config/lcp_ruby/presenters/training_course.rb +61 -0
- data/examples/hr/config/lcp_ruby/presenters/training_enrollment.rb +49 -0
- data/examples/hr/config/lcp_ruby/views/announcements.yml +8 -0
- data/examples/hr/config/lcp_ruby/views/asset_assignments.yml +10 -0
- data/examples/hr/config/lcp_ruby/views/assets.yml +8 -0
- data/examples/hr/config/lcp_ruby/views/audit_logs.yml +8 -0
- data/examples/hr/config/lcp_ruby/views/candidates.yml +8 -0
- data/examples/hr/config/lcp_ruby/views/custom_fields.yml +8 -0
- data/examples/hr/config/lcp_ruby/views/dashboard.yml +6 -0
- data/examples/hr/config/lcp_ruby/views/documents.yml +10 -0
- data/examples/hr/config/lcp_ruby/views/employee_skills.yml +10 -0
- data/examples/hr/config/lcp_ruby/views/employees.yml +14 -0
- data/examples/hr/config/lcp_ruby/views/expense_claims.yml +10 -0
- data/examples/hr/config/lcp_ruby/views/goals.yml +10 -0
- data/examples/hr/config/lcp_ruby/views/groups.yml +8 -0
- data/examples/hr/config/lcp_ruby/views/interviews.yml +8 -0
- data/examples/hr/config/lcp_ruby/views/job_postings.yml +6 -0
- data/examples/hr/config/lcp_ruby/views/leave_balances.yml +10 -0
- data/examples/hr/config/lcp_ruby/views/leave_requests.yml +10 -0
- data/examples/hr/config/lcp_ruby/views/leave_types.yml +8 -0
- data/examples/hr/config/lcp_ruby/views/organization_units.yml +8 -0
- data/examples/hr/config/lcp_ruby/views/performance_reviews.yml +10 -0
- data/examples/hr/config/lcp_ruby/views/positions.yml +8 -0
- data/examples/hr/config/lcp_ruby/views/skills.yml +8 -0
- data/examples/hr/config/lcp_ruby/views/training_courses.yml +8 -0
- data/examples/hr/config/lcp_ruby/views/training_enrollments.yml +10 -0
- data/examples/hr/config/locales/cs.yml +496 -0
- data/examples/hr/config/locales/en.yml +740 -0
- data/examples/hr/config/locales/sk.yml +496 -0
- data/examples/hr/config/puma.rb +42 -0
- data/examples/hr/config/queue.yml +18 -0
- data/examples/hr/config/recurring.yml +15 -0
- data/examples/hr/config/routes.rb +4 -0
- data/examples/hr/config/storage.yml +27 -0
- data/examples/hr/config.ru +6 -0
- data/examples/hr/db/cache_schema.rb +12 -0
- data/examples/hr/db/migrate/20260303202825_create_active_storage_tables.active_storage.rb +57 -0
- data/examples/hr/db/queue_schema.rb +129 -0
- data/examples/hr/db/schema.rb +588 -0
- data/examples/hr/db/seeds.rb +932 -0
- data/examples/hr/erd.md +396 -0
- data/examples/hr/public/400.html +135 -0
- data/examples/hr/public/404.html +135 -0
- data/examples/hr/public/406-unsupported-browser.html +135 -0
- data/examples/hr/public/422.html +135 -0
- data/examples/hr/public/500.html +135 -0
- data/examples/hr/public/icon.svg +3 -0
- data/examples/hr/public/robots.txt +1 -0
- data/examples/showcase/Gemfile +15 -0
- data/examples/showcase/Gemfile.lock +425 -0
- data/examples/showcase/Rakefile +2 -0
- data/examples/showcase/app/actions/showcase_batch_task/assign_batch.rb +20 -0
- data/examples/showcase/app/actions/showcase_batch_task/close_task.rb +21 -0
- data/examples/showcase/app/actions/showcase_condition/approve.rb +20 -0
- data/examples/showcase/app/actions/showcase_permission/lock.rb +20 -0
- data/examples/showcase/app/assets/config/manifest.js +3 -0
- data/examples/showcase/app/assets/stylesheets/application.css +27 -0
- data/examples/showcase/app/condition_services/budget_threshold.rb +16 -0
- data/examples/showcase/app/condition_services/overdue_check.rb +11 -0
- data/examples/showcase/app/controllers/application_controller.rb +2 -0
- data/examples/showcase/app/controllers/docs_controller.rb +48 -0
- data/examples/showcase/app/controllers/host_inventory_items_managed_controller.rb +90 -0
- data/examples/showcase/app/controllers/host_inventory_items_report_controller.rb +39 -0
- data/examples/showcase/app/controllers/host_inventory_items_wizard_controller.rb +50 -0
- data/examples/showcase/app/data_providers/showcase_amount_provider.rb +52 -0
- data/examples/showcase/app/data_providers/weather_station_provider.rb +140 -0
- data/examples/showcase/app/event_handlers/showcase_model/on_status_change.rb +17 -0
- data/examples/showcase/app/event_handlers/showcase_permission/on_status_change.rb +17 -0
- data/examples/showcase/app/event_handlers/showcase_workflow/log_review_exit.rb +16 -0
- data/examples/showcase/app/event_handlers/showcase_workflow/notify_reviewers.rb +15 -0
- data/examples/showcase/app/event_handlers/showcase_workflow/request_submitted.rb +15 -0
- data/examples/showcase/app/lcp_metrics/showcase_metrics.rb +31 -0
- data/examples/showcase/app/lcp_services/computed/showcase_score.rb +18 -0
- data/examples/showcase/app/lcp_services/computed/showcase_total.rb +13 -0
- data/examples/showcase/app/lcp_services/defaults/one_week_from_now.rb +11 -0
- data/examples/showcase/app/lcp_services/menu_items/recent_announcements.rb +36 -0
- data/examples/showcase/app/lcp_services/virtual_columns/project_health.rb +26 -0
- data/examples/showcase/app/model_extensions/lcp_error_log_extension.rb +12 -0
- data/examples/showcase/app/models/host_inventory_item.rb +20 -0
- data/examples/showcase/app/models/platform_profile.rb +27 -0
- data/examples/showcase/app/models/platform_user.rb +5 -0
- data/examples/showcase/app/views/docs/show.html.erb +19 -0
- data/examples/showcase/app/views/host_inventory_items_report/index.html.erb +61 -0
- data/examples/showcase/app/views/host_inventory_items_report/show.html.erb +39 -0
- data/examples/showcase/app/views/layouts/docs.html.erb +46 -0
- data/examples/showcase/app/views/showcase/menu_renderers/_status_pill.html.erb +17 -0
- data/examples/showcase/app/views/showcase_custom/_activity_timeline.html.erb +37 -0
- data/examples/showcase/app/views/showcase_custom/_card_index.html.erb +74 -0
- data/examples/showcase/app/views/showcase_custom/_detail_show.html.erb +115 -0
- data/examples/showcase/app/views/showcase_custom/_location_map.html.erb +29 -0
- data/examples/showcase/app/views/showcase_custom/_location_view.html.erb +34 -0
- data/examples/showcase/app/views/showcase_custom/_quick_stats.html.erb +50 -0
- data/examples/showcase/app/views/showcase_custom/_stats_sidebar.html.erb +42 -0
- data/examples/showcase/app/views/showcase_custom/_tags_editor.html.erb +48 -0
- data/examples/showcase/bin/rails +4 -0
- data/examples/showcase/bin/rake +4 -0
- data/examples/showcase/config/application.rb +37 -0
- data/examples/showcase/config/boot.rb +2 -0
- data/examples/showcase/config/database.yml +12 -0
- data/examples/showcase/config/environment.rb +2 -0
- data/examples/showcase/config/initializers/devise.rb +5 -0
- data/examples/showcase/config/initializers/lcp_ruby.rb +175 -0
- data/examples/showcase/config/lcp_ruby/auth.yml +60 -0
- data/examples/showcase/config/lcp_ruby/jobs/data_import.yml +7 -0
- data/examples/showcase/config/lcp_ruby/jobs/showcase_cleanup.yml +11 -0
- data/examples/showcase/config/lcp_ruby/jobs/showcase_event_triggered.yml +11 -0
- data/examples/showcase/config/lcp_ruby/jobs/showcase_multi_step.yml +9 -0
- data/examples/showcase/config/lcp_ruby/jobs/showcase_webhook.yml +13 -0
- data/examples/showcase/config/lcp_ruby/menu.yml +249 -0
- data/examples/showcase/config/lcp_ruby/models/_base_document.rb +26 -0
- data/examples/showcase/config/lcp_ruby/models/_categorized_document.rb +19 -0
- data/examples/showcase/config/lcp_ruby/models/_contactable.rb +20 -0
- data/examples/showcase/config/lcp_ruby/models/api_token.rb +23 -0
- data/examples/showcase/config/lcp_ruby/models/article.rb +49 -0
- data/examples/showcase/config/lcp_ruby/models/article_tag.rb +10 -0
- data/examples/showcase/config/lcp_ruby/models/author.rb +16 -0
- data/examples/showcase/config/lcp_ruby/models/batch_operation.yml +79 -0
- data/examples/showcase/config/lcp_ruby/models/batch_operation_item.yml +45 -0
- data/examples/showcase/config/lcp_ruby/models/category.rb +23 -0
- data/examples/showcase/config/lcp_ruby/models/comment.rb +21 -0
- data/examples/showcase/config/lcp_ruby/models/custom_field_definition.rb +59 -0
- data/examples/showcase/config/lcp_ruby/models/department.rb +32 -0
- data/examples/showcase/config/lcp_ruby/models/employee.rb +52 -0
- data/examples/showcase/config/lcp_ruby/models/employee_emergency_contact.rb +24 -0
- data/examples/showcase/config/lcp_ruby/models/employee_profile.rb +18 -0
- data/examples/showcase/config/lcp_ruby/models/employee_skill.rb +10 -0
- data/examples/showcase/config/lcp_ruby/models/export_log.yml +27 -0
- data/examples/showcase/config/lcp_ruby/models/export_profile.yml +37 -0
- data/examples/showcase/config/lcp_ruby/models/feature.rb +76 -0
- data/examples/showcase/config/lcp_ruby/models/gapfree_sequence.rb +17 -0
- data/examples/showcase/config/lcp_ruby/models/group.rb +26 -0
- data/examples/showcase/config/lcp_ruby/models/group_membership.rb +21 -0
- data/examples/showcase/config/lcp_ruby/models/group_role_mapping.rb +14 -0
- data/examples/showcase/config/lcp_ruby/models/host_inventory_item.yml +111 -0
- data/examples/showcase/config/lcp_ruby/models/import_profile.rb +30 -0
- data/examples/showcase/config/lcp_ruby/models/import_row.rb +32 -0
- data/examples/showcase/config/lcp_ruby/models/ingredient_def.rb +11 -0
- data/examples/showcase/config/lcp_ruby/models/lcp_error_log.yml +61 -0
- data/examples/showcase/config/lcp_ruby/models/page_config.rb +19 -0
- data/examples/showcase/config/lcp_ruby/models/permission_config.rb +21 -0
- data/examples/showcase/config/lcp_ruby/models/pipeline.rb +15 -0
- data/examples/showcase/config/lcp_ruby/models/pipeline_stage.rb +17 -0
- data/examples/showcase/config/lcp_ruby/models/platform_profile.rb +104 -0
- data/examples/showcase/config/lcp_ruby/models/profile_setting.rb +17 -0
- data/examples/showcase/config/lcp_ruby/models/profile_tag.rb +19 -0
- data/examples/showcase/config/lcp_ruby/models/project.rb +23 -0
- data/examples/showcase/config/lcp_ruby/models/role.rb +24 -0
- data/examples/showcase/config/lcp_ruby/models/saved_filter.rb +50 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_aggregate.rb +93 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_aggregate_company.rb +14 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_aggregate_item.rb +25 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_announcement.rb +20 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_array.rb +45 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_attachment.rb +49 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_audit_log.yml +44 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_audited_record.rb +20 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_batch_task.rb +27 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_business_unit.rb +26 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_condition.rb +24 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_condition_category.rb +16 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_condition_task.rb +16 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_condition_threshold.rb +13 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_contact.rb +22 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_custom_render.rb +38 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_delete_reason.rb +11 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_division.rb +31 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_extensibility.rb +25 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_field.rb +53 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_form.rb +23 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_form_action.rb +38 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_grade.rb +18 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_hr_employee.rb +90 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_item_class.rb +31 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_job_execution.rb +49 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_memo.rb +23 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_model.rb +74 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_organization.rb +31 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_permission.rb +30 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_person.rb +23 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_positioning.rb +19 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_quick_note.rb +13 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_recipe.rb +17 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_report.rb +32 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_school_class.rb +17 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_search.rb +84 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_sequence.rb +46 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_soft_delete.rb +30 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_soft_delete_item.rb +21 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_student.rb +17 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_type_default.rb +49 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_userstamps.rb +26 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_virtual_field.rb +68 -0
- data/examples/showcase/config/lcp_ruby/models/showcase_workflow.rb +54 -0
- data/examples/showcase/config/lcp_ruby/models/skill.rb +22 -0
- data/examples/showcase/config/lcp_ruby/models/tag.rb +16 -0
- data/examples/showcase/config/lcp_ruby/models/user.rb +54 -0
- data/examples/showcase/config/lcp_ruby/models/weather_station.rb +20 -0
- data/examples/showcase/config/lcp_ruby/models/workflow_approval_request.yml +77 -0
- data/examples/showcase/config/lcp_ruby/models/workflow_approval_step.yml +56 -0
- data/examples/showcase/config/lcp_ruby/models/workflow_approval_task.yml +51 -0
- data/examples/showcase/config/lcp_ruby/models/workflow_audit_log.yml +74 -0
- data/examples/showcase/config/lcp_ruby/pages/article_detail.yml +32 -0
- data/examples/showcase/config/lcp_ruby/pages/author_detail.yml +27 -0
- data/examples/showcase/config/lcp_ruby/pages/category_detail.yml +24 -0
- data/examples/showcase/config/lcp_ruby/pages/chart_showcase.yml +151 -0
- data/examples/showcase/config/lcp_ruby/pages/department_detail.yml +55 -0
- data/examples/showcase/config/lcp_ruby/pages/department_explorer.yml +60 -0
- data/examples/showcase/config/lcp_ruby/pages/employee_overview.yml +106 -0
- data/examples/showcase/config/lcp_ruby/pages/employee_transfer_dialog.yml +24 -0
- data/examples/showcase/config/lcp_ruby/pages/hr_turnover_dashboard.yml +288 -0
- data/examples/showcase/config/lcp_ruby/pages/main_dashboard.yml +142 -0
- data/examples/showcase/config/lcp_ruby/pages/monitoring_dashboard.yml +58 -0
- data/examples/showcase/config/lcp_ruby/pages/pipeline_detail.yml +16 -0
- data/examples/showcase/config/lcp_ruby/pages/showcase_custom_zones.yml +39 -0
- data/examples/showcase/config/lcp_ruby/pages/showcase_form_action_dialog.yml +11 -0
- data/examples/showcase/config/lcp_ruby/pages/workflow_request_detail.yml +34 -0
- data/examples/showcase/config/lcp_ruby/permissions/api_token.yml +26 -0
- data/examples/showcase/config/lcp_ruby/permissions/batch_operation.yml +36 -0
- data/examples/showcase/config/lcp_ruby/permissions/custom_field_definition.yml +15 -0
- data/examples/showcase/config/lcp_ruby/permissions/default.yml +28 -0
- data/examples/showcase/config/lcp_ruby/permissions/export_log.yml +23 -0
- data/examples/showcase/config/lcp_ruby/permissions/export_profile.yml +25 -0
- data/examples/showcase/config/lcp_ruby/permissions/gapfree_sequence.yml +6 -0
- data/examples/showcase/config/lcp_ruby/permissions/group.yml +20 -0
- data/examples/showcase/config/lcp_ruby/permissions/group_membership.yml +20 -0
- data/examples/showcase/config/lcp_ruby/permissions/group_role_mapping.yml +20 -0
- data/examples/showcase/config/lcp_ruby/permissions/host_inventory_item.yml +34 -0
- data/examples/showcase/config/lcp_ruby/permissions/import_profile.yml +29 -0
- data/examples/showcase/config/lcp_ruby/permissions/import_row.yml +17 -0
- data/examples/showcase/config/lcp_ruby/permissions/lcp_error_log.yml +8 -0
- data/examples/showcase/config/lcp_ruby/permissions/page_config.yml +15 -0
- data/examples/showcase/config/lcp_ruby/permissions/permission_config.yml +15 -0
- data/examples/showcase/config/lcp_ruby/permissions/platform_profile.yml +23 -0
- data/examples/showcase/config/lcp_ruby/permissions/profile_setting.yml +23 -0
- data/examples/showcase/config/lcp_ruby/permissions/profile_tag.yml +23 -0
- data/examples/showcase/config/lcp_ruby/permissions/role.yml +20 -0
- data/examples/showcase/config/lcp_ruby/permissions/saved_filter.yml +39 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_announcement.yml +22 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_audit_log.yml +15 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_audited_record.yml +15 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_batch_task.yml +31 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_condition.yml +54 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_contact.yml +21 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_custom_render.yml +21 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_delete_reason.yml +12 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_form_action.yml +26 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_grade.yml +33 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_job_execution.yml +23 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_permission.yml +47 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_quick_note.yml +12 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_school_class.yml +37 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_student.yml +43 -0
- data/examples/showcase/config/lcp_ruby/permissions/showcase_workflow.yml +34 -0
- data/examples/showcase/config/lcp_ruby/permissions/workflow_approval_request.yml +18 -0
- data/examples/showcase/config/lcp_ruby/permissions/workflow_approval_step.yml +18 -0
- data/examples/showcase/config/lcp_ruby/permissions/workflow_approval_task.yml +18 -0
- data/examples/showcase/config/lcp_ruby/permissions/workflow_audit_log.yml +19 -0
- data/examples/showcase/config/lcp_ruby/presenters/announcements.rb +59 -0
- data/examples/showcase/config/lcp_ruby/presenters/approval_requests.rb +69 -0
- data/examples/showcase/config/lcp_ruby/presenters/approval_steps.rb +59 -0
- data/examples/showcase/config/lcp_ruby/presenters/approval_tasks.rb +65 -0
- data/examples/showcase/config/lcp_ruby/presenters/article_comments_zone.rb +12 -0
- data/examples/showcase/config/lcp_ruby/presenters/article_related_zone.rb +15 -0
- data/examples/showcase/config/lcp_ruby/presenters/articles.rb +149 -0
- data/examples/showcase/config/lcp_ruby/presenters/articles_tiles.rb +30 -0
- data/examples/showcase/config/lcp_ruby/presenters/author_articles_zone.rb +12 -0
- data/examples/showcase/config/lcp_ruby/presenters/author_show_zone.rb +12 -0
- data/examples/showcase/config/lcp_ruby/presenters/authors.rb +39 -0
- data/examples/showcase/config/lcp_ruby/presenters/batch_operation_items.yml +45 -0
- data/examples/showcase/config/lcp_ruby/presenters/batch_operations.yml +66 -0
- data/examples/showcase/config/lcp_ruby/presenters/categories.rb +50 -0
- data/examples/showcase/config/lcp_ruby/presenters/category_articles_zone.rb +20 -0
- data/examples/showcase/config/lcp_ruby/presenters/category_children_zone.rb +10 -0
- data/examples/showcase/config/lcp_ruby/presenters/comment_quick_add_dialog.rb +15 -0
- data/examples/showcase/config/lcp_ruby/presenters/custom_fields.rb +124 -0
- data/examples/showcase/config/lcp_ruby/presenters/dashboard_employees.rb +16 -0
- data/examples/showcase/config/lcp_ruby/presenters/delete_reason_dialog.rb +13 -0
- data/examples/showcase/config/lcp_ruby/presenters/departments.rb +55 -0
- data/examples/showcase/config/lcp_ruby/presenters/dept_add_employee_dialog.rb +19 -0
- data/examples/showcase/config/lcp_ruby/presenters/dept_children_zone.rb +10 -0
- data/examples/showcase/config/lcp_ruby/presenters/dept_detail_zone.rb +14 -0
- data/examples/showcase/config/lcp_ruby/presenters/dept_employees_zone.rb +16 -0
- data/examples/showcase/config/lcp_ruby/presenters/dept_list_selection_zone.rb +19 -0
- data/examples/showcase/config/lcp_ruby/presenters/employee_overview_index_zone.rb +36 -0
- data/examples/showcase/config/lcp_ruby/presenters/employee_quick_add_dialog.rb +14 -0
- data/examples/showcase/config/lcp_ruby/presenters/employee_show_zone.rb +20 -0
- data/examples/showcase/config/lcp_ruby/presenters/employee_transfer_form_zone.rb +19 -0
- data/examples/showcase/config/lcp_ruby/presenters/employees.rb +165 -0
- data/examples/showcase/config/lcp_ruby/presenters/employees_tiles.rb +33 -0
- data/examples/showcase/config/lcp_ruby/presenters/export_logs.yml +58 -0
- data/examples/showcase/config/lcp_ruby/presenters/export_profiles.yml +70 -0
- data/examples/showcase/config/lcp_ruby/presenters/extensibility_quick_edit_dialog.rb +13 -0
- data/examples/showcase/config/lcp_ruby/presenters/feature_kanban.rb +30 -0
- data/examples/showcase/config/lcp_ruby/presenters/features_card.rb +179 -0
- data/examples/showcase/config/lcp_ruby/presenters/features_hub.rb +44 -0
- data/examples/showcase/config/lcp_ruby/presenters/features_table.rb +37 -0
- data/examples/showcase/config/lcp_ruby/presenters/features_tiles.rb +48 -0
- data/examples/showcase/config/lcp_ruby/presenters/group_memberships.rb +54 -0
- data/examples/showcase/config/lcp_ruby/presenters/group_role_mappings.rb +48 -0
- data/examples/showcase/config/lcp_ruby/presenters/groups.rb +74 -0
- data/examples/showcase/config/lcp_ruby/presenters/host_inventory_items.rb +99 -0
- data/examples/showcase/config/lcp_ruby/presenters/host_inventory_items_managed.rb +84 -0
- data/examples/showcase/config/lcp_ruby/presenters/host_inventory_items_report.rb +40 -0
- data/examples/showcase/config/lcp_ruby/presenters/host_inventory_items_wizard.rb +76 -0
- data/examples/showcase/config/lcp_ruby/presenters/import_profiles.rb +61 -0
- data/examples/showcase/config/lcp_ruby/presenters/import_rows.rb +39 -0
- data/examples/showcase/config/lcp_ruby/presenters/lcp_error_logs.yml +46 -0
- data/examples/showcase/config/lcp_ruby/presenters/my_api_tokens.rb +35 -0
- data/examples/showcase/config/lcp_ruby/presenters/my_api_tokens_create_dialog.rb +27 -0
- data/examples/showcase/config/lcp_ruby/presenters/my_employee_profile.rb +24 -0
- data/examples/showcase/config/lcp_ruby/presenters/my_settings.rb +50 -0
- data/examples/showcase/config/lcp_ruby/presenters/page_configs.rb +56 -0
- data/examples/showcase/config/lcp_ruby/presenters/permission_configs.rb +58 -0
- data/examples/showcase/config/lcp_ruby/presenters/pipeline_edit_zone.rb +11 -0
- data/examples/showcase/config/lcp_ruby/presenters/pipeline_stages.rb +51 -0
- data/examples/showcase/config/lcp_ruby/presenters/pipeline_stages_zone.rb +11 -0
- data/examples/showcase/config/lcp_ruby/presenters/pipelines.rb +40 -0
- data/examples/showcase/config/lcp_ruby/presenters/platform_profiles.rb +90 -0
- data/examples/showcase/config/lcp_ruby/presenters/projects.rb +58 -0
- data/examples/showcase/config/lcp_ruby/presenters/quick_note_dialog.rb +14 -0
- data/examples/showcase/config/lcp_ruby/presenters/roles.rb +60 -0
- data/examples/showcase/config/lcp_ruby/presenters/save_filter_dialog.rb +17 -0
- data/examples/showcase/config/lcp_ruby/presenters/saved_filters.rb +94 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_aggregate_items.rb +61 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_aggregates.rb +115 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_aggregates_tiles.rb +44 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_amount_kanban.rb +31 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_arrays.rb +140 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_attachments.rb +66 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_audit_logs.rb +46 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_audited_records.rb +58 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_batch_tasks.rb +97 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_batch_tasks_archive.rb +52 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_business_units.rb +43 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_conditions.rb +195 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_contacts.rb +82 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_custom_render_with.rb +50 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_custom_sections.rb +88 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_custom_zones_main.rb +75 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_divisions.rb +53 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_extensibility.rb +48 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_fields_card.rb +34 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_fields_table.rb +128 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_fields_tiles.rb +42 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_form_action_dialog.rb +27 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_form_actions.rb +132 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_form_actions_overflow.rb +76 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_forms.rb +110 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_grades.rb +38 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_hr_employees.rb +84 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_item_classes.rb +120 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_job_executions.rb +150 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_memos.rb +96 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_models.rb +112 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_organizations.rb +106 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_people.rb +97 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_permissions.rb +84 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_positioning.rb +61 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_recipes.rb +105 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_recipes_raw.rb +32 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_reports.rb +109 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_school_classes.rb +34 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_searches.rb +226 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_sequences.rb +67 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_soft_delete.rb +88 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_soft_delete_archive.rb +52 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_soft_delete_items.rb +47 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_students.rb +33 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_type_defaults.rb +92 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_userstamps.rb +76 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_virtual_fields.rb +104 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_workflow_admin.rb +24 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_workflow_kanban.rb +36 -0
- data/examples/showcase/config/lcp_ruby/presenters/showcase_workflows.rb +103 -0
- data/examples/showcase/config/lcp_ruby/presenters/tags.rb +35 -0
- data/examples/showcase/config/lcp_ruby/presenters/users.rb +61 -0
- data/examples/showcase/config/lcp_ruby/presenters/weather_stations.rb +60 -0
- data/examples/showcase/config/lcp_ruby/presenters/workflow_audit_logs.rb +76 -0
- data/examples/showcase/config/lcp_ruby/presenters/workflow_request_audit_zone.rb +28 -0
- data/examples/showcase/config/lcp_ruby/theme.yml +2 -0
- data/examples/showcase/config/lcp_ruby/types/currency.yml +15 -0
- data/examples/showcase/config/lcp_ruby/types/percentage.yml +16 -0
- data/examples/showcase/config/lcp_ruby/types/rating.yml +20 -0
- data/examples/showcase/config/lcp_ruby/views/announcements.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/approval_requests.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/approval_steps.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/approval_tasks.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/articles.yml +12 -0
- data/examples/showcase/config/lcp_ruby/views/authors.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/batch_operation_items.yml +6 -0
- data/examples/showcase/config/lcp_ruby/views/batch_operations.yml +10 -0
- data/examples/showcase/config/lcp_ruby/views/categories.yml +9 -0
- data/examples/showcase/config/lcp_ruby/views/custom_fields.rb +8 -0
- data/examples/showcase/config/lcp_ruby/views/dashboard.yml +10 -0
- data/examples/showcase/config/lcp_ruby/views/department_explorer.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/departments.yml +9 -0
- data/examples/showcase/config/lcp_ruby/views/employee_overview.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/employees.yml +12 -0
- data/examples/showcase/config/lcp_ruby/views/export_logs.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/export_profiles.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/features.yml +19 -0
- data/examples/showcase/config/lcp_ruby/views/group_memberships.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/group_role_mappings.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/groups.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/host_inventory_items.yml +16 -0
- data/examples/showcase/config/lcp_ruby/views/hr_turnover_dashboard.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/import_profiles.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/import_rows.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/lcp_error_logs.yml +10 -0
- data/examples/showcase/config/lcp_ruby/views/monitoring.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/my_api_tokens.rb +9 -0
- data/examples/showcase/config/lcp_ruby/views/page_configs.yml +11 -0
- data/examples/showcase/config/lcp_ruby/views/permission_configs.yml +11 -0
- data/examples/showcase/config/lcp_ruby/views/pipeline_stages.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/pipelines.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/platform_profiles.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/projects.yml +9 -0
- data/examples/showcase/config/lcp_ruby/views/roles.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/saved_filters.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_aggregate_items.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_aggregates.yml +10 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_arrays.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_attachments.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_audit_logs.yml +11 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_audited_records.yml +10 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_batch_tasks.yml +10 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_business_units.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_conditions.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_contacts.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_custom_render_with.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_custom_sections.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_custom_zones.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_divisions.yml +9 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_extensibility.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_fields.yml +13 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_form_actions.yml +10 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_forms.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_grades.yml +9 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_hr_employees.yml +9 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_item_classes.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_job_executions.yml +9 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_memos.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_models.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_organizations.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_people.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_permissions.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_positioning.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_recipes.yml +10 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_reports.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_school_classes.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_searches.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_sequences.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_soft_delete.yml +10 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_soft_delete_items.yml +8 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_students.yml +9 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_userstamps.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_virtual_fields.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/showcase_workflows.yml +16 -0
- data/examples/showcase/config/lcp_ruby/views/tags.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/users.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/weather_stations.yml +7 -0
- data/examples/showcase/config/lcp_ruby/views/workflow_audit_logs.yml +9 -0
- data/examples/showcase/config/lcp_ruby/workflows/showcase_form_action.rb +48 -0
- data/examples/showcase/config/lcp_ruby/workflows/showcase_workflow.rb +199 -0
- data/examples/showcase/config/locales/cs.yml +2818 -0
- data/examples/showcase/config/locales/en.yml +67 -0
- data/examples/showcase/config/locales/lcp_ruby/api_tokens.cs.yml +46 -0
- data/examples/showcase/config/locales/lcp_ruby/api_tokens.en.yml +49 -0
- data/examples/showcase/config/routes.rb +21 -0
- data/examples/showcase/config/storage.yml +3 -0
- data/examples/showcase/config.ru +2 -0
- data/examples/showcase/db/migrate/20260219124321_create_active_storage_tables.active_storage.rb +57 -0
- data/examples/showcase/db/migrate/20260220072723_create_lcp_ruby_users.rb +42 -0
- data/examples/showcase/db/migrate/20260406120000_create_host_inventory_items.rb +32 -0
- data/examples/showcase/db/migrate/20260428134542_add_oidc_columns_to_lcp_ruby_users.rb +13 -0
- data/examples/showcase/db/migrate/20260502120000_create_platform_profiles.rb +19 -0
- data/examples/showcase/db/schema.rb +1222 -0
- data/examples/showcase/db/seeds.rb +3085 -0
- data/examples/showcase/erd.md +567 -0
- data/examples/showcase/test/fixtures/import_articles.csv +4 -0
- data/examples/showcase/test/fixtures/import_employees.csv +4 -0
- data/examples/todo/Gemfile +8 -0
- data/examples/todo/Gemfile.lock +415 -0
- data/examples/todo/Rakefile +2 -0
- data/examples/todo/app/assets/config/manifest.js +1 -0
- data/examples/todo/app/controllers/application_controller.rb +6 -0
- data/examples/todo/app/lcp_services/defaults/one_week_from_now.rb +11 -0
- data/examples/todo/bin/rails +4 -0
- data/examples/todo/bin/rake +4 -0
- data/examples/todo/config/application.rb +31 -0
- data/examples/todo/config/boot.rb +2 -0
- data/examples/todo/config/database.yml +12 -0
- data/examples/todo/config/environment.rb +2 -0
- data/examples/todo/config/lcp_ruby/models/todo_item.yml +67 -0
- data/examples/todo/config/lcp_ruby/models/todo_list.yml +49 -0
- data/examples/todo/config/lcp_ruby/permissions/default.yml +10 -0
- data/examples/todo/config/lcp_ruby/permissions/todo_item.yml +21 -0
- data/examples/todo/config/lcp_ruby/presenters/todo_item.yml +75 -0
- data/examples/todo/config/lcp_ruby/presenters/todo_list.yml +68 -0
- data/examples/todo/config/lcp_ruby/views/todo_items.yml +11 -0
- data/examples/todo/config/lcp_ruby/views/todo_lists.yml +9 -0
- data/examples/todo/config/routes.rb +4 -0
- data/examples/todo/config/storage.yml +3 -0
- data/examples/todo/config.ru +2 -0
- data/examples/todo/db/migrate/20260219103416_create_active_storage_tables.active_storage.rb +57 -0
- data/examples/todo/db/schema.rb +63 -0
- data/examples/todo/db/seeds.rb +24 -0
- data/examples/todo/erd.md +21 -0
- data/exe/lcp +33 -0
- data/lib/generators/lcp_ruby/agent_setup_generator.rb +102 -0
- data/lib/generators/lcp_ruby/api_tokens_generator.rb +102 -0
- data/lib/generators/lcp_ruby/auditing_generator.rb +54 -0
- data/lib/generators/lcp_ruby/background_jobs_generator.rb +61 -0
- data/lib/generators/lcp_ruby/batch_operations_generator.rb +62 -0
- data/lib/generators/lcp_ruby/claude_skills_generator.rb +47 -0
- data/lib/generators/lcp_ruby/custom_fields_generator.rb +54 -0
- data/lib/generators/lcp_ruby/dsl_to_yaml.rb +72 -0
- data/lib/generators/lcp_ruby/entity/color_palette.rb +22 -0
- data/lib/generators/lcp_ruby/entity/field_descriptor.rb +24 -0
- data/lib/generators/lcp_ruby/entity/field_token_parser.rb +101 -0
- data/lib/generators/lcp_ruby/entity/role_discovery.rb +45 -0
- data/lib/generators/lcp_ruby/entity_generator.rb +1104 -0
- data/lib/generators/lcp_ruby/export_generator.rb +71 -0
- data/lib/generators/lcp_ruby/format_support.rb +56 -0
- data/lib/generators/lcp_ruby/gapfree_sequences_generator.rb +64 -0
- data/lib/generators/lcp_ruby/groups_generator.rb +94 -0
- data/lib/generators/lcp_ruby/host_controller_generator.rb +202 -0
- data/lib/generators/lcp_ruby/import_generator.rb +96 -0
- data/lib/generators/lcp_ruby/install_auth_generator.rb +432 -0
- data/lib/generators/lcp_ruby/install_generator.rb +319 -0
- data/lib/generators/lcp_ruby/monitoring_generator.rb +58 -0
- data/lib/generators/lcp_ruby/oidc_role_mappings_generator.rb +60 -0
- data/lib/generators/lcp_ruby/pages_generator.rb +66 -0
- data/lib/generators/lcp_ruby/permission_source_generator.rb +66 -0
- data/lib/generators/lcp_ruby/role_model_generator.rb +73 -0
- data/lib/generators/lcp_ruby/saved_filters_generator.rb +62 -0
- data/lib/generators/lcp_ruby/templates/add_oidc_columns_to_lcp_ruby_users.rb.erb +13 -0
- data/lib/generators/lcp_ruby/templates/agent_setup/agents_md.md +3 -0
- data/lib/generators/lcp_ruby/templates/agent_setup/claude_md.md +12 -0
- data/lib/generators/lcp_ruby/templates/api_tokens/create_dialog.rb +31 -0
- data/lib/generators/lcp_ruby/templates/api_tokens/locales.en.yml +43 -0
- data/lib/generators/lcp_ruby/templates/api_tokens/model.rb +23 -0
- data/lib/generators/lcp_ruby/templates/api_tokens/permissions.yml +30 -0
- data/lib/generators/lcp_ruby/templates/api_tokens/presenter.rb +38 -0
- data/lib/generators/lcp_ruby/templates/api_tokens/view_group.rb +13 -0
- data/lib/generators/lcp_ruby/templates/auditing/model.rb +34 -0
- data/lib/generators/lcp_ruby/templates/auditing/permissions.yml +19 -0
- data/lib/generators/lcp_ruby/templates/auditing/presenter.rb +41 -0
- data/lib/generators/lcp_ruby/templates/auditing/view_group.rb +10 -0
- data/lib/generators/lcp_ruby/templates/background_jobs/model.rb +59 -0
- data/lib/generators/lcp_ruby/templates/background_jobs/permissions.yml +22 -0
- data/lib/generators/lcp_ruby/templates/background_jobs/presenter.rb +82 -0
- data/lib/generators/lcp_ruby/templates/background_jobs/view_group.rb +9 -0
- data/lib/generators/lcp_ruby/templates/batch_operations/item_model.rb +28 -0
- data/lib/generators/lcp_ruby/templates/batch_operations/item_presenter.rb +43 -0
- data/lib/generators/lcp_ruby/templates/batch_operations/model.rb +42 -0
- data/lib/generators/lcp_ruby/templates/batch_operations/permissions.yml +44 -0
- data/lib/generators/lcp_ruby/templates/batch_operations/presenter.rb +61 -0
- data/lib/generators/lcp_ruby/templates/batch_operations/view_group.rb +9 -0
- data/lib/generators/lcp_ruby/templates/create_lcp_ruby_users.rb.erb +50 -0
- data/lib/generators/lcp_ruby/templates/custom_fields/model.rb +60 -0
- data/lib/generators/lcp_ruby/templates/custom_fields/permissions.yml +19 -0
- data/lib/generators/lcp_ruby/templates/custom_fields/presenter.rb +128 -0
- data/lib/generators/lcp_ruby/templates/custom_fields/view_group.rb +9 -0
- data/lib/generators/lcp_ruby/templates/entity/model.rb +42 -0
- data/lib/generators/lcp_ruby/templates/entity/permissions.yml +20 -0
- data/lib/generators/lcp_ruby/templates/entity/presenter.rb +55 -0
- data/lib/generators/lcp_ruby/templates/entity/view_group.rb +8 -0
- data/lib/generators/lcp_ruby/templates/export/export_log_model.rb +30 -0
- data/lib/generators/lcp_ruby/templates/export/export_log_permissions.yml +24 -0
- data/lib/generators/lcp_ruby/templates/export/export_logs_presenter.rb +51 -0
- data/lib/generators/lcp_ruby/templates/export/export_profile_model.rb +28 -0
- data/lib/generators/lcp_ruby/templates/export/export_profile_permissions.yml +26 -0
- data/lib/generators/lcp_ruby/templates/export/export_profiles_presenter.rb +59 -0
- data/lib/generators/lcp_ruby/templates/gapfree_sequences/model.rb +18 -0
- data/lib/generators/lcp_ruby/templates/gapfree_sequences/permissions.yml +19 -0
- data/lib/generators/lcp_ruby/templates/gapfree_sequences/presenter.rb +51 -0
- data/lib/generators/lcp_ruby/templates/gapfree_sequences/view_group.rb +9 -0
- data/lib/generators/lcp_ruby/templates/groups/group_membership_model.rb +17 -0
- data/lib/generators/lcp_ruby/templates/groups/group_model.rb +28 -0
- data/lib/generators/lcp_ruby/templates/groups/group_permissions.yml +19 -0
- data/lib/generators/lcp_ruby/templates/groups/group_presenter.rb +53 -0
- data/lib/generators/lcp_ruby/templates/groups/group_role_mapping_model.rb +15 -0
- data/lib/generators/lcp_ruby/templates/groups/group_view_group.rb +9 -0
- data/lib/generators/lcp_ruby/templates/host_controller/controller.rb.erb +131 -0
- data/lib/generators/lcp_ruby/templates/import/data_import_job.yml +7 -0
- data/lib/generators/lcp_ruby/templates/import/import_profile_model.rb +30 -0
- data/lib/generators/lcp_ruby/templates/import/import_profile_permissions.yml +29 -0
- data/lib/generators/lcp_ruby/templates/import/import_profiles_presenter.rb +57 -0
- data/lib/generators/lcp_ruby/templates/import/import_row_model.rb +32 -0
- data/lib/generators/lcp_ruby/templates/import/import_row_permissions.yml +11 -0
- data/lib/generators/lcp_ruby/templates/import/import_rows_presenter.rb +35 -0
- data/lib/generators/lcp_ruby/templates/install/default_permissions.yml +26 -0
- data/lib/generators/lcp_ruby/templates/install/menu.yml.tt +71 -0
- data/lib/generators/lcp_ruby/templates/install/model.rb +20 -0
- data/lib/generators/lcp_ruby/templates/install/permissions.yml +25 -0
- data/lib/generators/lcp_ruby/templates/install/presenter.rb +44 -0
- data/lib/generators/lcp_ruby/templates/install/view_group.rb +10 -0
- data/lib/generators/lcp_ruby/templates/install_auth/oidc/entra.yml.erb +46 -0
- data/lib/generators/lcp_ruby/templates/install_auth/oidc/generic.yml.erb +55 -0
- data/lib/generators/lcp_ruby/templates/install_auth/oidc/google.yml.erb +42 -0
- data/lib/generators/lcp_ruby/templates/install_auth/oidc/keycloak.yml.erb +45 -0
- data/lib/generators/lcp_ruby/templates/install_auth/oidc/okta.yml.erb +45 -0
- data/lib/generators/lcp_ruby/templates/install_auth/user.rb +36 -0
- data/lib/generators/lcp_ruby/templates/monitoring/model.rb +34 -0
- data/lib/generators/lcp_ruby/templates/monitoring/model_extension.rb +12 -0
- data/lib/generators/lcp_ruby/templates/monitoring/page.yml +49 -0
- data/lib/generators/lcp_ruby/templates/monitoring/permissions.yml +8 -0
- data/lib/generators/lcp_ruby/templates/monitoring/presenter.rb +44 -0
- data/lib/generators/lcp_ruby/templates/oidc_role_mappings/locales.en.yml +15 -0
- data/lib/generators/lcp_ruby/templates/oidc_role_mappings/model.rb +32 -0
- data/lib/generators/lcp_ruby/templates/oidc_role_mappings/permissions.yml +21 -0
- data/lib/generators/lcp_ruby/templates/oidc_role_mappings/presenter.rb +41 -0
- data/lib/generators/lcp_ruby/templates/pages/model.rb +19 -0
- data/lib/generators/lcp_ruby/templates/pages/permissions.yml +19 -0
- data/lib/generators/lcp_ruby/templates/pages/presenter.rb +51 -0
- data/lib/generators/lcp_ruby/templates/pages/view_group.rb +10 -0
- data/lib/generators/lcp_ruby/templates/permission_source/model.rb +21 -0
- data/lib/generators/lcp_ruby/templates/permission_source/permissions.yml +19 -0
- data/lib/generators/lcp_ruby/templates/permission_source/presenter.rb +51 -0
- data/lib/generators/lcp_ruby/templates/permission_source/view_group.rb +10 -0
- data/lib/generators/lcp_ruby/templates/role_model/model.rb +24 -0
- data/lib/generators/lcp_ruby/templates/role_model/permissions.yml +19 -0
- data/lib/generators/lcp_ruby/templates/role_model/presenter.rb +62 -0
- data/lib/generators/lcp_ruby/templates/role_model/view_group.rb +10 -0
- data/lib/generators/lcp_ruby/templates/saved_filters/model.rb +51 -0
- data/lib/generators/lcp_ruby/templates/saved_filters/permissions.yml +44 -0
- data/lib/generators/lcp_ruby/templates/saved_filters/presenter.rb +96 -0
- data/lib/generators/lcp_ruby/templates/saved_filters/save_dialog_presenter.rb +19 -0
- data/lib/generators/lcp_ruby/templates/workflow_approvals/request_model.rb +50 -0
- data/lib/generators/lcp_ruby/templates/workflow_approvals/request_permissions.yml +10 -0
- data/lib/generators/lcp_ruby/templates/workflow_approvals/request_presenter.rb +44 -0
- data/lib/generators/lcp_ruby/templates/workflow_approvals/request_view_group.rb +10 -0
- data/lib/generators/lcp_ruby/templates/workflow_approvals/step_model.rb +36 -0
- data/lib/generators/lcp_ruby/templates/workflow_approvals/step_permissions.yml +10 -0
- data/lib/generators/lcp_ruby/templates/workflow_approvals/task_model.rb +34 -0
- data/lib/generators/lcp_ruby/templates/workflow_approvals/task_permissions.yml +10 -0
- data/lib/generators/lcp_ruby/templates/workflow_approvals/task_presenter.rb +39 -0
- data/lib/generators/lcp_ruby/templates/workflow_approvals/task_view_group.rb +10 -0
- data/lib/generators/lcp_ruby/templates/workflow_audit_log/model.rb +48 -0
- data/lib/generators/lcp_ruby/templates/workflow_audit_log/permissions.yml +10 -0
- data/lib/generators/lcp_ruby/templates/workflow_audit_log/presenter.rb +44 -0
- data/lib/generators/lcp_ruby/templates/workflow_audit_log/view_group.rb +10 -0
- data/lib/generators/lcp_ruby/templates/workflow_definition/model.rb +43 -0
- data/lib/generators/lcp_ruby/templates/workflow_definition/permissions.yml +19 -0
- data/lib/generators/lcp_ruby/templates/workflow_definition/presenter.rb +70 -0
- data/lib/generators/lcp_ruby/templates/workflow_definition/view_group.rb +10 -0
- data/lib/generators/lcp_ruby/workflow_approvals_generator.rb +93 -0
- data/lib/generators/lcp_ruby/workflow_audit_log_generator.rb +54 -0
- data/lib/generators/lcp_ruby/workflow_definition_generator.rb +77 -0
- data/lib/lcp.rb +6 -0
- data/lib/lcp_ruby/actions/action_executor.rb +66 -0
- data/lib/lcp_ruby/actions/action_registry.rb +48 -0
- data/lib/lcp_ruby/actions/api_tokens/revoke.rb +13 -0
- data/lib/lcp_ruby/actions/base_action.rb +79 -0
- data/lib/lcp_ruby/actions/form_action_pipeline.rb +138 -0
- data/lib/lcp_ruby/aggregates/query_builder.rb +6 -0
- data/lib/lcp_ruby/api_tokens/model_extension.rb +41 -0
- data/lib/lcp_ruby/api_tokens/resolver_registry.rb +53 -0
- data/lib/lcp_ruby/api_tokens/token_generator.rb +27 -0
- data/lib/lcp_ruby/api_tokens/verifier.rb +38 -0
- data/lib/lcp_ruby/app_template.rb +181 -0
- data/lib/lcp_ruby/array_query.rb +120 -0
- data/lib/lcp_ruby/asset_copier.rb +62 -0
- data/lib/lcp_ruby/association_fk_type.rb +191 -0
- data/lib/lcp_ruby/association_join_column.rb +28 -0
- data/lib/lcp_ruby/association_options_builder.rb +231 -0
- data/lib/lcp_ruby/auditing/audit_writer.rb +258 -0
- data/lib/lcp_ruby/auditing/contract_validator.rb +95 -0
- data/lib/lcp_ruby/auditing/registry.rb +29 -0
- data/lib/lcp_ruby/auditing/setup.rb +49 -0
- data/lib/lcp_ruby/authentication/audit_subscriber.rb +51 -0
- data/lib/lcp_ruby/authentication/bearer_jwt_verifier.rb +139 -0
- data/lib/lcp_ruby/authentication/devise_setup.rb +47 -0
- data/lib/lcp_ruby/authentication/errors.rb +27 -0
- data/lib/lcp_ruby/authentication/http_fetcher.rb +36 -0
- data/lib/lcp_ruby/authentication/jwks_cache.rb +91 -0
- data/lib/lcp_ruby/authentication/oidc_bearer_resolver.rb +84 -0
- data/lib/lcp_ruby/authentication/omniauth_builder.rb +147 -0
- data/lib/lcp_ruby/authentication/provider.rb +108 -0
- data/lib/lcp_ruby/authentication/provider_registry.rb +227 -0
- data/lib/lcp_ruby/authentication/role_mapper.rb +94 -0
- data/lib/lcp_ruby/authentication/test_support.rb +257 -0
- data/lib/lcp_ruby/authentication/user_resolver.rb +169 -0
- data/lib/lcp_ruby/authentication.rb +40 -0
- data/lib/lcp_ruby/authorization/association_lookup.rb +56 -0
- data/lib/lcp_ruby/authorization/authorization_error.rb +12 -0
- data/lib/lcp_ruby/authorization/cache.rb +89 -0
- data/lib/lcp_ruby/authorization/codes.rb +17 -0
- data/lib/lcp_ruby/authorization/impersonated_user.rb +29 -0
- data/lib/lcp_ruby/authorization/includes_hint.rb +110 -0
- data/lib/lcp_ruby/authorization/inherited_parent_validator.rb +142 -0
- data/lib/lcp_ruby/authorization/invariant_check/configuration.rb +132 -0
- data/lib/lcp_ruby/authorization/invariant_error.rb +15 -0
- data/lib/lcp_ruby/authorization/misconfigured_page_error.rb +30 -0
- data/lib/lcp_ruby/authorization/page_gate.rb +57 -0
- data/lib/lcp_ruby/authorization/permission_evaluator.rb +343 -0
- data/lib/lcp_ruby/authorization/policy_factory.rb +91 -0
- data/lib/lcp_ruby/authorization/runtime_invariant_validator.rb +421 -0
- data/lib/lcp_ruby/authorization/scope_builder.rb +227 -0
- data/lib/lcp_ruby/authorization/scope_resolver.rb +28 -0
- data/lib/lcp_ruby/authorized_controller.rb +44 -0
- data/lib/lcp_ruby/background_jobs/base_handler.rb +113 -0
- data/lib/lcp_ruby/background_jobs/change_handler.rb +17 -0
- data/lib/lcp_ruby/background_jobs/contract.rb +16 -0
- data/lib/lcp_ruby/background_jobs/contract_validator.rb +112 -0
- data/lib/lcp_ruby/background_jobs/declarative/base_action.rb +11 -0
- data/lib/lcp_ruby/background_jobs/declarative/call_webhook_action.rb +174 -0
- data/lib/lcp_ruby/background_jobs/declarative/fire_event_action.rb +24 -0
- data/lib/lcp_ruby/background_jobs/declarative/registry.rb +34 -0
- data/lib/lcp_ruby/background_jobs/declarative/run_scope_action.rb +98 -0
- data/lib/lcp_ruby/background_jobs/declarative/send_notification_action.rb +13 -0
- data/lib/lcp_ruby/background_jobs/definition.rb +134 -0
- data/lib/lcp_ruby/background_jobs/enqueue.rb +83 -0
- data/lib/lcp_ruby/background_jobs/errors.rb +9 -0
- data/lib/lcp_ruby/background_jobs/executor_job.rb +111 -0
- data/lib/lcp_ruby/background_jobs/handler_factory.rb +46 -0
- data/lib/lcp_ruby/background_jobs/host_source.rb +33 -0
- data/lib/lcp_ruby/background_jobs/model_source.rb +93 -0
- data/lib/lcp_ruby/background_jobs/registry.rb +81 -0
- data/lib/lcp_ruby/background_jobs/resolver.rb +29 -0
- data/lib/lcp_ruby/background_jobs/schedule_adapter.rb +14 -0
- data/lib/lcp_ruby/background_jobs/setup.rb +145 -0
- data/lib/lcp_ruby/background_jobs/static_source.rb +19 -0
- data/lib/lcp_ruby/background_jobs/steps_executor.rb +52 -0
- data/lib/lcp_ruby/background_jobs/triggers/event_trigger.rb +97 -0
- data/lib/lcp_ruby/background_jobs/triggers/trigger_installer.rb +20 -0
- data/lib/lcp_ruby/background_jobs/unique_key_builder.rb +31 -0
- data/lib/lcp_ruby/batch_actions/base_service.rb +70 -0
- data/lib/lcp_ruby/batch_actions/batch_action_handler.rb +200 -0
- data/lib/lcp_ruby/batch_actions/custom_action_dispatcher.rb +133 -0
- data/lib/lcp_ruby/batch_actions/destroy_service.rb +37 -0
- data/lib/lcp_ruby/batch_actions/permanently_destroy_service.rb +33 -0
- data/lib/lcp_ruby/batch_actions/restore_service.rb +33 -0
- data/lib/lcp_ruby/batch_actions.rb +5 -0
- data/lib/lcp_ruby/bulk_updater.rb +25 -0
- data/lib/lcp_ruby/cli/docs_command.rb +29 -0
- data/lib/lcp_ruby/cli/examples_command.rb +29 -0
- data/lib/lcp_ruby/cli/new_command.rb +509 -0
- data/lib/lcp_ruby/cli/run_command.rb +155 -0
- data/lib/lcp_ruby/cli/skills_command.rb +54 -0
- data/lib/lcp_ruby/cli.rb +74 -0
- data/lib/lcp_ruby/condition_evaluator.rb +366 -0
- data/lib/lcp_ruby/condition_service_registry.rb +58 -0
- data/lib/lcp_ruby/condition_services/current_user_role.rb +28 -0
- data/lib/lcp_ruby/condition_services/feature_flag.rb +63 -0
- data/lib/lcp_ruby/condition_services/impersonating.rb +24 -0
- data/lib/lcp_ruby/conditions/validator.rb +35 -0
- data/lib/lcp_ruby/configuration.rb +431 -0
- data/lib/lcp_ruby/controller/authentication.rb +118 -0
- data/lib/lcp_ruby/controller/authorization.rb +198 -0
- data/lib/lcp_ruby/controller/bearer_authentication.rb +76 -0
- data/lib/lcp_ruby/controller/crud_helpers.rb +233 -0
- data/lib/lcp_ruby/controller/error_handling.rb +94 -0
- data/lib/lcp_ruby/controller/impersonation.rb +70 -0
- data/lib/lcp_ruby/controller/locale_binding.rb +62 -0
- data/lib/lcp_ruby/controller/path_helpers.rb +125 -0
- data/lib/lcp_ruby/controller/presenter_setup.rb +89 -0
- data/lib/lcp_ruby/controller/search.rb +321 -0
- data/lib/lcp_ruby/controller/view_helpers.rb +105 -0
- data/lib/lcp_ruby/current.rb +13 -0
- data/lib/lcp_ruby/custom_fields/applicator.rb +194 -0
- data/lib/lcp_ruby/custom_fields/contract_validator.rb +77 -0
- data/lib/lcp_ruby/custom_fields/definition_change_handler.rb +21 -0
- data/lib/lcp_ruby/custom_fields/query.rb +112 -0
- data/lib/lcp_ruby/custom_fields/registry.rb +70 -0
- data/lib/lcp_ruby/custom_fields/setup.rb +58 -0
- data/lib/lcp_ruby/custom_fields/utils.rb +40 -0
- data/lib/lcp_ruby/custom_fields.rb +9 -0
- data/lib/lcp_ruby/data_source/api_error_placeholder.rb +47 -0
- data/lib/lcp_ruby/data_source/api_filter_translator.rb +72 -0
- data/lib/lcp_ruby/data_source/api_model_concern.rb +131 -0
- data/lib/lcp_ruby/data_source/api_preloader.rb +44 -0
- data/lib/lcp_ruby/data_source/base.rb +85 -0
- data/lib/lcp_ruby/data_source/cached_wrapper.rb +107 -0
- data/lib/lcp_ruby/data_source/host.rb +71 -0
- data/lib/lcp_ruby/data_source/registry.rb +39 -0
- data/lib/lcp_ruby/data_source/resilient_wrapper.rb +67 -0
- data/lib/lcp_ruby/data_source/rest_json.rb +247 -0
- data/lib/lcp_ruby/data_source/setup.rb +57 -0
- data/lib/lcp_ruby/dev_toolbar.rb +8 -0
- data/lib/lcp_ruby/display/base_renderer.rb +21 -0
- data/lib/lcp_ruby/display/count_badge.rb +11 -0
- data/lib/lcp_ruby/display/icon_badge.rb +17 -0
- data/lib/lcp_ruby/display/renderer_registry.rb +138 -0
- data/lib/lcp_ruby/display/renderers/attachment_link.rb +26 -0
- data/lib/lcp_ruby/display/renderers/attachment_list.rb +32 -0
- data/lib/lcp_ruby/display/renderers/attachment_preview.rb +26 -0
- data/lib/lcp_ruby/display/renderers/avatar.rb +14 -0
- data/lib/lcp_ruby/display/renderers/badge.rb +43 -0
- data/lib/lcp_ruby/display/renderers/boolean_icon.rb +54 -0
- data/lib/lcp_ruby/display/renderers/code.rb +39 -0
- data/lib/lcp_ruby/display/renderers/collection.rb +34 -0
- data/lib/lcp_ruby/display/renderers/color_swatch.rb +25 -0
- data/lib/lcp_ruby/display/renderers/concerns/attachment_helpers.rb +73 -0
- data/lib/lcp_ruby/display/renderers/concerns/workflow_helpers.rb +35 -0
- data/lib/lcp_ruby/display/renderers/copy_code.rb +33 -0
- data/lib/lcp_ruby/display/renderers/currency.rb +14 -0
- data/lib/lcp_ruby/display/renderers/date.rb +17 -0
- data/lib/lcp_ruby/display/renderers/datetime.rb +17 -0
- data/lib/lcp_ruby/display/renderers/email_link.rb +15 -0
- data/lib/lcp_ruby/display/renderers/file_size.rb +11 -0
- data/lib/lcp_ruby/display/renderers/heading.rb +11 -0
- data/lib/lcp_ruby/display/renderers/image.rb +17 -0
- data/lib/lcp_ruby/display/renderers/internal_link.rb +23 -0
- data/lib/lcp_ruby/display/renderers/link.rb +15 -0
- data/lib/lcp_ruby/display/renderers/link_list.rb +90 -0
- data/lib/lcp_ruby/display/renderers/markdown.rb +33 -0
- data/lib/lcp_ruby/display/renderers/number.rb +14 -0
- data/lib/lcp_ruby/display/renderers/percentage.rb +12 -0
- data/lib/lcp_ruby/display/renderers/phone_link.rb +15 -0
- data/lib/lcp_ruby/display/renderers/progress_bar.rb +15 -0
- data/lib/lcp_ruby/display/renderers/rating.rb +15 -0
- data/lib/lcp_ruby/display/renderers/record_link.rb +101 -0
- data/lib/lcp_ruby/display/renderers/relative_date.rb +15 -0
- data/lib/lcp_ruby/display/renderers/rich_text.rb +15 -0
- data/lib/lcp_ruby/display/renderers/text.rb +12 -0
- data/lib/lcp_ruby/display/renderers/truncate.rb +17 -0
- data/lib/lcp_ruby/display/renderers/url_link.rb +22 -0
- data/lib/lcp_ruby/display/renderers/workflow_badge.rb +37 -0
- data/lib/lcp_ruby/display/renderers/workflow_timeline.rb +173 -0
- data/lib/lcp_ruby/display/renderers.rb +3 -0
- data/lib/lcp_ruby/display/text_badge.rb +15 -0
- data/lib/lcp_ruby/dsl/condition_builder.rb +190 -0
- data/lib/lcp_ruby/dsl/dsl_loader.rb +365 -0
- data/lib/lcp_ruby/dsl/field_builder.rb +35 -0
- data/lib/lcp_ruby/dsl/job_builder.rb +92 -0
- data/lib/lcp_ruby/dsl/model_builder.rb +544 -0
- data/lib/lcp_ruby/dsl/presenter_builder.rb +1272 -0
- data/lib/lcp_ruby/dsl/source_location_capture.rb +52 -0
- data/lib/lcp_ruby/dsl/type_builder.rb +88 -0
- data/lib/lcp_ruby/dsl/view_group_builder.rb +92 -0
- data/lib/lcp_ruby/dsl/workflow_builder.rb +319 -0
- data/lib/lcp_ruby/dynamic.rb +7 -0
- data/lib/lcp_ruby/dynamic_references/resolver.rb +154 -0
- data/lib/lcp_ruby/dynamic_references/validator.rb +92 -0
- data/lib/lcp_ruby/embed_providers/base.rb +18 -0
- data/lib/lcp_ruby/embed_providers/grafana.rb +38 -0
- data/lib/lcp_ruby/embed_providers/metabase.rb +37 -0
- data/lib/lcp_ruby/engine.rb +680 -0
- data/lib/lcp_ruby/events/async_handler_job.rb +21 -0
- data/lib/lcp_ruby/events/dispatcher.rb +52 -0
- data/lib/lcp_ruby/events/handler_base.rb +51 -0
- data/lib/lcp_ruby/events/handler_registry.rb +49 -0
- data/lib/lcp_ruby/export/data_generator.rb +158 -0
- data/lib/lcp_ruby/export/export_handler.rb +315 -0
- data/lib/lcp_ruby/export/field_tree_builder.rb +219 -0
- data/lib/lcp_ruby/export/setup.rb +94 -0
- data/lib/lcp_ruby/export/value_formatter.rb +223 -0
- data/lib/lcp_ruby/export.rb +9 -0
- data/lib/lcp_ruby/gem_paths.rb +51 -0
- data/lib/lcp_ruby/generators/entity_menu_writer.rb +258 -0
- data/lib/lcp_ruby/generators/feature_registry.rb +208 -0
- data/lib/lcp_ruby/generators/prerequisites.rb +90 -0
- data/lib/lcp_ruby/grouped_query/builder.rb +206 -0
- data/lib/lcp_ruby/grouped_query/result_wrapper.rb +72 -0
- data/lib/lcp_ruby/grouped_query/row.rb +31 -0
- data/lib/lcp_ruby/groups/change_handler.rb +18 -0
- data/lib/lcp_ruby/groups/contract.rb +42 -0
- data/lib/lcp_ruby/groups/contract_validator.rb +110 -0
- data/lib/lcp_ruby/groups/host_loader.rb +54 -0
- data/lib/lcp_ruby/groups/model_loader.rb +186 -0
- data/lib/lcp_ruby/groups/registry.rb +113 -0
- data/lib/lcp_ruby/groups/setup.rb +129 -0
- data/lib/lcp_ruby/groups/yaml_loader.rb +97 -0
- data/lib/lcp_ruby/hash_utils.rb +42 -0
- data/lib/lcp_ruby/i18n_check/configuration.rb +104 -0
- data/lib/lcp_ruby/i18n_check/heuristics.rb +26 -0
- data/lib/lcp_ruby/i18n_check/key_deriver.rb +136 -0
- data/lib/lcp_ruby/i18n_check/offense.rb +29 -0
- data/lib/lcp_ruby/i18n_check/registry_walker.rb +621 -0
- data/lib/lcp_ruby/i18n_check/reporter.rb +96 -0
- data/lib/lcp_ruby/i18n_check/runner.rb +46 -0
- data/lib/lcp_ruby/i18n_check.rb +15 -0
- data/lib/lcp_ruby/i18n_lint.rb +145 -0
- data/lib/lcp_ruby/import/auto_mapper.rb +98 -0
- data/lib/lcp_ruby/import/field_tree_builder.rb +178 -0
- data/lib/lcp_ruby/import/file_parser.rb +223 -0
- data/lib/lcp_ruby/import/import_dialog_handler.rb +410 -0
- data/lib/lcp_ruby/import/import_job_handler.rb +224 -0
- data/lib/lcp_ruby/import/row_processor.rb +281 -0
- data/lib/lcp_ruby/import/setup.rb +277 -0
- data/lib/lcp_ruby/import/value_coercer.rb +143 -0
- data/lib/lcp_ruby/import.rb +14 -0
- data/lib/lcp_ruby/json_item_wrapper.rb +152 -0
- data/lib/lcp_ruby/kanban/board.rb +28 -0
- data/lib/lcp_ruby/kanban/column.rb +28 -0
- data/lib/lcp_ruby/kanban/default_provider.rb +376 -0
- data/lib/lcp_ruby/kanban/host_provider.rb +94 -0
- data/lib/lcp_ruby/kanban/move_result.rb +52 -0
- data/lib/lcp_ruby/kanban/provider_test_harness.rb +54 -0
- data/lib/lcp_ruby/kanban/swimlane.rb +21 -0
- data/lib/lcp_ruby/menu.rb +46 -0
- data/lib/lcp_ruby/metadata/aggregate_definition.rb +6 -0
- data/lib/lcp_ruby/metadata/association_definition.rb +196 -0
- data/lib/lcp_ruby/metadata/auth_validator.rb +222 -0
- data/lib/lcp_ruby/metadata/configuration_validator.rb +7958 -0
- data/lib/lcp_ruby/metadata/contract_result.rb +9 -0
- data/lib/lcp_ruby/metadata/display_template_definition.rb +77 -0
- data/lib/lcp_ruby/metadata/enum_label_resolver.rb +27 -0
- data/lib/lcp_ruby/metadata/erd_generator.rb +274 -0
- data/lib/lcp_ruby/metadata/event_definition.rb +55 -0
- data/lib/lcp_ruby/metadata/field_definition.rb +267 -0
- data/lib/lcp_ruby/metadata/group_definition.rb +31 -0
- data/lib/lcp_ruby/metadata/i18n_label.rb +29 -0
- data/lib/lcp_ruby/metadata/loader.rb +916 -0
- data/lib/lcp_ruby/metadata/menu_definition.rb +116 -0
- data/lib/lcp_ruby/metadata/menu_item.rb +792 -0
- data/lib/lcp_ruby/metadata/menu_item_resolver.rb +105 -0
- data/lib/lcp_ruby/metadata/model_definition.rb +612 -0
- data/lib/lcp_ruby/metadata/model_hash_merger.rb +88 -0
- data/lib/lcp_ruby/metadata/model_inheritance_resolver.rb +165 -0
- data/lib/lcp_ruby/metadata/page_definition.rb +245 -0
- data/lib/lcp_ruby/metadata/path_template.rb +231 -0
- data/lib/lcp_ruby/metadata/permission_definition.rb +237 -0
- data/lib/lcp_ruby/metadata/permission_merger.rb +81 -0
- data/lib/lcp_ruby/metadata/presenter_definition.rb +689 -0
- data/lib/lcp_ruby/metadata/reserved_names.rb +79 -0
- data/lib/lcp_ruby/metadata/responsive_policy.rb +95 -0
- data/lib/lcp_ruby/metadata/schema_validator.rb +172 -0
- data/lib/lcp_ruby/metadata/validation_definition.rb +69 -0
- data/lib/lcp_ruby/metadata/view_group_definition.rb +208 -0
- data/lib/lcp_ruby/metadata/virtual_column_definition.rb +154 -0
- data/lib/lcp_ruby/metadata/zone_definition.rb +423 -0
- data/lib/lcp_ruby/metrics/collector.rb +123 -0
- data/lib/lcp_ruby/metrics/collector_registry.rb +57 -0
- data/lib/lcp_ruby/metrics/error_recorder.rb +70 -0
- data/lib/lcp_ruby/metrics/fingerprint.rb +33 -0
- data/lib/lcp_ruby/metrics/json_query.rb +47 -0
- data/lib/lcp_ruby/metrics/metric_definitions.rb +105 -0
- data/lib/lcp_ruby/metrics/prometheus_check.rb +9 -0
- data/lib/lcp_ruby/metrics/rate_limiter.rb +99 -0
- data/lib/lcp_ruby/metrics/setup.rb +71 -0
- data/lib/lcp_ruby/metrics/subscriber.rb +126 -0
- data/lib/lcp_ruby/model_factory/aggregate_applicator.rb +14 -0
- data/lib/lcp_ruby/model_factory/api_association_applicator.rb +119 -0
- data/lib/lcp_ruby/model_factory/api_builder.rb +85 -0
- data/lib/lcp_ruby/model_factory/array_type.rb +78 -0
- data/lib/lcp_ruby/model_factory/array_type_applicator.rb +33 -0
- data/lib/lcp_ruby/model_factory/association_applicator.rb +201 -0
- data/lib/lcp_ruby/model_factory/attachment_applicator.rb +160 -0
- data/lib/lcp_ruby/model_factory/auditing_applicator.rb +72 -0
- data/lib/lcp_ruby/model_factory/builder.rb +235 -0
- data/lib/lcp_ruby/model_factory/callback_applicator.rb +63 -0
- data/lib/lcp_ruby/model_factory/computed_applicator.rb +55 -0
- data/lib/lcp_ruby/model_factory/default_applicator.rb +85 -0
- data/lib/lcp_ruby/model_factory/enum_applicator.rb +24 -0
- data/lib/lcp_ruby/model_factory/inherited_parent_validator_applicator.rb +39 -0
- data/lib/lcp_ruby/model_factory/label_method_builder.rb +82 -0
- data/lib/lcp_ruby/model_factory/managed_tracking.rb +71 -0
- data/lib/lcp_ruby/model_factory/positioning_applicator.rb +23 -0
- data/lib/lcp_ruby/model_factory/ransack_applicator.rb +66 -0
- data/lib/lcp_ruby/model_factory/registry.rb +33 -0
- data/lib/lcp_ruby/model_factory/schema_manager.rb +655 -0
- data/lib/lcp_ruby/model_factory/scope_applicator.rb +87 -0
- data/lib/lcp_ruby/model_factory/sequence_applicator.rb +173 -0
- data/lib/lcp_ruby/model_factory/service_accessor_applicator.rb +40 -0
- data/lib/lcp_ruby/model_factory/soft_delete_applicator.rb +141 -0
- data/lib/lcp_ruby/model_factory/transform_applicator.rb +51 -0
- data/lib/lcp_ruby/model_factory/tree_applicator.rb +239 -0
- data/lib/lcp_ruby/model_factory/userstamps_applicator.rb +73 -0
- data/lib/lcp_ruby/model_factory/validation_applicator.rb +319 -0
- data/lib/lcp_ruby/model_factory/virtual_column_applicator.rb +79 -0
- data/lib/lcp_ruby/model_factory/workflow_applicator.rb +141 -0
- data/lib/lcp_ruby/pages/change_handler.rb +15 -0
- data/lib/lcp_ruby/pages/contract_validator.rb +74 -0
- data/lib/lcp_ruby/pages/definition_validator.rb +42 -0
- data/lib/lcp_ruby/pages/filter_form.rb +200 -0
- data/lib/lcp_ruby/pages/filter_form_validator.rb +636 -0
- data/lib/lcp_ruby/pages/registry.rb +133 -0
- data/lib/lcp_ruby/pages/resolver.rb +32 -0
- data/lib/lcp_ruby/pages/scope_context_resolver.rb +37 -0
- data/lib/lcp_ruby/pages/scope_filter_set.rb +57 -0
- data/lib/lcp_ruby/pages/setup.rb +46 -0
- data/lib/lcp_ruby/path_utils.rb +12 -0
- data/lib/lcp_ruby/permissions/change_handler.rb +22 -0
- data/lib/lcp_ruby/permissions/contract_validator.rb +74 -0
- data/lib/lcp_ruby/permissions/definition_validator.rb +119 -0
- data/lib/lcp_ruby/permissions/registry.rb +135 -0
- data/lib/lcp_ruby/permissions/setup.rb +51 -0
- data/lib/lcp_ruby/permissions/source_resolver.rb +56 -0
- data/lib/lcp_ruby/presenter/action_set.rb +236 -0
- data/lib/lcp_ruby/presenter/breadcrumb_builder.rb +183 -0
- data/lib/lcp_ruby/presenter/breadcrumb_path_helper.rb +17 -0
- data/lib/lcp_ruby/presenter/column_set.rb +268 -0
- data/lib/lcp_ruby/presenter/enrichment.rb +136 -0
- data/lib/lcp_ruby/presenter/field_value_resolver.rb +237 -0
- data/lib/lcp_ruby/presenter/includes_resolver/association_dependency.rb +59 -0
- data/lib/lcp_ruby/presenter/includes_resolver/dependency_collector.rb +394 -0
- data/lib/lcp_ruby/presenter/includes_resolver/loading_strategy.rb +70 -0
- data/lib/lcp_ruby/presenter/includes_resolver/strategy_resolver.rb +123 -0
- data/lib/lcp_ruby/presenter/includes_resolver.rb +42 -0
- data/lib/lcp_ruby/presenter/layout_builder.rb +467 -0
- data/lib/lcp_ruby/presenter/link_resolver.rb +65 -0
- data/lib/lcp_ruby/presenter/metadata_lookup.rb +28 -0
- data/lib/lcp_ruby/presenter/resolver.rb +25 -0
- data/lib/lcp_ruby/record_aliases/metadata_checker.rb +213 -0
- data/lib/lcp_ruby/record_aliases/setup.rb +212 -0
- data/lib/lcp_ruby/reserved_route_segments.rb +37 -0
- data/lib/lcp_ruby/roles/change_handler.rb +11 -0
- data/lib/lcp_ruby/roles/contract_validator.rb +67 -0
- data/lib/lcp_ruby/roles/registry.rb +89 -0
- data/lib/lcp_ruby/roles/setup.rb +50 -0
- data/lib/lcp_ruby/routing/presenter_routes.rb +104 -0
- data/lib/lcp_ruby/saved_filters/change_handler.rb +13 -0
- data/lib/lcp_ruby/saved_filters/contract_validator.rb +85 -0
- data/lib/lcp_ruby/saved_filters/registry.rb +36 -0
- data/lib/lcp_ruby/saved_filters/resolver.rb +108 -0
- data/lib/lcp_ruby/saved_filters/setup.rb +42 -0
- data/lib/lcp_ruby/saved_filters/stale_field_validator.rb +84 -0
- data/lib/lcp_ruby/schemas/auth.json +208 -0
- data/lib/lcp_ruby/schemas/menu.json +338 -0
- data/lib/lcp_ruby/schemas/model.json +1161 -0
- data/lib/lcp_ruby/schemas/page.json +877 -0
- data/lib/lcp_ruby/schemas/permission.json +454 -0
- data/lib/lcp_ruby/schemas/presenter.json +2274 -0
- data/lib/lcp_ruby/schemas/theme.json +62 -0
- data/lib/lcp_ruby/schemas/type.json +146 -0
- data/lib/lcp_ruby/schemas/view_group.json +163 -0
- data/lib/lcp_ruby/search/custom_field_filter.rb +171 -0
- data/lib/lcp_ruby/search/custom_filter_interceptor.rb +40 -0
- data/lib/lcp_ruby/search/filter_metadata_builder.rb +409 -0
- data/lib/lcp_ruby/search/filter_param_builder.rb +177 -0
- data/lib/lcp_ruby/search/operator_registry.rb +79 -0
- data/lib/lcp_ruby/search/param_sanitizer.rb +25 -0
- data/lib/lcp_ruby/search/parameter_definition.rb +187 -0
- data/lib/lcp_ruby/search/parameterized_scope_applicator.rb +129 -0
- data/lib/lcp_ruby/search/query_builder.rb +143 -0
- data/lib/lcp_ruby/search/query_language_parser.rb +549 -0
- data/lib/lcp_ruby/search/query_language_serializer.rb +193 -0
- data/lib/lcp_ruby/search/quick_search.rb +162 -0
- data/lib/lcp_ruby/search/relative_date_expander.rb +57 -0
- data/lib/lcp_ruby/search_result.rb +70 -0
- data/lib/lcp_ruby/sequences/sequence_manager.rb +51 -0
- data/lib/lcp_ruby/services/accessors/json_field.rb +23 -0
- data/lib/lcp_ruby/services/built_in_accessors.rb +17 -0
- data/lib/lcp_ruby/services/built_in_defaults.rb +22 -0
- data/lib/lcp_ruby/services/built_in_transforms.rb +20 -0
- data/lib/lcp_ruby/services/checker.rb +133 -0
- data/lib/lcp_ruby/services/registry.rb +83 -0
- data/lib/lcp_ruby/skills_installer.rb +73 -0
- data/lib/lcp_ruby/sort/enum_sort_order.rb +38 -0
- data/lib/lcp_ruby/tasks/destroy_order_resolver.rb +57 -0
- data/lib/lcp_ruby/tasks/doctor.rb +294 -0
- data/lib/lcp_ruby/tasks/permission_resolve_formatter.rb +245 -0
- data/lib/lcp_ruby/types/built_in_types.rb +157 -0
- data/lib/lcp_ruby/types/transforms/base_transform.rb +11 -0
- data/lib/lcp_ruby/types/transforms/downcase.rb +11 -0
- data/lib/lcp_ruby/types/transforms/normalize_phone.rb +19 -0
- data/lib/lcp_ruby/types/transforms/normalize_url.rb +16 -0
- data/lib/lcp_ruby/types/transforms/strip.rb +11 -0
- data/lib/lcp_ruby/types/type_definition.rb +112 -0
- data/lib/lcp_ruby/types/type_registry.rb +75 -0
- data/lib/lcp_ruby/url_safety.rb +97 -0
- data/lib/lcp_ruby/user_snapshot.rb +15 -0
- data/lib/lcp_ruby/version.rb +3 -0
- data/lib/lcp_ruby/view_slots/registry.rb +71 -0
- data/lib/lcp_ruby/view_slots/slot_component.rb +22 -0
- data/lib/lcp_ruby/view_slots/slot_context.rb +20 -0
- data/lib/lcp_ruby/virtual_columns/builder.rb +234 -0
- data/lib/lcp_ruby/virtual_columns/collector.rb +186 -0
- data/lib/lcp_ruby/virtual_columns.rb +4 -0
- data/lib/lcp_ruby/virtual_fields/synthetic_marker.rb +17 -0
- data/lib/lcp_ruby/virtual_fields/types/array_of.rb +49 -0
- data/lib/lcp_ruby/virtual_fields/virtual_field.rb +107 -0
- data/lib/lcp_ruby/virtual_fields/virtual_form.rb +144 -0
- data/lib/lcp_ruby/widgets/chart_palette.rb +25 -0
- data/lib/lcp_ruby/widgets/chartkick_check.rb +9 -0
- data/lib/lcp_ruby/widgets/data_resolver.rb +676 -0
- data/lib/lcp_ruby/widgets/date_grouper.rb +54 -0
- data/lib/lcp_ruby/widgets/presenter_zone_resolver.rb +170 -0
- data/lib/lcp_ruby/widgets/record_source_resolver.rb +56 -0
- data/lib/lcp_ruby/widgets/scope_applicator.rb +187 -0
- data/lib/lcp_ruby/workflow/approval/activation_handler.rb +39 -0
- data/lib/lcp_ruby/workflow/approval/approval_definition.rb +117 -0
- data/lib/lcp_ruby/workflow/approval/approver_resolver.rb +98 -0
- data/lib/lcp_ruby/workflow/approval/cleanup_handler.rb +37 -0
- data/lib/lcp_ruby/workflow/approval/contract_validator.rb +96 -0
- data/lib/lcp_ruby/workflow/approval/data_builder.rb +53 -0
- data/lib/lcp_ruby/workflow/approval/discard_handler.rb +51 -0
- data/lib/lcp_ruby/workflow/approval/engine.rb +314 -0
- data/lib/lcp_ruby/workflow/approval/registry.rb +40 -0
- data/lib/lcp_ruby/workflow/approval/resolution_handler.rb +103 -0
- data/lib/lcp_ruby/workflow/approval/setup.rb +138 -0
- data/lib/lcp_ruby/workflow/approval/step_definition.rb +52 -0
- data/lib/lcp_ruby/workflow/approval/step_evaluator.rb +163 -0
- data/lib/lcp_ruby/workflow/approval/system_evaluator.rb +29 -0
- data/lib/lcp_ruby/workflow/approval/task_manager.rb +202 -0
- data/lib/lcp_ruby/workflow/audit_contract_validator.rb +64 -0
- data/lib/lcp_ruby/workflow/audit_registry.rb +24 -0
- data/lib/lcp_ruby/workflow/audit_writer.rb +51 -0
- data/lib/lcp_ruby/workflow/change_handler.rb +14 -0
- data/lib/lcp_ruby/workflow/contract.rb +21 -0
- data/lib/lcp_ruby/workflow/contract_validator.rb +44 -0
- data/lib/lcp_ruby/workflow/errors.rb +12 -0
- data/lib/lcp_ruby/workflow/host_source.rb +19 -0
- data/lib/lcp_ruby/workflow/mermaid_builder.rb +217 -0
- data/lib/lcp_ruby/workflow/model_source.rb +79 -0
- data/lib/lcp_ruby/workflow/registry.rb +113 -0
- data/lib/lcp_ruby/workflow/resolver.rb +32 -0
- data/lib/lcp_ruby/workflow/setup.rb +135 -0
- data/lib/lcp_ruby/workflow/state_definition.rb +59 -0
- data/lib/lcp_ruby/workflow/state_machine.rb +78 -0
- data/lib/lcp_ruby/workflow/static_source.rb +20 -0
- data/lib/lcp_ruby/workflow/transition_action_builder.rb +46 -0
- data/lib/lcp_ruby/workflow/transition_definition.rb +70 -0
- data/lib/lcp_ruby/workflow/transition_executor.rb +140 -0
- data/lib/lcp_ruby/workflow/transition_label_resolver.rb +21 -0
- data/lib/lcp_ruby/workflow/transition_result.rb +20 -0
- data/lib/lcp_ruby/workflow/value_resolver.rb +58 -0
- data/lib/lcp_ruby/workflow/workflow_definition.rb +195 -0
- data/lib/lcp_ruby.rb +764 -0
- data/lib/rubocop/cop/lcp_ruby/no_hardcoded_i18n_string.rb +249 -0
- data/lib/tasks/lcp_ruby.rake +432 -0
- data/lib/tasks/lcp_ruby_assets.rake +37 -0
- data/lib/tasks/lcp_ruby_auth.rake +49 -0
- data/lib/tasks/lcp_ruby_db.rake +76 -0
- data/lib/tasks/lcp_ruby_doctor.rake +20 -0
- data/lib/tasks/lcp_ruby_feature_catalog.rake +61 -0
- data/lib/tasks/lcp_ruby_gapfree_sequences.rake +39 -0
- data/lib/tasks/lcp_ruby_i18n_check.rake +23 -0
- data/lib/tasks/lcp_ruby_i18n_lint.rake +20 -0
- data/lib/tasks/lcp_ruby_invariant_check.rake +72 -0
- data/vendor/assets/javascripts/lcp_ruby/activestorage.min.js +866 -0
- data/vendor/assets/javascripts/lcp_ruby/highlight.min.js +1244 -0
- data/vendor/assets/javascripts/lcp_ruby/lucide.min.js +12 -0
- data/vendor/assets/javascripts/lcp_ruby/stimulus.umd.js +2588 -0
- data/vendor/assets/javascripts/lcp_ruby/tom-select.complete.min.js +444 -0
- data/vendor/assets/stylesheets/lcp_ruby/highlight-github.min.css +12 -0
- data/vendor/assets/stylesheets/lcp_ruby/tom-select.css +412 -0
- metadata +1950 -0
|
@@ -0,0 +1,1222 @@
|
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
|
4
|
+
#
|
|
5
|
+
# This file is the source Rails uses to define your schema when running `bin/rails
|
|
6
|
+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
|
7
|
+
# be faster and is potentially less error prone than running all of your
|
|
8
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
|
9
|
+
# migrations use external dependencies or application code.
|
|
10
|
+
#
|
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
|
12
|
+
|
|
13
|
+
ActiveRecord::Schema[7.2].define(version: 2026_05_02_120000) do
|
|
14
|
+
create_table "active_storage_attachments", force: :cascade do |t|
|
|
15
|
+
t.string "name", null: false
|
|
16
|
+
t.string "record_type", null: false
|
|
17
|
+
t.bigint "record_id", null: false
|
|
18
|
+
t.bigint "blob_id", null: false
|
|
19
|
+
t.datetime "created_at", null: false
|
|
20
|
+
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
|
|
21
|
+
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
create_table "active_storage_blobs", force: :cascade do |t|
|
|
25
|
+
t.string "key", null: false
|
|
26
|
+
t.string "filename", null: false
|
|
27
|
+
t.string "content_type"
|
|
28
|
+
t.text "metadata"
|
|
29
|
+
t.string "service_name", null: false
|
|
30
|
+
t.bigint "byte_size", null: false
|
|
31
|
+
t.string "checksum"
|
|
32
|
+
t.datetime "created_at", null: false
|
|
33
|
+
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
create_table "active_storage_variant_records", force: :cascade do |t|
|
|
37
|
+
t.bigint "blob_id", null: false
|
|
38
|
+
t.string "variation_digest", null: false
|
|
39
|
+
t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
create_table "article_tags", force: :cascade do |t|
|
|
43
|
+
t.bigint "article_id", null: false
|
|
44
|
+
t.bigint "tag_id", null: false
|
|
45
|
+
t.datetime "created_at", null: false
|
|
46
|
+
t.datetime "updated_at", null: false
|
|
47
|
+
t.index ["article_id"], name: "index_article_tags_on_article_id"
|
|
48
|
+
t.index ["tag_id"], name: "index_article_tags_on_tag_id"
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
create_table "articles", force: :cascade do |t|
|
|
52
|
+
t.string "title", limit: 255, null: false
|
|
53
|
+
t.text "body"
|
|
54
|
+
t.string "status", default: "draft"
|
|
55
|
+
t.integer "word_count", default: 0
|
|
56
|
+
t.bigint "category_id", null: false
|
|
57
|
+
t.bigint "author_id", null: false
|
|
58
|
+
t.datetime "created_at", null: false
|
|
59
|
+
t.datetime "updated_at", null: false
|
|
60
|
+
t.bigint "created_by_id"
|
|
61
|
+
t.bigint "updated_by_id"
|
|
62
|
+
t.string "slug", limit: 100
|
|
63
|
+
t.index ["author_id"], name: "index_articles_on_author_id"
|
|
64
|
+
t.index ["category_id"], name: "index_articles_on_category_id"
|
|
65
|
+
t.index ["created_by_id"], name: "index_articles_on_created_by_id"
|
|
66
|
+
t.index ["slug"], name: "index_articles_on_slug", unique: true
|
|
67
|
+
t.index ["updated_by_id"], name: "index_articles_on_updated_by_id"
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
create_table "authors", force: :cascade do |t|
|
|
71
|
+
t.string "name", limit: 100, null: false
|
|
72
|
+
t.string "email", limit: 255
|
|
73
|
+
t.text "bio"
|
|
74
|
+
t.datetime "created_at", null: false
|
|
75
|
+
t.datetime "updated_at", null: false
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
create_table "batch_operation_items", force: :cascade do |t|
|
|
79
|
+
t.integer "batch_operation_id"
|
|
80
|
+
t.string "record_type"
|
|
81
|
+
t.integer "record_id"
|
|
82
|
+
t.integer "row_number"
|
|
83
|
+
t.string "action_taken"
|
|
84
|
+
t.json "error_details"
|
|
85
|
+
t.json "record_changes"
|
|
86
|
+
t.datetime "created_at", null: false
|
|
87
|
+
t.datetime "updated_at", null: false
|
|
88
|
+
t.index ["action_taken"], name: "index_batch_operation_items_on_action_taken"
|
|
89
|
+
t.index ["batch_operation_id"], name: "index_batch_operation_items_on_batch_operation_id"
|
|
90
|
+
t.index ["record_type", "record_id"], name: "index_batch_operation_items_on_record_type_and_record_id"
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
create_table "batch_operations", force: :cascade do |t|
|
|
94
|
+
t.string "operation_type"
|
|
95
|
+
t.string "action_name"
|
|
96
|
+
t.string "target_model"
|
|
97
|
+
t.string "presenter_name"
|
|
98
|
+
t.string "selection_mode"
|
|
99
|
+
t.string "status", default: "pending"
|
|
100
|
+
t.integer "total_count", default: 0
|
|
101
|
+
t.integer "success_count", default: 0
|
|
102
|
+
t.integer "skipped_count", default: 0
|
|
103
|
+
t.integer "error_count", default: 0
|
|
104
|
+
t.json "parameters"
|
|
105
|
+
t.text "result_summary"
|
|
106
|
+
t.string "file_name"
|
|
107
|
+
t.datetime "created_at", null: false
|
|
108
|
+
t.datetime "updated_at", null: false
|
|
109
|
+
t.bigint "created_by_id"
|
|
110
|
+
t.bigint "updated_by_id"
|
|
111
|
+
t.string "created_by_name"
|
|
112
|
+
t.string "updated_by_name"
|
|
113
|
+
t.index ["created_at"], name: "index_batch_operations_on_created_at"
|
|
114
|
+
t.index ["created_by_id"], name: "index_batch_operations_on_created_by_id"
|
|
115
|
+
t.index ["operation_type", "status"], name: "index_batch_operations_on_operation_type_and_status"
|
|
116
|
+
t.index ["target_model"], name: "index_batch_operations_on_target_model"
|
|
117
|
+
t.index ["updated_by_id"], name: "index_batch_operations_on_updated_by_id"
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
create_table "categories", force: :cascade do |t|
|
|
121
|
+
t.string "name", limit: 100, null: false
|
|
122
|
+
t.text "description"
|
|
123
|
+
t.integer "parent_id"
|
|
124
|
+
t.datetime "created_at", null: false
|
|
125
|
+
t.datetime "updated_at", null: false
|
|
126
|
+
t.index ["parent_id"], name: "index_categories_on_parent_id"
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
create_table "comments", force: :cascade do |t|
|
|
130
|
+
t.text "body", null: false
|
|
131
|
+
t.string "author_name", limit: 100, null: false
|
|
132
|
+
t.integer "position", default: 0
|
|
133
|
+
t.bigint "article_id", null: false
|
|
134
|
+
t.datetime "created_at", null: false
|
|
135
|
+
t.datetime "updated_at", null: false
|
|
136
|
+
t.index ["article_id"], name: "index_comments_on_article_id"
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
create_table "custom_field_definitions", force: :cascade do |t|
|
|
140
|
+
t.string "target_model"
|
|
141
|
+
t.string "field_name"
|
|
142
|
+
t.string "custom_type", default: "string"
|
|
143
|
+
t.string "label"
|
|
144
|
+
t.text "description"
|
|
145
|
+
t.string "section", default: "Custom Fields"
|
|
146
|
+
t.integer "position", default: 0
|
|
147
|
+
t.boolean "active", default: true
|
|
148
|
+
t.boolean "required"
|
|
149
|
+
t.string "default_value"
|
|
150
|
+
t.string "placeholder"
|
|
151
|
+
t.string "hint"
|
|
152
|
+
t.integer "min_length"
|
|
153
|
+
t.integer "max_length"
|
|
154
|
+
t.decimal "min_value", precision: 15, scale: 4
|
|
155
|
+
t.decimal "max_value", precision: 15, scale: 4
|
|
156
|
+
t.integer "precision"
|
|
157
|
+
t.json "enum_values"
|
|
158
|
+
t.boolean "show_in_table"
|
|
159
|
+
t.boolean "show_in_form", default: true
|
|
160
|
+
t.boolean "show_in_show", default: true
|
|
161
|
+
t.boolean "sortable"
|
|
162
|
+
t.boolean "searchable"
|
|
163
|
+
t.string "input_type"
|
|
164
|
+
t.string "renderer"
|
|
165
|
+
t.json "renderer_options"
|
|
166
|
+
t.string "column_width"
|
|
167
|
+
t.json "extra_validations"
|
|
168
|
+
t.json "readable_by_roles"
|
|
169
|
+
t.json "writable_by_roles"
|
|
170
|
+
t.datetime "created_at", null: false
|
|
171
|
+
t.datetime "updated_at", null: false
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
create_table "departments", force: :cascade do |t|
|
|
175
|
+
t.string "name", limit: 100, null: false
|
|
176
|
+
t.string "code", limit: 20
|
|
177
|
+
t.integer "parent_id"
|
|
178
|
+
t.datetime "created_at", null: false
|
|
179
|
+
t.datetime "updated_at", null: false
|
|
180
|
+
t.index ["parent_id"], name: "index_departments_on_parent_id"
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
create_table "employee_emergency_contacts", force: :cascade do |t|
|
|
184
|
+
t.string "contact_name", limit: 100, null: false
|
|
185
|
+
t.string "relationship"
|
|
186
|
+
t.string "phone", limit: 50
|
|
187
|
+
t.string "email", limit: 255
|
|
188
|
+
t.bigint "employee_id", null: false
|
|
189
|
+
t.datetime "created_at", null: false
|
|
190
|
+
t.datetime "updated_at", null: false
|
|
191
|
+
t.index ["employee_id"], name: "index_employee_emergency_contacts_on_employee_id"
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
create_table "employee_profiles", force: :cascade do |t|
|
|
195
|
+
t.date "date_of_birth"
|
|
196
|
+
t.string "national_id", limit: 50
|
|
197
|
+
t.string "bank_account", limit: 50
|
|
198
|
+
t.text "address"
|
|
199
|
+
t.string "phone", limit: 50
|
|
200
|
+
t.date "hire_date"
|
|
201
|
+
t.decimal "salary"
|
|
202
|
+
t.text "notes"
|
|
203
|
+
t.bigint "employee_id", null: false
|
|
204
|
+
t.datetime "created_at", null: false
|
|
205
|
+
t.datetime "updated_at", null: false
|
|
206
|
+
t.index ["employee_id"], name: "index_employee_profiles_on_employee_id"
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
create_table "employee_skills", force: :cascade do |t|
|
|
210
|
+
t.bigint "employee_id", null: false
|
|
211
|
+
t.bigint "skill_id", null: false
|
|
212
|
+
t.datetime "created_at", null: false
|
|
213
|
+
t.datetime "updated_at", null: false
|
|
214
|
+
t.index ["employee_id"], name: "index_employee_skills_on_employee_id"
|
|
215
|
+
t.index ["skill_id"], name: "index_employee_skills_on_skill_id"
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
create_table "employees", force: :cascade do |t|
|
|
219
|
+
t.string "name", limit: 100, null: false
|
|
220
|
+
t.string "email", limit: 255
|
|
221
|
+
t.string "role", default: "developer"
|
|
222
|
+
t.string "status", default: "active"
|
|
223
|
+
t.bigint "department_id", null: false
|
|
224
|
+
t.bigint "mentor_id"
|
|
225
|
+
t.json "custom_data", default: {}
|
|
226
|
+
t.datetime "created_at", null: false
|
|
227
|
+
t.datetime "updated_at", null: false
|
|
228
|
+
t.bigint "user_id"
|
|
229
|
+
t.index ["department_id"], name: "index_employees_on_department_id"
|
|
230
|
+
t.index ["mentor_id"], name: "index_employees_on_mentor_id"
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
create_table "features", force: :cascade do |t|
|
|
234
|
+
t.string "name", limit: 100, null: false
|
|
235
|
+
t.string "category", null: false
|
|
236
|
+
t.text "description"
|
|
237
|
+
t.text "config_example"
|
|
238
|
+
t.string "demo_path", limit: 255
|
|
239
|
+
t.text "demo_hint"
|
|
240
|
+
t.string "status", default: "stable"
|
|
241
|
+
t.datetime "created_at", null: false
|
|
242
|
+
t.datetime "updated_at", null: false
|
|
243
|
+
t.string "synopsis", limit: 200
|
|
244
|
+
t.json "docs_refs", default: "[]"
|
|
245
|
+
t.json "design_refs", default: "[]"
|
|
246
|
+
t.json "code_refs", default: "[]"
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
create_table "group_memberships", force: :cascade do |t|
|
|
250
|
+
t.integer "user_id", null: false
|
|
251
|
+
t.string "source", default: "manual"
|
|
252
|
+
t.bigint "group_id", null: false
|
|
253
|
+
t.datetime "created_at", null: false
|
|
254
|
+
t.datetime "updated_at", null: false
|
|
255
|
+
t.index ["group_id"], name: "index_group_memberships_on_group_id"
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
create_table "group_role_mappings", force: :cascade do |t|
|
|
259
|
+
t.string "role_name", limit: 50, null: false
|
|
260
|
+
t.bigint "group_id", null: false
|
|
261
|
+
t.datetime "created_at", null: false
|
|
262
|
+
t.datetime "updated_at", null: false
|
|
263
|
+
t.index ["group_id"], name: "index_group_role_mappings_on_group_id"
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
create_table "groups", force: :cascade do |t|
|
|
267
|
+
t.string "name", limit: 50, null: false
|
|
268
|
+
t.string "label", limit: 100
|
|
269
|
+
t.text "description"
|
|
270
|
+
t.string "external_id", limit: 255
|
|
271
|
+
t.string "source", default: "manual"
|
|
272
|
+
t.boolean "active", default: true
|
|
273
|
+
t.datetime "created_at", null: false
|
|
274
|
+
t.datetime "updated_at", null: false
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
create_table "host_inventory_items", force: :cascade do |t|
|
|
278
|
+
t.string "name", limit: 200, null: false
|
|
279
|
+
t.string "sku", limit: 50, null: false
|
|
280
|
+
t.text "description"
|
|
281
|
+
t.string "status", default: "draft", null: false
|
|
282
|
+
t.string "color", limit: 30
|
|
283
|
+
t.integer "price_cents", default: 0, null: false
|
|
284
|
+
t.integer "quantity", default: 0, null: false
|
|
285
|
+
t.integer "position", default: 0, null: false
|
|
286
|
+
t.datetime "discarded_at"
|
|
287
|
+
t.bigint "created_by_id"
|
|
288
|
+
t.bigint "updated_by_id"
|
|
289
|
+
t.datetime "created_at", null: false
|
|
290
|
+
t.datetime "updated_at", null: false
|
|
291
|
+
t.index ["created_by_id"], name: "index_host_inventory_items_on_created_by_id"
|
|
292
|
+
t.index ["discarded_at"], name: "index_host_inventory_items_on_discarded_at"
|
|
293
|
+
t.index ["position"], name: "index_host_inventory_items_on_position"
|
|
294
|
+
t.index ["sku"], name: "index_host_inventory_items_on_sku", unique: true
|
|
295
|
+
t.index ["status"], name: "index_host_inventory_items_on_status"
|
|
296
|
+
t.index ["updated_by_id"], name: "index_host_inventory_items_on_updated_by_id"
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
create_table "lcp_error_logs", force: :cascade do |t|
|
|
300
|
+
t.string "fingerprint"
|
|
301
|
+
t.string "error_class"
|
|
302
|
+
t.text "message"
|
|
303
|
+
t.string "subsystem"
|
|
304
|
+
t.json "stacktrace"
|
|
305
|
+
t.json "context"
|
|
306
|
+
t.integer "occurrence_count", default: 1
|
|
307
|
+
t.datetime "first_occurred_at"
|
|
308
|
+
t.datetime "last_occurred_at"
|
|
309
|
+
t.datetime "created_at", null: false
|
|
310
|
+
t.datetime "updated_at", null: false
|
|
311
|
+
t.index ["error_class"], name: "index_lcp_error_logs_on_error_class"
|
|
312
|
+
t.index ["fingerprint"], name: "index_lcp_error_logs_on_fingerprint", unique: true
|
|
313
|
+
t.index ["last_occurred_at"], name: "index_lcp_error_logs_on_last_occurred_at"
|
|
314
|
+
t.index ["subsystem", "last_occurred_at"], name: "index_lcp_error_logs_on_subsystem_and_last_occurred_at"
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
create_table "lcp_export_logs", force: :cascade do |t|
|
|
318
|
+
t.string "target_presenter"
|
|
319
|
+
t.string "format"
|
|
320
|
+
t.json "selected_fields"
|
|
321
|
+
t.json "applied_filters"
|
|
322
|
+
t.integer "record_count"
|
|
323
|
+
t.string "status", default: "completed"
|
|
324
|
+
t.text "error_message"
|
|
325
|
+
t.integer "file_size"
|
|
326
|
+
t.datetime "exported_at"
|
|
327
|
+
t.datetime "created_at", null: false
|
|
328
|
+
t.datetime "updated_at", null: false
|
|
329
|
+
t.bigint "created_by_id"
|
|
330
|
+
t.bigint "updated_by_id"
|
|
331
|
+
t.index ["created_by_id"], name: "index_lcp_export_logs_on_created_by_id"
|
|
332
|
+
t.index ["updated_by_id"], name: "index_lcp_export_logs_on_updated_by_id"
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
create_table "lcp_export_profiles", force: :cascade do |t|
|
|
336
|
+
t.string "profile_name"
|
|
337
|
+
t.string "target_presenter"
|
|
338
|
+
t.string "format", default: "csv"
|
|
339
|
+
t.json "selected_fields"
|
|
340
|
+
t.json "formatting_options"
|
|
341
|
+
t.string "visibility", default: "personal"
|
|
342
|
+
t.string "target_role"
|
|
343
|
+
t.integer "owner_id"
|
|
344
|
+
t.datetime "created_at", null: false
|
|
345
|
+
t.datetime "updated_at", null: false
|
|
346
|
+
t.bigint "created_by_id"
|
|
347
|
+
t.bigint "updated_by_id"
|
|
348
|
+
t.index ["created_by_id"], name: "index_lcp_export_profiles_on_created_by_id"
|
|
349
|
+
t.index ["updated_by_id"], name: "index_lcp_export_profiles_on_updated_by_id"
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
create_table "lcp_gapfree_sequences", force: :cascade do |t|
|
|
353
|
+
t.string "seq_model"
|
|
354
|
+
t.string "seq_field"
|
|
355
|
+
t.string "scope_key"
|
|
356
|
+
t.integer "current_value", default: 0
|
|
357
|
+
t.datetime "created_at", null: false
|
|
358
|
+
t.datetime "updated_at", null: false
|
|
359
|
+
t.index ["seq_model", "seq_field", "scope_key"], name: "idx_on_seq_model_seq_field_scope_key_8279eb92f0", unique: true
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
create_table "lcp_import_profiles", force: :cascade do |t|
|
|
363
|
+
t.string "profile_name"
|
|
364
|
+
t.string "target_model"
|
|
365
|
+
t.json "column_mapping"
|
|
366
|
+
t.json "lookup_config"
|
|
367
|
+
t.string "strategy", default: "create_only"
|
|
368
|
+
t.string "match_attribute"
|
|
369
|
+
t.json "parsing_options"
|
|
370
|
+
t.string "visibility", default: "personal"
|
|
371
|
+
t.string "target_role"
|
|
372
|
+
t.integer "owner_id"
|
|
373
|
+
t.datetime "created_at", null: false
|
|
374
|
+
t.datetime "updated_at", null: false
|
|
375
|
+
t.bigint "created_by_id"
|
|
376
|
+
t.bigint "updated_by_id"
|
|
377
|
+
t.index ["created_by_id"], name: "index_lcp_import_profiles_on_created_by_id"
|
|
378
|
+
t.index ["updated_by_id"], name: "index_lcp_import_profiles_on_updated_by_id"
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
create_table "lcp_import_rows", force: :cascade do |t|
|
|
382
|
+
t.integer "job_execution_id"
|
|
383
|
+
t.integer "row_number"
|
|
384
|
+
t.string "status", default: "pending"
|
|
385
|
+
t.text "error_message"
|
|
386
|
+
t.json "source_data"
|
|
387
|
+
t.integer "target_record_id"
|
|
388
|
+
t.string "target_record_type"
|
|
389
|
+
t.json "previous_values"
|
|
390
|
+
t.datetime "created_at", null: false
|
|
391
|
+
t.datetime "updated_at", null: false
|
|
392
|
+
t.index ["job_execution_id", "row_number"], name: "index_lcp_import_rows_on_job_execution_id_and_row_number"
|
|
393
|
+
t.index ["job_execution_id", "status"], name: "index_lcp_import_rows_on_job_execution_id_and_status"
|
|
394
|
+
t.index ["target_record_type", "target_record_id"], name: "idx_on_target_record_type_target_record_id_2e1257b81d"
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
create_table "lcp_ruby_api_tokens", force: :cascade do |t|
|
|
398
|
+
t.string "name"
|
|
399
|
+
t.string "token_prefix"
|
|
400
|
+
t.string "token_hash"
|
|
401
|
+
t.date "expires_at"
|
|
402
|
+
t.datetime "revoked_at"
|
|
403
|
+
t.datetime "last_used_at"
|
|
404
|
+
t.bigint "user_id", null: false
|
|
405
|
+
t.datetime "created_at", null: false
|
|
406
|
+
t.datetime "updated_at", null: false
|
|
407
|
+
t.index ["user_id"], name: "index_lcp_ruby_api_tokens_on_user_id"
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
create_table "lcp_ruby_users", force: :cascade do |t|
|
|
411
|
+
t.string "name", null: false
|
|
412
|
+
t.json "lcp_role", default: ["viewer"]
|
|
413
|
+
t.boolean "active", default: true, null: false
|
|
414
|
+
t.json "profile_data", default: {}
|
|
415
|
+
t.string "email", default: "", null: false
|
|
416
|
+
t.string "encrypted_password", default: "", null: false
|
|
417
|
+
t.string "reset_password_token"
|
|
418
|
+
t.datetime "reset_password_sent_at"
|
|
419
|
+
t.datetime "remember_created_at"
|
|
420
|
+
t.integer "sign_in_count", default: 0, null: false
|
|
421
|
+
t.datetime "current_sign_in_at"
|
|
422
|
+
t.datetime "last_sign_in_at"
|
|
423
|
+
t.string "current_sign_in_ip"
|
|
424
|
+
t.string "last_sign_in_ip"
|
|
425
|
+
t.integer "failed_attempts", default: 0, null: false
|
|
426
|
+
t.string "unlock_token"
|
|
427
|
+
t.datetime "locked_at"
|
|
428
|
+
t.datetime "created_at", null: false
|
|
429
|
+
t.datetime "updated_at", null: false
|
|
430
|
+
t.string "provider"
|
|
431
|
+
t.string "external_id"
|
|
432
|
+
t.index ["email"], name: "index_lcp_ruby_users_on_email", unique: true
|
|
433
|
+
t.index ["provider", "external_id"], name: "index_lcp_ruby_users_on_provider_external_id", unique: true, where: "provider IS NOT NULL"
|
|
434
|
+
t.index ["reset_password_token"], name: "index_lcp_ruby_users_on_reset_password_token", unique: true
|
|
435
|
+
t.index ["unlock_token"], name: "index_lcp_ruby_users_on_unlock_token", unique: true
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
create_table "lcp_saved_filters", force: :cascade do |t|
|
|
439
|
+
t.string "name", limit: 100, null: false
|
|
440
|
+
t.text "description"
|
|
441
|
+
t.string "target_presenter", limit: 100, null: false
|
|
442
|
+
t.json "condition_tree", null: false
|
|
443
|
+
t.text "ql_text"
|
|
444
|
+
t.string "visibility", default: "personal"
|
|
445
|
+
t.integer "owner_id", null: false
|
|
446
|
+
t.string "target_role", limit: 50
|
|
447
|
+
t.string "target_group", limit: 100
|
|
448
|
+
t.integer "position"
|
|
449
|
+
t.string "icon", limit: 50
|
|
450
|
+
t.string "color", limit: 30
|
|
451
|
+
t.boolean "pinned"
|
|
452
|
+
t.boolean "default_filter"
|
|
453
|
+
t.datetime "created_at", null: false
|
|
454
|
+
t.datetime "updated_at", null: false
|
|
455
|
+
t.bigint "created_by_id"
|
|
456
|
+
t.bigint "updated_by_id"
|
|
457
|
+
t.index ["created_by_id"], name: "index_lcp_saved_filters_on_created_by_id"
|
|
458
|
+
t.index ["updated_by_id"], name: "index_lcp_saved_filters_on_updated_by_id"
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
create_table "page_configs", force: :cascade do |t|
|
|
462
|
+
t.string "name"
|
|
463
|
+
t.json "definition"
|
|
464
|
+
t.boolean "active", default: true
|
|
465
|
+
t.text "notes"
|
|
466
|
+
t.datetime "created_at", null: false
|
|
467
|
+
t.datetime "updated_at", null: false
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
create_table "permission_configs", force: :cascade do |t|
|
|
471
|
+
t.string "target_model"
|
|
472
|
+
t.json "definition"
|
|
473
|
+
t.boolean "active", default: true
|
|
474
|
+
t.text "notes"
|
|
475
|
+
t.datetime "created_at", null: false
|
|
476
|
+
t.datetime "updated_at", null: false
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
create_table "pipeline_stages", force: :cascade do |t|
|
|
480
|
+
t.string "name", limit: 100, null: false
|
|
481
|
+
t.integer "position", null: false
|
|
482
|
+
t.string "color", limit: 7
|
|
483
|
+
t.integer "pipeline_id"
|
|
484
|
+
t.datetime "created_at", null: false
|
|
485
|
+
t.datetime "updated_at", null: false
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
create_table "pipelines", force: :cascade do |t|
|
|
489
|
+
t.string "name", limit: 100, null: false
|
|
490
|
+
t.text "description"
|
|
491
|
+
t.datetime "created_at", null: false
|
|
492
|
+
t.datetime "updated_at", null: false
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
create_table "platform_profiles", force: :cascade do |t|
|
|
496
|
+
t.string "name", limit: 100, null: false
|
|
497
|
+
t.text "bio"
|
|
498
|
+
t.datetime "created_at", null: false
|
|
499
|
+
t.datetime "updated_at", null: false
|
|
500
|
+
t.index ["name"], name: "index_platform_profiles_on_name"
|
|
501
|
+
end
|
|
502
|
+
|
|
503
|
+
create_table "profile_settings", force: :cascade do |t|
|
|
504
|
+
t.string "theme", limit: 20, default: "auto"
|
|
505
|
+
t.integer "platform_profile_id"
|
|
506
|
+
t.datetime "created_at", null: false
|
|
507
|
+
t.datetime "updated_at", null: false
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
create_table "profile_tags", force: :cascade do |t|
|
|
511
|
+
t.string "name", limit: 50, null: false
|
|
512
|
+
t.integer "platform_profile_id"
|
|
513
|
+
t.datetime "created_at", null: false
|
|
514
|
+
t.datetime "updated_at", null: false
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
create_table "projects", force: :cascade do |t|
|
|
518
|
+
t.string "name", limit: 200, null: false
|
|
519
|
+
t.string "status", default: "active"
|
|
520
|
+
t.bigint "department_id", null: false
|
|
521
|
+
t.bigint "lead_id"
|
|
522
|
+
t.json "custom_data", default: {}
|
|
523
|
+
t.datetime "created_at", null: false
|
|
524
|
+
t.datetime "updated_at", null: false
|
|
525
|
+
t.bigint "created_by_id"
|
|
526
|
+
t.bigint "updated_by_id"
|
|
527
|
+
t.index ["created_by_id"], name: "index_projects_on_created_by_id"
|
|
528
|
+
t.index ["department_id"], name: "index_projects_on_department_id"
|
|
529
|
+
t.index ["lead_id"], name: "index_projects_on_lead_id"
|
|
530
|
+
t.index ["updated_by_id"], name: "index_projects_on_updated_by_id"
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
create_table "roles", force: :cascade do |t|
|
|
534
|
+
t.string "name", limit: 50, null: false
|
|
535
|
+
t.string "label", limit: 100
|
|
536
|
+
t.text "description"
|
|
537
|
+
t.boolean "active", default: true
|
|
538
|
+
t.integer "position", default: 0
|
|
539
|
+
t.datetime "created_at", null: false
|
|
540
|
+
t.datetime "updated_at", null: false
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
create_table "showcase_aggregate_companies", force: :cascade do |t|
|
|
544
|
+
t.string "name", limit: 100, null: false
|
|
545
|
+
t.string "country", limit: 100
|
|
546
|
+
t.datetime "created_at", null: false
|
|
547
|
+
t.datetime "updated_at", null: false
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
create_table "showcase_aggregate_items", force: :cascade do |t|
|
|
551
|
+
t.string "title", limit: 200, null: false
|
|
552
|
+
t.string "status", default: "todo"
|
|
553
|
+
t.decimal "hours"
|
|
554
|
+
t.decimal "cost"
|
|
555
|
+
t.integer "priority_score"
|
|
556
|
+
t.date "due_date"
|
|
557
|
+
t.string "assignee", limit: 100
|
|
558
|
+
t.bigint "showcase_aggregate_id", null: false
|
|
559
|
+
t.datetime "created_at", null: false
|
|
560
|
+
t.datetime "updated_at", null: false
|
|
561
|
+
t.index ["showcase_aggregate_id"], name: "index_showcase_aggregate_items_on_showcase_aggregate_id"
|
|
562
|
+
end
|
|
563
|
+
|
|
564
|
+
create_table "showcase_aggregates", force: :cascade do |t|
|
|
565
|
+
t.string "name", limit: 200, null: false
|
|
566
|
+
t.text "description"
|
|
567
|
+
t.string "status", default: "active"
|
|
568
|
+
t.decimal "budget"
|
|
569
|
+
t.integer "company_id"
|
|
570
|
+
t.datetime "created_at", null: false
|
|
571
|
+
t.datetime "updated_at", null: false
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
create_table "showcase_announcements", force: :cascade do |t|
|
|
575
|
+
t.string "title", limit: 200, null: false
|
|
576
|
+
t.text "body"
|
|
577
|
+
t.string "priority", default: "normal"
|
|
578
|
+
t.datetime "published_at"
|
|
579
|
+
t.datetime "created_at", null: false
|
|
580
|
+
t.datetime "updated_at", null: false
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
create_table "showcase_arrays", force: :cascade do |t|
|
|
584
|
+
t.string "title", limit: 150, null: false
|
|
585
|
+
t.text "description"
|
|
586
|
+
t.json "tags", default: "[]"
|
|
587
|
+
t.json "categories", default: "[]"
|
|
588
|
+
t.json "scores", default: "[]"
|
|
589
|
+
t.json "measurements", default: "[]"
|
|
590
|
+
t.json "default_labels", default: "[\"important\",\"review\"]"
|
|
591
|
+
t.string "record_type", default: "basic"
|
|
592
|
+
t.boolean "featured"
|
|
593
|
+
t.datetime "created_at", null: false
|
|
594
|
+
t.datetime "updated_at", null: false
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
create_table "showcase_attachments", force: :cascade do |t|
|
|
598
|
+
t.string "title", limit: 255, null: false
|
|
599
|
+
t.datetime "created_at", null: false
|
|
600
|
+
t.datetime "updated_at", null: false
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
create_table "showcase_audit_logs", force: :cascade do |t|
|
|
604
|
+
t.string "auditable_type"
|
|
605
|
+
t.integer "auditable_id"
|
|
606
|
+
t.string "action"
|
|
607
|
+
t.json "changes_data"
|
|
608
|
+
t.integer "user_id"
|
|
609
|
+
t.json "user_snapshot"
|
|
610
|
+
t.json "metadata"
|
|
611
|
+
t.datetime "created_at"
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
create_table "showcase_audited_records", force: :cascade do |t|
|
|
615
|
+
t.string "title", null: false
|
|
616
|
+
t.text "description"
|
|
617
|
+
t.string "status", default: "draft"
|
|
618
|
+
t.string "priority", default: "normal"
|
|
619
|
+
t.decimal "amount", precision: 12, scale: 2
|
|
620
|
+
t.decimal "completion", precision: 5, scale: 2
|
|
621
|
+
t.datetime "created_at", null: false
|
|
622
|
+
t.datetime "updated_at", null: false
|
|
623
|
+
end
|
|
624
|
+
|
|
625
|
+
create_table "showcase_batch_tasks", force: :cascade do |t|
|
|
626
|
+
t.string "title", limit: 200, null: false
|
|
627
|
+
t.text "description"
|
|
628
|
+
t.string "status", default: "open"
|
|
629
|
+
t.string "priority", default: "normal"
|
|
630
|
+
t.string "assignee", limit: 100
|
|
631
|
+
t.date "due_date"
|
|
632
|
+
t.decimal "estimated_hours", precision: 6, scale: 1
|
|
633
|
+
t.datetime "created_at", null: false
|
|
634
|
+
t.datetime "updated_at", null: false
|
|
635
|
+
t.bigint "created_by_id"
|
|
636
|
+
t.bigint "updated_by_id"
|
|
637
|
+
t.string "created_by_name"
|
|
638
|
+
t.string "updated_by_name"
|
|
639
|
+
t.datetime "discarded_at"
|
|
640
|
+
t.string "discarded_by_type"
|
|
641
|
+
t.bigint "discarded_by_id"
|
|
642
|
+
t.index ["created_by_id"], name: "index_showcase_batch_tasks_on_created_by_id"
|
|
643
|
+
t.index ["discarded_at"], name: "index_showcase_batch_tasks_on_discarded_at"
|
|
644
|
+
t.index ["discarded_by_type", "discarded_by_id"], name: "idx_on_discarded_by_type_discarded_by_id_380190f9fe"
|
|
645
|
+
t.index ["updated_by_id"], name: "index_showcase_batch_tasks_on_updated_by_id"
|
|
646
|
+
end
|
|
647
|
+
|
|
648
|
+
create_table "showcase_business_units", force: :cascade do |t|
|
|
649
|
+
t.string "vema_code", limit: 20, null: false
|
|
650
|
+
t.string "name", limit: 100, null: false
|
|
651
|
+
t.text "description"
|
|
652
|
+
t.datetime "created_at", null: false
|
|
653
|
+
t.datetime "updated_at", null: false
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
create_table "showcase_condition_categories", force: :cascade do |t|
|
|
657
|
+
t.string "name", limit: 100, null: false
|
|
658
|
+
t.string "industry", limit: 100
|
|
659
|
+
t.string "country_code", limit: 10
|
|
660
|
+
t.boolean "verified"
|
|
661
|
+
t.datetime "created_at", null: false
|
|
662
|
+
t.datetime "updated_at", null: false
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
create_table "showcase_condition_tasks", force: :cascade do |t|
|
|
666
|
+
t.string "title", limit: 200, null: false
|
|
667
|
+
t.string "status", default: "pending"
|
|
668
|
+
t.string "reviewer_name", limit: 100
|
|
669
|
+
t.bigint "showcase_condition_id", null: false
|
|
670
|
+
t.datetime "created_at", null: false
|
|
671
|
+
t.datetime "updated_at", null: false
|
|
672
|
+
t.index ["showcase_condition_id"], name: "index_showcase_condition_tasks_on_showcase_condition_id"
|
|
673
|
+
end
|
|
674
|
+
|
|
675
|
+
create_table "showcase_condition_thresholds", force: :cascade do |t|
|
|
676
|
+
t.string "key", limit: 50, null: false
|
|
677
|
+
t.decimal "threshold", precision: 10, scale: 2, null: false
|
|
678
|
+
t.string "label", limit: 100
|
|
679
|
+
t.datetime "created_at", null: false
|
|
680
|
+
t.datetime "updated_at", null: false
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
create_table "showcase_conditions", force: :cascade do |t|
|
|
684
|
+
t.string "title", limit: 200, null: false
|
|
685
|
+
t.string "status", default: "draft"
|
|
686
|
+
t.string "priority", default: "medium"
|
|
687
|
+
t.decimal "amount", precision: 10, scale: 2, default: "0.0"
|
|
688
|
+
t.decimal "budget_limit", precision: 10, scale: 2, default: "10000.0"
|
|
689
|
+
t.integer "author_id", default: 1
|
|
690
|
+
t.date "due_date"
|
|
691
|
+
t.string "code", limit: 50
|
|
692
|
+
t.text "description"
|
|
693
|
+
t.bigint "showcase_condition_category_id"
|
|
694
|
+
t.datetime "created_at", null: false
|
|
695
|
+
t.datetime "updated_at", null: false
|
|
696
|
+
t.index ["showcase_condition_category_id"], name: "index_showcase_conditions_on_showcase_condition_category_id"
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
create_table "showcase_contacts", force: :cascade do |t|
|
|
700
|
+
t.string "email", limit: 255
|
|
701
|
+
t.string "phone", limit: 50
|
|
702
|
+
t.text "notes"
|
|
703
|
+
t.string "status", default: "active"
|
|
704
|
+
t.string "source", default: "manual"
|
|
705
|
+
t.string "display_name", limit: 200
|
|
706
|
+
t.string "type"
|
|
707
|
+
t.datetime "created_at", null: false
|
|
708
|
+
t.datetime "updated_at", null: false
|
|
709
|
+
t.bigint "created_by_id"
|
|
710
|
+
t.bigint "updated_by_id"
|
|
711
|
+
t.string "created_by_name"
|
|
712
|
+
t.string "updated_by_name"
|
|
713
|
+
t.string "company_name", limit: 200
|
|
714
|
+
t.string "registration_number", limit: 50
|
|
715
|
+
t.string "website", limit: 2048
|
|
716
|
+
t.string "industry", default: "other"
|
|
717
|
+
t.string "first_name", limit: 100
|
|
718
|
+
t.string "last_name", limit: 100
|
|
719
|
+
t.date "birth_date"
|
|
720
|
+
t.string "job_title", limit: 150
|
|
721
|
+
t.index ["created_by_id"], name: "index_showcase_contacts_on_created_by_id"
|
|
722
|
+
t.index ["type"], name: "index_showcase_contacts_on_type"
|
|
723
|
+
t.index ["updated_by_id"], name: "index_showcase_contacts_on_updated_by_id"
|
|
724
|
+
end
|
|
725
|
+
|
|
726
|
+
create_table "showcase_custom_renders", force: :cascade do |t|
|
|
727
|
+
t.string "name", limit: 150, null: false
|
|
728
|
+
t.text "description"
|
|
729
|
+
t.decimal "latitude", precision: 10, scale: 7
|
|
730
|
+
t.decimal "longitude", precision: 10, scale: 7
|
|
731
|
+
t.string "status", default: "draft"
|
|
732
|
+
t.string "priority", default: "medium"
|
|
733
|
+
t.text "tags_json"
|
|
734
|
+
t.integer "score", default: 0
|
|
735
|
+
t.string "category", limit: 100
|
|
736
|
+
t.date "due_date"
|
|
737
|
+
t.text "notes"
|
|
738
|
+
t.datetime "created_at", null: false
|
|
739
|
+
t.datetime "updated_at", null: false
|
|
740
|
+
end
|
|
741
|
+
|
|
742
|
+
create_table "showcase_divisions", force: :cascade do |t|
|
|
743
|
+
t.string "vema_code", limit: 20, null: false
|
|
744
|
+
t.string "name", limit: 100, null: false
|
|
745
|
+
t.string "bu_code", null: false
|
|
746
|
+
t.datetime "created_at", null: false
|
|
747
|
+
t.datetime "updated_at", null: false
|
|
748
|
+
t.index ["bu_code"], name: "index_showcase_divisions_on_bu_code"
|
|
749
|
+
end
|
|
750
|
+
|
|
751
|
+
create_table "showcase_extensibilities", force: :cascade do |t|
|
|
752
|
+
t.string "name", limit: 100, null: false
|
|
753
|
+
t.string "currency", limit: 3
|
|
754
|
+
t.decimal "amount", precision: 12, scale: 2
|
|
755
|
+
t.integer "score"
|
|
756
|
+
t.string "normalized_name"
|
|
757
|
+
t.datetime "created_at", null: false
|
|
758
|
+
t.datetime "updated_at", null: false
|
|
759
|
+
end
|
|
760
|
+
|
|
761
|
+
create_table "showcase_fields", force: :cascade do |t|
|
|
762
|
+
t.string "title", limit: 255, null: false
|
|
763
|
+
t.text "description"
|
|
764
|
+
t.text "notes"
|
|
765
|
+
t.integer "count", default: 0
|
|
766
|
+
t.float "rating_value"
|
|
767
|
+
t.decimal "price", precision: 10, scale: 2
|
|
768
|
+
t.boolean "is_active", default: true
|
|
769
|
+
t.date "start_date"
|
|
770
|
+
t.datetime "event_time"
|
|
771
|
+
t.string "status", default: "draft"
|
|
772
|
+
t.string "priority", default: "medium"
|
|
773
|
+
t.json "metadata"
|
|
774
|
+
t.string "external_id"
|
|
775
|
+
t.string "email", limit: 255
|
|
776
|
+
t.string "phone", limit: 50
|
|
777
|
+
t.string "website", limit: 2048
|
|
778
|
+
t.string "brand_color", limit: 7
|
|
779
|
+
t.datetime "created_at", null: false
|
|
780
|
+
t.datetime "updated_at", null: false
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
create_table "showcase_form_actions", force: :cascade do |t|
|
|
784
|
+
t.string "title", limit: 200, null: false
|
|
785
|
+
t.text "description"
|
|
786
|
+
t.string "status", default: "draft"
|
|
787
|
+
t.string "priority", default: "normal"
|
|
788
|
+
t.string "category"
|
|
789
|
+
t.text "notes"
|
|
790
|
+
t.datetime "submitted_at"
|
|
791
|
+
t.datetime "published_at"
|
|
792
|
+
t.datetime "created_at", null: false
|
|
793
|
+
t.datetime "updated_at", null: false
|
|
794
|
+
t.bigint "created_by_id"
|
|
795
|
+
t.bigint "updated_by_id"
|
|
796
|
+
t.string "created_by_name"
|
|
797
|
+
t.string "updated_by_name"
|
|
798
|
+
t.integer "workflow_version"
|
|
799
|
+
t.index ["created_by_id"], name: "index_showcase_form_actions_on_created_by_id"
|
|
800
|
+
t.index ["updated_by_id"], name: "index_showcase_form_actions_on_updated_by_id"
|
|
801
|
+
end
|
|
802
|
+
|
|
803
|
+
create_table "showcase_forms", force: :cascade do |t|
|
|
804
|
+
t.string "name", limit: 100, null: false
|
|
805
|
+
t.string "form_type", default: "simple"
|
|
806
|
+
t.integer "priority", default: 50
|
|
807
|
+
t.integer "satisfaction", default: 3
|
|
808
|
+
t.boolean "is_premium"
|
|
809
|
+
t.text "detailed_notes"
|
|
810
|
+
t.json "config_data"
|
|
811
|
+
t.string "reason", limit: 255
|
|
812
|
+
t.text "rejection_reason"
|
|
813
|
+
t.string "advanced_field_1", limit: 255
|
|
814
|
+
t.string "advanced_field_2", limit: 255
|
|
815
|
+
t.datetime "created_at", null: false
|
|
816
|
+
t.datetime "updated_at", null: false
|
|
817
|
+
t.boolean "send_newsletter"
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
create_table "showcase_grades", force: :cascade do |t|
|
|
821
|
+
t.string "subject", limit: 50, null: false
|
|
822
|
+
t.integer "value", null: false
|
|
823
|
+
t.date "recorded_on"
|
|
824
|
+
t.bigint "student_id", null: false
|
|
825
|
+
t.datetime "created_at", null: false
|
|
826
|
+
t.datetime "updated_at", null: false
|
|
827
|
+
t.index ["student_id"], name: "index_showcase_grades_on_student_id"
|
|
828
|
+
end
|
|
829
|
+
|
|
830
|
+
create_table "showcase_hr_employees", force: :cascade do |t|
|
|
831
|
+
t.string "name", limit: 100, null: false
|
|
832
|
+
t.string "email", limit: 255
|
|
833
|
+
t.string "job_title", limit: 100
|
|
834
|
+
t.string "status", default: "active"
|
|
835
|
+
t.string "division_code", null: false
|
|
836
|
+
t.datetime "created_at", null: false
|
|
837
|
+
t.datetime "updated_at", null: false
|
|
838
|
+
t.index ["division_code"], name: "index_showcase_hr_employees_on_division_code"
|
|
839
|
+
end
|
|
840
|
+
|
|
841
|
+
create_table "showcase_item_classes", force: :cascade do |t|
|
|
842
|
+
t.string "name", limit: 100, null: false
|
|
843
|
+
t.string "status", default: "draft"
|
|
844
|
+
t.string "priority", default: "medium"
|
|
845
|
+
t.integer "score", default: 50
|
|
846
|
+
t.decimal "amount", precision: 10, scale: 2
|
|
847
|
+
t.string "code", limit: 50
|
|
848
|
+
t.string "email", limit: 255
|
|
849
|
+
t.text "notes"
|
|
850
|
+
t.date "due_date"
|
|
851
|
+
t.datetime "created_at", null: false
|
|
852
|
+
t.datetime "updated_at", null: false
|
|
853
|
+
end
|
|
854
|
+
|
|
855
|
+
create_table "showcase_job_executions", force: :cascade do |t|
|
|
856
|
+
t.string "job_type", limit: 100, null: false
|
|
857
|
+
t.string "status", default: "pending"
|
|
858
|
+
t.integer "progress", default: 0
|
|
859
|
+
t.text "error_message"
|
|
860
|
+
t.json "log"
|
|
861
|
+
t.json "params"
|
|
862
|
+
t.string "target_model", limit: 100
|
|
863
|
+
t.integer "target_id"
|
|
864
|
+
t.datetime "started_at"
|
|
865
|
+
t.datetime "last_attempt_at"
|
|
866
|
+
t.datetime "completed_at"
|
|
867
|
+
t.datetime "scheduled_at"
|
|
868
|
+
t.boolean "cancellation_requested"
|
|
869
|
+
t.integer "triggered_by_id"
|
|
870
|
+
t.json "triggered_by_snapshot"
|
|
871
|
+
t.string "unique_key", limit: 64
|
|
872
|
+
t.string "active_job_id", limit: 100
|
|
873
|
+
t.integer "attempt", default: 0
|
|
874
|
+
t.datetime "created_at", null: false
|
|
875
|
+
t.datetime "updated_at", null: false
|
|
876
|
+
end
|
|
877
|
+
|
|
878
|
+
create_table "showcase_memos", force: :cascade do |t|
|
|
879
|
+
t.string "title", limit: 200, null: false
|
|
880
|
+
t.text "description"
|
|
881
|
+
t.string "status", default: "draft"
|
|
882
|
+
t.string "priority", default: "normal"
|
|
883
|
+
t.string "recipient", limit: 200, null: false
|
|
884
|
+
t.string "urgency", default: "normal"
|
|
885
|
+
t.date "due_date"
|
|
886
|
+
t.datetime "read_at"
|
|
887
|
+
t.datetime "created_at", null: false
|
|
888
|
+
t.datetime "updated_at", null: false
|
|
889
|
+
t.bigint "created_by_id"
|
|
890
|
+
t.bigint "updated_by_id"
|
|
891
|
+
t.string "created_by_name"
|
|
892
|
+
t.string "updated_by_name"
|
|
893
|
+
t.index ["created_by_id"], name: "index_showcase_memos_on_created_by_id"
|
|
894
|
+
t.index ["updated_by_id"], name: "index_showcase_memos_on_updated_by_id"
|
|
895
|
+
end
|
|
896
|
+
|
|
897
|
+
create_table "showcase_models", force: :cascade do |t|
|
|
898
|
+
t.string "name", limit: 100, null: false
|
|
899
|
+
t.string "code", limit: 50
|
|
900
|
+
t.string "status", default: "draft"
|
|
901
|
+
t.decimal "amount", precision: 10, scale: 2
|
|
902
|
+
t.date "due_date"
|
|
903
|
+
t.date "auto_date"
|
|
904
|
+
t.string "computed_label"
|
|
905
|
+
t.decimal "computed_score", precision: 10, scale: 2
|
|
906
|
+
t.string "email", limit: 255
|
|
907
|
+
t.string "phone", limit: 50
|
|
908
|
+
t.string "website", limit: 2048
|
|
909
|
+
t.integer "max_value", default: 100
|
|
910
|
+
t.integer "min_value"
|
|
911
|
+
t.json "tags_json"
|
|
912
|
+
t.datetime "created_at", null: false
|
|
913
|
+
t.datetime "updated_at", null: false
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
create_table "showcase_permissions", force: :cascade do |t|
|
|
917
|
+
t.string "title", limit: 255, null: false
|
|
918
|
+
t.string "status", default: "open"
|
|
919
|
+
t.integer "owner_id", default: 1
|
|
920
|
+
t.integer "assignee_id"
|
|
921
|
+
t.string "priority", default: "medium"
|
|
922
|
+
t.boolean "confidential"
|
|
923
|
+
t.text "internal_notes"
|
|
924
|
+
t.text "public_notes"
|
|
925
|
+
t.datetime "created_at", null: false
|
|
926
|
+
t.datetime "updated_at", null: false
|
|
927
|
+
end
|
|
928
|
+
|
|
929
|
+
create_table "showcase_positionings", force: :cascade do |t|
|
|
930
|
+
t.string "name", limit: 100, null: false
|
|
931
|
+
t.text "description"
|
|
932
|
+
t.integer "position", null: false
|
|
933
|
+
t.string "status", default: "todo"
|
|
934
|
+
t.string "priority", default: "medium"
|
|
935
|
+
t.datetime "created_at", null: false
|
|
936
|
+
t.datetime "updated_at", null: false
|
|
937
|
+
end
|
|
938
|
+
|
|
939
|
+
create_table "showcase_recipes", force: :cascade do |t|
|
|
940
|
+
t.string "title", limit: 200, null: false
|
|
941
|
+
t.string "cuisine", default: "other"
|
|
942
|
+
t.integer "servings", default: 4
|
|
943
|
+
t.json "steps"
|
|
944
|
+
t.json "ingredients"
|
|
945
|
+
t.datetime "created_at", null: false
|
|
946
|
+
t.datetime "updated_at", null: false
|
|
947
|
+
end
|
|
948
|
+
|
|
949
|
+
create_table "showcase_reports", force: :cascade do |t|
|
|
950
|
+
t.string "title", limit: 200, null: false
|
|
951
|
+
t.text "description"
|
|
952
|
+
t.string "status", default: "draft"
|
|
953
|
+
t.string "priority", default: "normal"
|
|
954
|
+
t.string "category", default: "general"
|
|
955
|
+
t.string "tags", limit: 255
|
|
956
|
+
t.date "report_date"
|
|
957
|
+
t.string "author_name", limit: 100
|
|
958
|
+
t.boolean "confidential"
|
|
959
|
+
t.integer "page_count", default: 0
|
|
960
|
+
t.datetime "created_at", null: false
|
|
961
|
+
t.datetime "updated_at", null: false
|
|
962
|
+
t.bigint "created_by_id"
|
|
963
|
+
t.bigint "updated_by_id"
|
|
964
|
+
t.string "created_by_name"
|
|
965
|
+
t.string "updated_by_name"
|
|
966
|
+
t.index ["created_by_id"], name: "index_showcase_reports_on_created_by_id"
|
|
967
|
+
t.index ["updated_by_id"], name: "index_showcase_reports_on_updated_by_id"
|
|
968
|
+
end
|
|
969
|
+
|
|
970
|
+
create_table "showcase_school_classes", force: :cascade do |t|
|
|
971
|
+
t.string "name", limit: 100, null: false
|
|
972
|
+
t.integer "year", null: false
|
|
973
|
+
t.integer "teacher_id", null: false
|
|
974
|
+
t.datetime "created_at", null: false
|
|
975
|
+
t.datetime "updated_at", null: false
|
|
976
|
+
end
|
|
977
|
+
|
|
978
|
+
create_table "showcase_searches", force: :cascade do |t|
|
|
979
|
+
t.string "title", limit: 200, null: false
|
|
980
|
+
t.text "description"
|
|
981
|
+
t.integer "quantity", default: 0
|
|
982
|
+
t.float "rating"
|
|
983
|
+
t.decimal "price", precision: 10, scale: 2
|
|
984
|
+
t.boolean "published"
|
|
985
|
+
t.date "release_date"
|
|
986
|
+
t.datetime "last_reviewed_at"
|
|
987
|
+
t.string "status", default: "draft"
|
|
988
|
+
t.string "priority", default: "medium"
|
|
989
|
+
t.string "tracking_id"
|
|
990
|
+
t.string "contact_email", limit: 255
|
|
991
|
+
t.string "contact_phone", limit: 50
|
|
992
|
+
t.string "source_url", limit: 2048
|
|
993
|
+
t.bigint "department_id"
|
|
994
|
+
t.bigint "category_id"
|
|
995
|
+
t.bigint "author_id"
|
|
996
|
+
t.datetime "created_at", null: false
|
|
997
|
+
t.datetime "updated_at", null: false
|
|
998
|
+
t.index ["author_id"], name: "index_showcase_searches_on_author_id"
|
|
999
|
+
t.index ["category_id"], name: "index_showcase_searches_on_category_id"
|
|
1000
|
+
t.index ["department_id"], name: "index_showcase_searches_on_department_id"
|
|
1001
|
+
end
|
|
1002
|
+
|
|
1003
|
+
create_table "showcase_sequences", force: :cascade do |t|
|
|
1004
|
+
t.string "ticket_code"
|
|
1005
|
+
t.string "invoice_number"
|
|
1006
|
+
t.string "category_seq"
|
|
1007
|
+
t.integer "raw_counter"
|
|
1008
|
+
t.integer "order_ref"
|
|
1009
|
+
t.string "backfill_code"
|
|
1010
|
+
t.string "title", limit: 200, null: false
|
|
1011
|
+
t.string "category", default: "general"
|
|
1012
|
+
t.text "description"
|
|
1013
|
+
t.datetime "created_at", null: false
|
|
1014
|
+
t.datetime "updated_at", null: false
|
|
1015
|
+
t.index ["backfill_code"], name: "idx_showcase_sequences_seq_backfill_code", unique: true
|
|
1016
|
+
t.index ["category", "category_seq"], name: "idx_showcase_sequences_seq_category_seq", unique: true
|
|
1017
|
+
t.index ["invoice_number"], name: "idx_showcase_sequences_seq_invoice_number"
|
|
1018
|
+
t.index ["order_ref"], name: "idx_showcase_sequences_seq_order_ref", unique: true
|
|
1019
|
+
t.index ["raw_counter"], name: "idx_showcase_sequences_seq_raw_counter", unique: true
|
|
1020
|
+
t.index ["ticket_code"], name: "idx_showcase_sequences_seq_ticket_code", unique: true
|
|
1021
|
+
end
|
|
1022
|
+
|
|
1023
|
+
create_table "showcase_soft_delete_items", force: :cascade do |t|
|
|
1024
|
+
t.string "name", limit: 150, null: false
|
|
1025
|
+
t.text "notes"
|
|
1026
|
+
t.bigint "showcase_soft_delete_id", null: false
|
|
1027
|
+
t.datetime "created_at", null: false
|
|
1028
|
+
t.datetime "updated_at", null: false
|
|
1029
|
+
t.datetime "discarded_at"
|
|
1030
|
+
t.string "discarded_by_type"
|
|
1031
|
+
t.bigint "discarded_by_id"
|
|
1032
|
+
t.index ["discarded_at"], name: "index_showcase_soft_delete_items_on_discarded_at"
|
|
1033
|
+
t.index ["discarded_by_type", "discarded_by_id"], name: "idx_on_discarded_by_type_discarded_by_id_3c9f556729"
|
|
1034
|
+
t.index ["showcase_soft_delete_id"], name: "index_showcase_soft_delete_items_on_showcase_soft_delete_id"
|
|
1035
|
+
end
|
|
1036
|
+
|
|
1037
|
+
create_table "showcase_soft_deletes", force: :cascade do |t|
|
|
1038
|
+
t.string "title", limit: 200, null: false
|
|
1039
|
+
t.text "content"
|
|
1040
|
+
t.string "status", default: "draft"
|
|
1041
|
+
t.string "priority", default: "normal"
|
|
1042
|
+
t.datetime "created_at", null: false
|
|
1043
|
+
t.datetime "updated_at", null: false
|
|
1044
|
+
t.bigint "created_by_id"
|
|
1045
|
+
t.bigint "updated_by_id"
|
|
1046
|
+
t.string "created_by_name"
|
|
1047
|
+
t.string "updated_by_name"
|
|
1048
|
+
t.datetime "discarded_at"
|
|
1049
|
+
t.string "discarded_by_type"
|
|
1050
|
+
t.bigint "discarded_by_id"
|
|
1051
|
+
t.index ["created_by_id"], name: "index_showcase_soft_deletes_on_created_by_id"
|
|
1052
|
+
t.index ["discarded_at"], name: "index_showcase_soft_deletes_on_discarded_at"
|
|
1053
|
+
t.index ["discarded_by_type", "discarded_by_id"], name: "idx_on_discarded_by_type_discarded_by_id_715a1ad887"
|
|
1054
|
+
t.index ["updated_by_id"], name: "index_showcase_soft_deletes_on_updated_by_id"
|
|
1055
|
+
end
|
|
1056
|
+
|
|
1057
|
+
create_table "showcase_students", force: :cascade do |t|
|
|
1058
|
+
t.string "name", limit: 100, null: false
|
|
1059
|
+
t.integer "guardian_id"
|
|
1060
|
+
t.bigint "school_class_id", null: false
|
|
1061
|
+
t.datetime "created_at", null: false
|
|
1062
|
+
t.datetime "updated_at", null: false
|
|
1063
|
+
t.index ["school_class_id"], name: "index_showcase_students_on_school_class_id"
|
|
1064
|
+
end
|
|
1065
|
+
|
|
1066
|
+
create_table "showcase_type_defaults", force: :cascade do |t|
|
|
1067
|
+
t.string "title", limit: 100, null: false
|
|
1068
|
+
t.boolean "active", default: true, null: false
|
|
1069
|
+
t.string "stage", default: "draft"
|
|
1070
|
+
t.text "short_summary"
|
|
1071
|
+
t.text "body"
|
|
1072
|
+
t.decimal "score", precision: 3, scale: 1, null: false
|
|
1073
|
+
t.text "notes"
|
|
1074
|
+
t.datetime "created_at", null: false
|
|
1075
|
+
t.datetime "updated_at", null: false
|
|
1076
|
+
end
|
|
1077
|
+
|
|
1078
|
+
create_table "showcase_user_settings", force: :cascade do |t|
|
|
1079
|
+
t.string "theme", default: "light"
|
|
1080
|
+
t.string "language", default: "en"
|
|
1081
|
+
t.boolean "notifications_enabled", default: true
|
|
1082
|
+
t.string "timezone", limit: 50, default: "UTC"
|
|
1083
|
+
t.integer "user_id"
|
|
1084
|
+
t.datetime "created_at", null: false
|
|
1085
|
+
t.datetime "updated_at", null: false
|
|
1086
|
+
end
|
|
1087
|
+
|
|
1088
|
+
create_table "showcase_userstamps", force: :cascade do |t|
|
|
1089
|
+
t.string "title", limit: 200, null: false
|
|
1090
|
+
t.text "content"
|
|
1091
|
+
t.string "status", default: "draft"
|
|
1092
|
+
t.string "priority", default: "normal"
|
|
1093
|
+
t.datetime "created_at", null: false
|
|
1094
|
+
t.datetime "updated_at", null: false
|
|
1095
|
+
t.bigint "created_by_id"
|
|
1096
|
+
t.bigint "updated_by_id"
|
|
1097
|
+
t.string "created_by_name"
|
|
1098
|
+
t.string "updated_by_name"
|
|
1099
|
+
t.index ["created_by_id"], name: "index_showcase_userstamps_on_created_by_id"
|
|
1100
|
+
t.index ["updated_by_id"], name: "index_showcase_userstamps_on_updated_by_id"
|
|
1101
|
+
end
|
|
1102
|
+
|
|
1103
|
+
create_table "showcase_virtual_fields", force: :cascade do |t|
|
|
1104
|
+
t.string "name", limit: 100, null: false
|
|
1105
|
+
t.json "properties"
|
|
1106
|
+
t.datetime "created_at", null: false
|
|
1107
|
+
t.datetime "updated_at", null: false
|
|
1108
|
+
end
|
|
1109
|
+
|
|
1110
|
+
create_table "showcase_workflows", force: :cascade do |t|
|
|
1111
|
+
t.string "title", limit: 200, null: false
|
|
1112
|
+
t.text "description"
|
|
1113
|
+
t.string "status", default: "draft"
|
|
1114
|
+
t.string "priority", default: "normal"
|
|
1115
|
+
t.string "category"
|
|
1116
|
+
t.decimal "amount"
|
|
1117
|
+
t.integer "assigned_to_id"
|
|
1118
|
+
t.datetime "submitted_at"
|
|
1119
|
+
t.integer "submitted_by"
|
|
1120
|
+
t.string "submitted_by_name"
|
|
1121
|
+
t.datetime "reviewed_at"
|
|
1122
|
+
t.datetime "approved_at"
|
|
1123
|
+
t.datetime "completed_at"
|
|
1124
|
+
t.text "rejection_reason"
|
|
1125
|
+
t.decimal "approved_amount"
|
|
1126
|
+
t.text "notes"
|
|
1127
|
+
t.integer "reviewer_id", default: 1
|
|
1128
|
+
t.integer "workflow_version"
|
|
1129
|
+
t.datetime "created_at", null: false
|
|
1130
|
+
t.datetime "updated_at", null: false
|
|
1131
|
+
t.bigint "created_by_id"
|
|
1132
|
+
t.bigint "updated_by_id"
|
|
1133
|
+
t.string "created_by_name"
|
|
1134
|
+
t.string "updated_by_name"
|
|
1135
|
+
t.index ["created_by_id"], name: "index_showcase_workflows_on_created_by_id"
|
|
1136
|
+
t.index ["updated_by_id"], name: "index_showcase_workflows_on_updated_by_id"
|
|
1137
|
+
end
|
|
1138
|
+
|
|
1139
|
+
create_table "skills", force: :cascade do |t|
|
|
1140
|
+
t.string "name", limit: 100, null: false
|
|
1141
|
+
t.string "category"
|
|
1142
|
+
t.datetime "created_at", null: false
|
|
1143
|
+
t.datetime "updated_at", null: false
|
|
1144
|
+
end
|
|
1145
|
+
|
|
1146
|
+
create_table "tags", force: :cascade do |t|
|
|
1147
|
+
t.string "name", limit: 50, null: false
|
|
1148
|
+
t.string "color", limit: 7
|
|
1149
|
+
t.datetime "created_at", null: false
|
|
1150
|
+
t.datetime "updated_at", null: false
|
|
1151
|
+
end
|
|
1152
|
+
|
|
1153
|
+
create_table "workflow_approval_requests", force: :cascade do |t|
|
|
1154
|
+
t.string "record_type"
|
|
1155
|
+
t.integer "record_id"
|
|
1156
|
+
t.string "workflow_name"
|
|
1157
|
+
t.integer "workflow_version"
|
|
1158
|
+
t.string "state_name"
|
|
1159
|
+
t.string "strategy"
|
|
1160
|
+
t.string "status", default: "pending"
|
|
1161
|
+
t.integer "initiated_by_id"
|
|
1162
|
+
t.json "initiated_by_snapshot"
|
|
1163
|
+
t.integer "previous_request_id"
|
|
1164
|
+
t.integer "restart_count", default: 0
|
|
1165
|
+
t.datetime "resolved_at"
|
|
1166
|
+
t.datetime "created_at", null: false
|
|
1167
|
+
t.datetime "updated_at", null: false
|
|
1168
|
+
t.index ["record_type", "record_id", "status"], name: "idx_on_record_type_record_id_status_3867ccd2e1"
|
|
1169
|
+
t.index ["status", "created_at"], name: "index_workflow_approval_requests_on_status_and_created_at"
|
|
1170
|
+
end
|
|
1171
|
+
|
|
1172
|
+
create_table "workflow_approval_steps", force: :cascade do |t|
|
|
1173
|
+
t.integer "approval_request_id"
|
|
1174
|
+
t.string "step_name"
|
|
1175
|
+
t.string "label"
|
|
1176
|
+
t.integer "position"
|
|
1177
|
+
t.string "status", default: "pending"
|
|
1178
|
+
t.integer "required_approvals", default: 1
|
|
1179
|
+
t.string "assignment", default: "all"
|
|
1180
|
+
t.datetime "activated_at"
|
|
1181
|
+
t.datetime "completed_at"
|
|
1182
|
+
t.datetime "created_at", null: false
|
|
1183
|
+
t.datetime "updated_at", null: false
|
|
1184
|
+
t.index ["approval_request_id", "position"], name: "idx_on_approval_request_id_position_5d0caa0953"
|
|
1185
|
+
end
|
|
1186
|
+
|
|
1187
|
+
create_table "workflow_approval_tasks", force: :cascade do |t|
|
|
1188
|
+
t.integer "approval_step_id"
|
|
1189
|
+
t.integer "approver_id"
|
|
1190
|
+
t.json "approver_snapshot"
|
|
1191
|
+
t.string "status", default: "pending"
|
|
1192
|
+
t.integer "delegated_from_id"
|
|
1193
|
+
t.text "comment"
|
|
1194
|
+
t.datetime "claimed_at"
|
|
1195
|
+
t.datetime "decided_at"
|
|
1196
|
+
t.datetime "created_at", null: false
|
|
1197
|
+
t.datetime "updated_at", null: false
|
|
1198
|
+
t.index ["approval_step_id", "status"], name: "index_workflow_approval_tasks_on_approval_step_id_and_status"
|
|
1199
|
+
t.index ["approver_id", "status"], name: "index_workflow_approval_tasks_on_approver_id_and_status"
|
|
1200
|
+
end
|
|
1201
|
+
|
|
1202
|
+
create_table "workflow_audit_logs", force: :cascade do |t|
|
|
1203
|
+
t.string "record_type"
|
|
1204
|
+
t.integer "record_id"
|
|
1205
|
+
t.string "workflow_name"
|
|
1206
|
+
t.integer "workflow_version"
|
|
1207
|
+
t.string "transition_name"
|
|
1208
|
+
t.string "from_state"
|
|
1209
|
+
t.string "to_state"
|
|
1210
|
+
t.integer "user_id"
|
|
1211
|
+
t.json "user_snapshot"
|
|
1212
|
+
t.text "comment"
|
|
1213
|
+
t.json "metadata"
|
|
1214
|
+
t.datetime "created_at"
|
|
1215
|
+
t.index ["record_type", "record_id", "created_at"], name: "idx_on_record_type_record_id_created_at_372c8a3856"
|
|
1216
|
+
t.index ["user_id", "created_at"], name: "index_workflow_audit_logs_on_user_id_and_created_at"
|
|
1217
|
+
t.index ["workflow_name", "transition_name", "created_at"], name: "idx_on_workflow_name_transition_name_created_at_fcc1225523"
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1220
|
+
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
|
|
1221
|
+
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
|
|
1222
|
+
end
|