logistics_core 20.8.1
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/MIT-LICENSE +20 -0
- data/README.md +28 -0
- data/Rakefile +38 -0
- data/app/controllers/concerns/controller_common.rb +56 -0
- data/app/controllers/concerns/lookup_common.rb +64 -0
- data/app/controllers/concerns/lookup_list.rb +24 -0
- data/app/controllers/logistics/core/acquisition_modes_controller.rb +7 -0
- data/app/controllers/logistics/core/addendums_controller.rb +47 -0
- data/app/controllers/logistics/core/additional_documents_controller.rb +50 -0
- data/app/controllers/logistics/core/agencies_controller.rb +76 -0
- data/app/controllers/logistics/core/agency_categories_controller.rb +50 -0
- data/app/controllers/logistics/core/agency_permit_documents_controller.rb +58 -0
- data/app/controllers/logistics/core/agents_controller.rb +56 -0
- data/app/controllers/logistics/core/air_weigh_bills_controller.rb +61 -0
- data/app/controllers/logistics/core/application_controller.rb +10 -0
- data/app/controllers/logistics/core/bill_of_loading_rates_controller.rb +62 -0
- data/app/controllers/logistics/core/break_bulk_rates_controller.rb +62 -0
- data/app/controllers/logistics/core/break_bulk_storage_rates_controller.rb +46 -0
- data/app/controllers/logistics/core/break_bulk_truck_assignments_controller.rb +54 -0
- data/app/controllers/logistics/core/break_bulk_unit_rates_controller.rb +61 -0
- data/app/controllers/logistics/core/break_bulk_units_controller.rb +56 -0
- data/app/controllers/logistics/core/broad_gauge_bbs_controller.rb +56 -0
- data/app/controllers/logistics/core/broad_gauge_cnts_controller.rb +56 -0
- data/app/controllers/logistics/core/car_carrier_rates_controller.rb +305 -0
- data/app/controllers/logistics/core/cargo_types_controller.rb +9 -0
- data/app/controllers/logistics/core/carrier_agents_controller.rb +35 -0
- data/app/controllers/logistics/core/carrier_types_controller.rb +53 -0
- data/app/controllers/logistics/core/carriers_controller.rb +70 -0
- data/app/controllers/logistics/core/chargeable_service_increments_controller.rb +45 -0
- data/app/controllers/logistics/core/chargeable_service_types_controller.rb +7 -0
- data/app/controllers/logistics/core/chargeable_service_unit_of_charges_controller.rb +103 -0
- data/app/controllers/logistics/core/chargeable_services_controller.rb +75 -0
- data/app/controllers/logistics/core/client_categories_controller.rb +7 -0
- data/app/controllers/logistics/core/client_contracts_controller.rb +7 -0
- data/app/controllers/logistics/core/clients_controller.rb +27 -0
- data/app/controllers/logistics/core/common_documents_controller.rb +53 -0
- data/app/controllers/logistics/core/communication_channels_controller.rb +9 -0
- data/app/controllers/logistics/core/container_arrangements_controller.rb +7 -0
- data/app/controllers/logistics/core/container_demurage_rates_controller.rb +44 -0
- data/app/controllers/logistics/core/container_sizes_controller.rb +54 -0
- data/app/controllers/logistics/core/container_storage_rates_controller.rb +46 -0
- data/app/controllers/logistics/core/container_types_controller.rb +54 -0
- data/app/controllers/logistics/core/content_types_controller.rb +62 -0
- data/app/controllers/logistics/core/contract_airway_bill_rates_controller.rb +55 -0
- data/app/controllers/logistics/core/contract_bill_of_loading_rates_controller.rb +55 -0
- data/app/controllers/logistics/core/contract_break_bulk_unit_rates_controller.rb +57 -0
- data/app/controllers/logistics/core/contract_container_rates_controller.rb +59 -0
- data/app/controllers/logistics/core/contract_convoy_rates_controller.rb +55 -0
- data/app/controllers/logistics/core/contract_freight_ton_rates_controller.rb +55 -0
- data/app/controllers/logistics/core/contract_item_rates_controller.rb +57 -0
- data/app/controllers/logistics/core/contract_kilogram_minimum_rates_controller.rb +52 -0
- data/app/controllers/logistics/core/contract_kilogram_rates_controller.rb +63 -0
- data/app/controllers/logistics/core/contract_services_controller.rb +33 -0
- data/app/controllers/logistics/core/contract_truck_rates_controller.rb +48 -0
- data/app/controllers/logistics/core/contract_twenty_feet_equivalence_unit_rates_controller.rb +48 -0
- data/app/controllers/logistics/core/contracts_controller.rb +54 -0
- data/app/controllers/logistics/core/convoy_rates_controller.rb +51 -0
- data/app/controllers/logistics/core/countries_controller.rb +9 -0
- data/app/controllers/logistics/core/currencies_controller.rb +9 -0
- data/app/controllers/logistics/core/currency_rates_controller.rb +51 -0
- data/app/controllers/logistics/core/customs_office_units_controller.rb +9 -0
- data/app/controllers/logistics/core/customs_offices_controller.rb +22 -0
- data/app/controllers/logistics/core/customs_transport_tariffs_controller.rb +47 -0
- data/app/controllers/logistics/core/declarants_controller.rb +44 -0
- data/app/controllers/logistics/core/declaration_types_controller.rb +53 -0
- data/app/controllers/logistics/core/delivery_terms_controller.rb +7 -0
- data/app/controllers/logistics/core/demurage_rate_periods_controller.rb +57 -0
- data/app/controllers/logistics/core/document_type_categories_controller.rb +11 -0
- data/app/controllers/logistics/core/document_type_origins_controller.rb +11 -0
- data/app/controllers/logistics/core/document_types_controller.rb +60 -0
- data/app/controllers/logistics/core/entry_points_controller.rb +7 -0
- data/app/controllers/logistics/core/esl_transport_tariff_rates_controller.rb +52 -0
- data/app/controllers/logistics/core/esl_transport_tariffs_controller.rb +45 -0
- data/app/controllers/logistics/core/freight_ton_storage_rates_controller.rb +45 -0
- data/app/controllers/logistics/core/increment_rates_controller.rb +66 -0
- data/app/controllers/logistics/core/item_rates_controller.rb +47 -0
- data/app/controllers/logistics/core/kilogram_minimum_rates_controller.rb +53 -0
- data/app/controllers/logistics/core/kilogram_rates_controller.rb +71 -0
- data/app/controllers/logistics/core/offer_requests_controller.rb +133 -0
- data/app/controllers/logistics/core/operation_documents_controller.rb +67 -0
- data/app/controllers/logistics/core/operation_types_controller.rb +7 -0
- data/app/controllers/logistics/core/operations_controller.rb +102 -0
- data/app/controllers/logistics/core/out_of_gauge_bb_rates_controller.rb +74 -0
- data/app/controllers/logistics/core/out_of_gauge_cnt_rates_controller.rb +75 -0
- data/app/controllers/logistics/core/payment_terms_controller.rb +7 -0
- data/app/controllers/logistics/core/required_documents_controller.rb +45 -0
- data/app/controllers/logistics/core/route_lookups_controller.rb +74 -0
- data/app/controllers/logistics/core/route_rates_controller.rb +106 -0
- data/app/controllers/logistics/core/routes_controller.rb +92 -0
- data/app/controllers/logistics/core/self_driving_rates_controller.rb +305 -0
- data/app/controllers/logistics/core/service_delivery_unit_services_controller.rb +44 -0
- data/app/controllers/logistics/core/service_delivery_unit_types_controller.rb +9 -0
- data/app/controllers/logistics/core/service_delivery_units_controller.rb +92 -0
- data/app/controllers/logistics/core/service_increments_controller.rb +82 -0
- data/app/controllers/logistics/core/service_rates_controller.rb +66 -0
- data/app/controllers/logistics/core/special_increment_container_rates_controller.rb +53 -0
- data/app/controllers/logistics/core/special_increment_content_rates_controller.rb +53 -0
- data/app/controllers/logistics/core/standard_remarks_controller.rb +43 -0
- data/app/controllers/logistics/core/transaction_types_controller.rb +9 -0
- data/app/controllers/logistics/core/transport_modalities_controller.rb +9 -0
- data/app/controllers/logistics/core/transport_modes_controller.rb +7 -0
- data/app/controllers/logistics/core/transport_rate_periods_controller.rb +80 -0
- data/app/controllers/logistics/core/transport_service_types_controller.rb +7 -0
- data/app/controllers/logistics/core/transporters_controller.rb +82 -0
- data/app/controllers/logistics/core/truck_rates_controller.rb +64 -0
- data/app/controllers/logistics/core/truck_type_assignments_controller.rb +81 -0
- data/app/controllers/logistics/core/truck_type_bb_weight_ranges_controller.rb +55 -0
- data/app/controllers/logistics/core/truck_type_cnt_weight_ranges_controller.rb +63 -0
- data/app/controllers/logistics/core/twenty_feet_equivalence_ratios_controller.rb +63 -0
- data/app/controllers/logistics/core/twenty_feet_equivalent_unit_rates_controller.rb +46 -0
- data/app/controllers/logistics/core/unit_of_charges_controller.rb +9 -0
- data/app/controllers/logistics/core/unit_types_controller.rb +44 -0
- data/app/controllers/logistics/core/units_controller.rb +45 -0
- data/app/controllers/logistics/core/warehouse_rate_periods_controller.rb +57 -0
- data/app/controllers/logistics/core/warehouses_controller.rb +68 -0
- data/app/controllers/logistics/core/weight_ranges_controller.rb +67 -0
- data/app/models/concerns/lookupable.rb +15 -0
- data/app/models/logistics/application_record.rb +5 -0
- data/app/models/logistics/core.rb +7 -0
- data/app/models/logistics/core/acquisition_mode.rb +7 -0
- data/app/models/logistics/core/addendum.rb +8 -0
- data/app/models/logistics/core/additional_document.rb +12 -0
- data/app/models/logistics/core/agency.rb +14 -0
- data/app/models/logistics/core/agency_category.rb +8 -0
- data/app/models/logistics/core/agency_permit_document.rb +18 -0
- data/app/models/logistics/core/agent.rb +10 -0
- data/app/models/logistics/core/air_cargo_limit.rb +32 -0
- data/app/models/logistics/core/air_volume_factor.rb +6 -0
- data/app/models/logistics/core/airway_bill_rate.rb +33 -0
- data/app/models/logistics/core/application_record.rb +11 -0
- data/app/models/logistics/core/bill_of_lading_rate.rb +33 -0
- data/app/models/logistics/core/break_bulk_cargo_detail.rb +55 -0
- data/app/models/logistics/core/break_bulk_demurrage_rate.rb +24 -0
- data/app/models/logistics/core/break_bulk_rate.rb +32 -0
- data/app/models/logistics/core/break_bulk_storage_rate.rb +29 -0
- data/app/models/logistics/core/break_bulk_truck_assignment.rb +19 -0
- data/app/models/logistics/core/break_bulk_unit.rb +6 -0
- data/app/models/logistics/core/break_bulk_unit_rate.rb +43 -0
- data/app/models/logistics/core/broad_gauge_bb.rb +25 -0
- data/app/models/logistics/core/broad_gauge_cnt.rb +28 -0
- data/app/models/logistics/core/car_carrier_rate.rb +107 -0
- data/app/models/logistics/core/cargo_detail.rb +57 -0
- data/app/models/logistics/core/cargo_type.rb +6 -0
- data/app/models/logistics/core/carrier.rb +12 -0
- data/app/models/logistics/core/carrier_agent.rb +11 -0
- data/app/models/logistics/core/carrier_type.rb +6 -0
- data/app/models/logistics/core/chargeable_service.rb +19 -0
- data/app/models/logistics/core/chargeable_service_increment.rb +8 -0
- data/app/models/logistics/core/chargeable_service_type.rb +6 -0
- data/app/models/logistics/core/chargeable_service_unit_of_charge.rb +53 -0
- data/app/models/logistics/core/client.rb +21 -0
- data/app/models/logistics/core/client_category.rb +7 -0
- data/app/models/logistics/core/client_contract.rb +83 -0
- data/app/models/logistics/core/common_document.rb +10 -0
- data/app/models/logistics/core/communication_channel.rb +6 -0
- data/app/models/logistics/core/container_arrangement.rb +7 -0
- data/app/models/logistics/core/container_demurrage_rate.rb +29 -0
- data/app/models/logistics/core/container_size.rb +6 -0
- data/app/models/logistics/core/container_storage_rate.rb +34 -0
- data/app/models/logistics/core/container_type.rb +8 -0
- data/app/models/logistics/core/content_type.rb +6 -0
- data/app/models/logistics/core/contract.rb +10 -0
- data/app/models/logistics/core/contract_airway_bill_rate.rb +39 -0
- data/app/models/logistics/core/contract_article_cpy.rb +7 -0
- data/app/models/logistics/core/contract_bill_of_lading_rate.rb +38 -0
- data/app/models/logistics/core/contract_break_bulk_unit_rate.rb +43 -0
- data/app/models/logistics/core/contract_container_rate.rb +43 -0
- data/app/models/logistics/core/contract_convoy_rate.rb +39 -0
- data/app/models/logistics/core/contract_freight_ton_rate.rb +39 -0
- data/app/models/logistics/core/contract_item_rate.rb +39 -0
- data/app/models/logistics/core/contract_kilogram_minimum_rate.rb +10 -0
- data/app/models/logistics/core/contract_kilogram_rate.rb +9 -0
- data/app/models/logistics/core/contract_rate.rb +9 -0
- data/app/models/logistics/core/contract_service.rb +23 -0
- data/app/models/logistics/core/contract_truck_rate.rb +39 -0
- data/app/models/logistics/core/contract_twenty_feet_equivalence_unit_rate.rb +39 -0
- data/app/models/logistics/core/convoy_rate.rb +33 -0
- data/app/models/logistics/core/country.rb +7 -0
- data/app/models/logistics/core/currency.rb +35 -0
- data/app/models/logistics/core/currency_rate.rb +12 -0
- data/app/models/logistics/core/customs_office.rb +11 -0
- data/app/models/logistics/core/customs_office_unit.rb +6 -0
- data/app/models/logistics/core/customs_transport_tariff.rb +13 -0
- data/app/models/logistics/core/declarant.rb +12 -0
- data/app/models/logistics/core/declaration_type.rb +11 -0
- data/app/models/logistics/core/delivery_term.rb +7 -0
- data/app/models/logistics/core/demurrage_rate.rb +19 -0
- data/app/models/logistics/core/demurrage_rate_period.rb +18 -0
- data/app/models/logistics/core/document_type.rb +16 -0
- data/app/models/logistics/core/document_type_category.rb +8 -0
- data/app/models/logistics/core/document_type_origin.rb +8 -0
- data/app/models/logistics/core/entry_point.rb +6 -0
- data/app/models/logistics/core/equipment_service_rate.rb +8 -0
- data/app/models/logistics/core/esl_transport_tariff.rb +14 -0
- data/app/models/logistics/core/esl_transport_tariff_rate.rb +23 -0
- data/app/models/logistics/core/extended_lookup.rb +8 -0
- data/app/models/logistics/core/freight_ton_demurrage_rate.rb +19 -0
- data/app/models/logistics/core/freight_ton_storage_rate.rb +25 -0
- data/app/models/logistics/core/increment_rate.rb +8 -0
- data/app/models/logistics/core/inter_city_route.rb +13 -0
- data/app/models/logistics/core/item_rate.rb +33 -0
- data/app/models/logistics/core/kilogram_minimum_rate.rb +8 -0
- data/app/models/logistics/core/kilogram_rate.rb +33 -0
- data/app/models/logistics/core/lookup.rb +8 -0
- data/app/models/logistics/core/offer_request.rb +114 -0
- data/app/models/logistics/core/operation.rb +45 -0
- data/app/models/logistics/core/operation_document.rb +19 -0
- data/app/models/logistics/core/operation_summary.rb +8 -0
- data/app/models/logistics/core/operation_type.rb +6 -0
- data/app/models/logistics/core/out_of_gauge_bb_rate.rb +139 -0
- data/app/models/logistics/core/out_of_gauge_cnt_rate.rb +138 -0
- data/app/models/logistics/core/payment_term.rb +7 -0
- data/app/models/logistics/core/reference_number.rb +28 -0
- data/app/models/logistics/core/required_document.rb +11 -0
- data/app/models/logistics/core/review_note.rb +24 -0
- data/app/models/logistics/core/route.rb +45 -0
- data/app/models/logistics/core/route_lookup.rb +7 -0
- data/app/models/logistics/core/route_rate.rb +332 -0
- data/app/models/logistics/core/self_driving_rate.rb +113 -0
- data/app/models/logistics/core/service_delivery_unit.rb +50 -0
- data/app/models/logistics/core/service_delivery_unit_chargeable_service.rb +7 -0
- data/app/models/logistics/core/service_delivery_unit_service.rb +8 -0
- data/app/models/logistics/core/service_delivery_unit_type.rb +10 -0
- data/app/models/logistics/core/service_increment.rb +12 -0
- data/app/models/logistics/core/service_rate.rb +42 -0
- data/app/models/logistics/core/special_increment_container_rate.rb +10 -0
- data/app/models/logistics/core/special_increment_content_rate.rb +10 -0
- data/app/models/logistics/core/standard_remark.rb +8 -0
- data/app/models/logistics/core/transaction_type.rb +6 -0
- data/app/models/logistics/core/transport_modality.rb +6 -0
- data/app/models/logistics/core/transport_mode.rb +7 -0
- data/app/models/logistics/core/transport_rate_period.rb +116 -0
- data/app/models/logistics/core/transport_service_type.rb +6 -0
- data/app/models/logistics/core/transporter.rb +11 -0
- data/app/models/logistics/core/truck_rate.rb +34 -0
- data/app/models/logistics/core/truck_type_assignment.rb +22 -0
- data/app/models/logistics/core/truck_type_bb_weight_range.rb +50 -0
- data/app/models/logistics/core/truck_type_cnt_weight_range.rb +61 -0
- data/app/models/logistics/core/twenty_feet_equivalence_ratio.rb +9 -0
- data/app/models/logistics/core/twenty_foot_equivalence_unit_rate.rb +33 -0
- data/app/models/logistics/core/unit.rb +11 -0
- data/app/models/logistics/core/unit_of_charge.rb +6 -0
- data/app/models/logistics/core/unit_type.rb +6 -0
- data/app/models/logistics/core/warehouse.rb +9 -0
- data/app/models/logistics/core/warehouse_rate_period.rb +18 -0
- data/app/models/logistics/core/weight_range.rb +59 -0
- data/app/models/logistics/core/within_city_route.rb +8 -0
- data/app/serializers/logistics/core/additional_document_serializer.rb +8 -0
- data/app/serializers/logistics/core/agency_permit_document_serializer.rb +8 -0
- data/app/serializers/logistics/core/agency_serializer.rb +8 -0
- data/app/serializers/logistics/core/chargeable_service_unit_of_charge_serializer.rb +9 -0
- data/app/serializers/logistics/core/client_serializer.rb +9 -0
- data/app/serializers/logistics/core/common_document_serializer.rb +7 -0
- data/app/serializers/logistics/core/contract_kilogram_minimum_rate_serializer.rb +25 -0
- data/app/serializers/logistics/core/contract_serializer.rb +8 -0
- data/app/serializers/logistics/core/contract_service_serializer.rb +9 -0
- data/app/serializers/logistics/core/customs_transport_tariff_serializer.rb +8 -0
- data/app/serializers/logistics/core/declaration_type_serializer.rb +7 -0
- data/app/serializers/logistics/core/document_type_serializer.rb +8 -0
- data/app/serializers/logistics/core/esl_transport_tariff_rate_serializer.rb +7 -0
- data/app/serializers/logistics/core/esl_transport_tariff_serializer.rb +7 -0
- data/app/serializers/logistics/core/kilogram_minimum_rate_serializer.rb +25 -0
- data/app/serializers/logistics/core/offer_request_serializer.rb +11 -0
- data/app/serializers/logistics/core/operation_document_serializer.rb +8 -0
- data/app/serializers/logistics/core/operation_serializer.rb +15 -0
- data/app/serializers/logistics/core/required_document_serializer.rb +8 -0
- data/app/serializers/logistics/core/route_serializer.rb +8 -0
- data/app/serializers/logistics/core/unit_serializer.rb +7 -0
- data/app/services/logistics/core/additional_document_service.rb +54 -0
- data/app/services/logistics/core/base_service.rb +13 -0
- data/app/services/logistics/core/operation_service.rb +77 -0
- data/app/services/logistics/core/service_delivery_unit_service_service.rb +35 -0
- data/app/services/logistics/core/unit_service.rb +14 -0
- data/app/uploaders/logistics/core/document_uploader.rb +15 -0
- data/app/views/logistics/core/currency/create.html.erb +2 -0
- data/app/views/logistics/core/currency/index.html.erb +2 -0
- data/app/views/logistics/core/currency/update.html.erb +2 -0
- data/config/routes.rb +310 -0
- data/db/migrate/20161002133309_create_logistics_core_lookups.rb +12 -0
- data/db/migrate/20161020024330_create_logistics_core_extended_lookups.rb +13 -0
- data/db/migrate/20161030080258_create_logistics_core_container_types.rb +9 -0
- data/db/migrate/20161030174719_create_logistics_currency_rates.rb +14 -0
- data/db/migrate/20161030174722_create_logistics_core_units.rb +14 -0
- data/db/migrate/20161031025945_create_logistics_core_service_delivery_units.rb +17 -0
- data/db/migrate/20161031043800_create_logistics_core_chargeable_services.rb +16 -0
- data/db/migrate/20161031135612_create_service_delivery_unit_chargeable_services.rb +18 -0
- data/db/migrate/20161102022717_create_logistics_core_clients.rb +21 -0
- data/db/migrate/20161102031216_create_logistics_core_customs_offices.rb +11 -0
- data/db/migrate/20161103000353_create_logistics_core_operations.rb +22 -0
- data/db/migrate/20170105124619_create_logistics_core_chargeable_service_unit_of_charges.rb +21 -0
- data/db/migrate/20170105130002_create_logistics_core_service_increments.rb +15 -0
- data/db/migrate/20170105130643_create_logistics_core_increment_rates.rb +13 -0
- data/db/migrate/20170105131735_create_logistics_core_addendums.rb +15 -0
- data/db/migrate/20170106065640_create_logistics_core_agents.rb +11 -0
- data/db/migrate/20170106070418_create_logistics_core_carriers.rb +14 -0
- data/db/migrate/20170106071022_create_logistics_core_carrier_agents.rb +10 -0
- data/db/migrate/20170106071918_create_logistics_core_air_cargo_limits.rb +18 -0
- data/db/migrate/20170106081736_create_logistics_core_air_volume_factors.rb +9 -0
- data/db/migrate/20170106082456_create_logistics_core_airway_bill_rates.rb +19 -0
- data/db/migrate/20170106084427_create_logistics_core_demurrage_rate_periods.rb +14 -0
- data/db/migrate/20170106085210_create_logistics_core_demurrage_rates.rb +15 -0
- data/db/migrate/20170106091415_create_logistics_core_break_bulk_demurrage_rates.rb +18 -0
- data/db/migrate/20170106103912_create_logistics_core_warehouses.rb +14 -0
- data/db/migrate/20170106104810_create_logistics_core_warehouse_rate_periods.rb +12 -0
- data/db/migrate/20170106105218_create_logistics_core_break_bulk_storage_rates.rb +21 -0
- data/db/migrate/20170106111420_create_logistics_core_container_storage_rates.rb +22 -0
- data/db/migrate/20170106121022_create_logistics_core_break_bulk_rates.rb +19 -0
- data/db/migrate/20170106122219_create_logistics_core_break_bulk_truck_assignments.rb +9 -0
- data/db/migrate/20170106122629_create_logistics_core_weight_ranges.rb +10 -0
- data/db/migrate/20170106122944_create_logistics_core_truck_type_bb_weight_ranges.rb +14 -0
- data/db/migrate/20170106123918_create_logistics_core_break_bulk_unit_rates.rb +20 -0
- data/db/migrate/20170107052127_create_logistics_core_broad_gauge_bbs.rb +15 -0
- data/db/migrate/20170107052954_create_logistics_core_broad_gauge_cnts.rb +17 -0
- data/db/migrate/20170107055337_create_logistics_core_service_delivery_unit_services.rb +16 -0
- data/db/migrate/20170107060238_create_logistics_core_special_increment_content_rates.rb +26 -0
- data/db/migrate/20170107061008_create_logistics_core_special_increment_container_rates.rb +27 -0
- data/db/migrate/20170107084652_create_logistics_core_truck_rates.rb +20 -0
- data/db/migrate/20170107090011_create_logistics_core_chargeable_service_increments.rb +15 -0
- data/db/migrate/20170107102732_create_logistics_core_service_rates.rb +22 -0
- data/db/migrate/20170107104554_create_logistics_core_container_demurrage_rates.rb +21 -0
- data/db/migrate/20170109144534_create_logistics_core_routes.rb +20 -0
- data/db/migrate/20170109150011_create_logistics_core_transport_rate_periods.rb +11 -0
- data/db/migrate/20170109150613_create_logistics_core_transporters.rb +19 -0
- data/db/migrate/20170109151927_create_logistics_core_route_rates.rb +23 -0
- data/db/migrate/20170110145337_create_logistics_core_car_carrier_rates.rb +24 -0
- data/db/migrate/20170110184849_create_logistics_core_offer_requests.rb +42 -0
- data/db/migrate/20170111061530_create_logistics_core_client_contracts.rb +15 -0
- data/db/migrate/20170111113802_create_logistics_core_contract_rates.rb +19 -0
- data/db/migrate/20170111122934_create_logistics_core_contract_break_bulk_unit_rates.rb +22 -0
- data/db/migrate/20170111133122_create_logistics_core_contract_container_rates.rb +23 -0
- data/db/migrate/20170111134003_create_logistics_core_contract_item_rates.rb +21 -0
- data/db/migrate/20170112014645_create_logistics_core_contract_kilogram_rates.rb +16 -0
- data/db/migrate/20170112015140_create_logistics_core_convoy_rates.rb +19 -0
- data/db/migrate/20170112015822_create_logistics_core_bill_of_lading_rates.rb +20 -0
- data/db/migrate/20170112020522_create_logistics_core_freight_ton_demurrage_rates.rb +16 -0
- data/db/migrate/20170112061446_create_logistics_core_out_of_gauge_bb_rates.rb +25 -0
- data/db/migrate/20170112061530_create_logistics_core_out_of_gauge_cnt_rates.rb +25 -0
- data/db/migrate/20170112113158_create_logistics_core_self_driving_rates.rb +24 -0
- data/db/migrate/20170112115616_create_logistics_core_twenty_foot_equivalence_unit_rates.rb +20 -0
- data/db/migrate/20170112120350_create_logistics_core_kilogram_rates.rb +21 -0
- data/db/migrate/20170112121123_create_logistics_core_item_rates.rb +18 -0
- data/db/migrate/20170113134408_create_logistics_core_freight_ton_storage_rates.rb +19 -0
- data/db/migrate/20170113135406_create_logistics_core_truck_type_assignments.rb +12 -0
- data/db/migrate/20170113135902_create_logistics_core_truck_type_cnt_weight_ranges.rb +14 -0
- data/db/migrate/20170113140429_create_logistics_core_twenty_feet_equivalence_ratios.rb +12 -0
- data/db/migrate/20170113141905_create_logistics_core_equipment_service_rates.rb +15 -0
- data/db/migrate/20170125073344_create_logistics_core_reference_numbers.rb +11 -0
- data/db/migrate/20170126151323_create_logistics_core_cargo_details.rb +25 -0
- data/db/migrate/20170127110151_create_logistics_core_review_notes.rb +11 -0
- data/db/migrate/20170127145635_create_logistics_core_break_bulk_cargo_details.rb +25 -0
- data/db/migrate/20170210095423_create_logistics_core_contract_article_cpies.rb +16 -0
- data/db/migrate/20170212094941_add_column_expiry_date_to_client_contract.rb +6 -0
- data/db/migrate/20170225094958_move_fields_from_operation_to_offer_request.rb +17 -0
- data/db/migrate/20170308115210_create_logistics_core_contracts.rb +15 -0
- data/db/migrate/20170309082108_add_contract_to_rate_table.rb +16 -0
- data/db/migrate/20170310060510_create_logistics_core_declaration_types.rb +13 -0
- data/db/migrate/20170310064056_create_logistics_core_customs_transport_tariffs.rb +16 -0
- data/db/migrate/20170310074326_create_logistics_core_esl_transport_tariffs.rb +12 -0
- data/db/migrate/20170310080233_create_logistics_core_esl_transport_tariff_rates.rb +15 -0
- data/db/migrate/20170310083816_create_logistics_core_declarants.rb +11 -0
- data/db/migrate/20170310091809_move_operation_detail_fields_to_operation.rb +28 -0
- data/db/migrate/20170310100409_add_references_to_moved_objects.rb +31 -0
- data/db/migrate/20170311181823_add_foreign_key_to_offer_request.rb +8 -0
- data/db/migrate/20170313052748_create_logistics_core_operation_documents.rb +17 -0
- data/db/migrate/20170321114843_create_logistics_core_operation_summaries.rb +14 -0
- data/db/migrate/20170323145048_create_logistics_core_document_types.rb +17 -0
- data/db/migrate/20170324064145_create_logistics_core_common_documents.rb +16 -0
- data/db/migrate/20170324081651_create_logistics_core_additional_documents.rb +19 -0
- data/db/migrate/20170324215913_add_number_of_truck_to_cargo_detail.rb +6 -0
- data/db/migrate/20170326123612_create_logistics_core_agencies.rb +23 -0
- data/db/migrate/20170327232737_create_logistics_core_agency_permit_documents.rb +18 -0
- data/db/migrate/20170420091814_add_tasks_generated_field.rb +5 -0
- data/db/migrate/20170425133404_add_owner_id_to_operation.rb +7 -0
- data/db/migrate/20170819134501_create_logistics_core_required_documents.rb +18 -0
- data/db/migrate/20171013052226_add_chargeable_service_to_kg_rate.rb +9 -0
- data/db/migrate/20171014021659_create_logistics_core_kilogram_minimum_rates.rb +14 -0
- data/db/migrate/20171014021800_create_logistics_core_contract_kilogram_minimum_rates.rb +16 -0
- data/db/migrate/20181006131541_add_file_field_to_operation_document.rb +5 -0
- data/db/migrate/20181227061223_add_code_to_client.rb +5 -0
- data/db/migrate/20182316064849_add_applicable_to_chargeable_service.rb +5 -0
- data/db/migrate/20182316101834_create_logistics_core_contract_services.rb +18 -0
- data/db/migrate/20190814145804_add_client_reference_to_operation.rb +5 -0
- data/db/migrate/20191226132714_add_user_to_operation_document.rb +6 -0
- data/db/migrate/20191228081951_create_logistics_core_standard_remarks.rb +10 -0
- data/db/migrate/20200320085930_add_date_accepted_to_operation_documents.rb +5 -0
- data/lib/logistics/core.rb +4 -0
- data/lib/logistics/core/engine.rb +31 -0
- data/lib/logistics/core/version.rb +5 -0
- data/lib/logistics_core.rb +4 -0
- data/lib/tasks/logistics_core_tasks.rake +4 -0
- data/spec/common/lookup_spec.rb +92 -0
- data/spec/controllers/logistics/core/acquisition_modes_controller_spec.rb +9 -0
- data/spec/controllers/logistics/core/additional_documents_controller_spec.rb +87 -0
- data/spec/controllers/logistics/core/agencies_controller_spec.rb +168 -0
- data/spec/controllers/logistics/core/agency_categories_controller_spec.rb +93 -0
- data/spec/controllers/logistics/core/agency_permit_documents_controller_spec.rb +101 -0
- data/spec/controllers/logistics/core/break_bulk_truck_assignments_controller_spec.rb +9 -0
- data/spec/controllers/logistics/core/break_bulk_units_controller_spec.rb +9 -0
- data/spec/controllers/logistics/core/broad_gauge_bbs_controller_spec.rb +133 -0
- data/spec/controllers/logistics/core/broad_gauge_cnts_controller_spec.rb +133 -0
- data/spec/controllers/logistics/core/car_carrier_rates_controller_spec.rb +135 -0
- data/spec/controllers/logistics/core/chargeable_services_controller_spec.rb +94 -0
- data/spec/controllers/logistics/core/client_categories_controller_spec.rb +90 -0
- data/spec/controllers/logistics/core/clients_controller_spec.rb +113 -0
- data/spec/controllers/logistics/core/common_documents_controller_spec.rb +103 -0
- data/spec/controllers/logistics/core/container_arrangements_controller_spec.rb +90 -0
- data/spec/controllers/logistics/core/container_sizes_controller_spec.rb +9 -0
- data/spec/controllers/logistics/core/container_types_controller_spec.rb +9 -0
- data/spec/controllers/logistics/core/contract_services_controller_spec.rb +7 -0
- data/spec/controllers/logistics/core/countries_controller_spec.rb +78 -0
- data/spec/controllers/logistics/core/currencies_controller_spec.rb +77 -0
- data/spec/controllers/logistics/core/currency_rates_controller_spec.rb +95 -0
- data/spec/controllers/logistics/core/customs_office_units_controller_spec.rb +77 -0
- data/spec/controllers/logistics/core/customs_offices_controller_spec.rb +92 -0
- data/spec/controllers/logistics/core/customs_transport_tariffs_controller_spec.rb +96 -0
- data/spec/controllers/logistics/core/declarants_controller_spec.rb +92 -0
- data/spec/controllers/logistics/core/declaration_types_controller_spec.rb +108 -0
- data/spec/controllers/logistics/core/delivery_terms_controller_spec.rb +89 -0
- data/spec/controllers/logistics/core/document_type_categories_controller_spec.rb +25 -0
- data/spec/controllers/logistics/core/document_type_origins_controller_spec.rb +25 -0
- data/spec/controllers/logistics/core/document_types_controller_spec.rb +120 -0
- data/spec/controllers/logistics/core/entry_points_controller_spec.rb +90 -0
- data/spec/controllers/logistics/core/esl_transport_tariff_rates_controller_spec.rb +108 -0
- data/spec/controllers/logistics/core/esl_transport_tariffs_controller_spec.rb +100 -0
- data/spec/controllers/logistics/core/operation_documents_controller_spec.rb +125 -0
- data/spec/controllers/logistics/core/operation_types_controller_spec.rb +76 -0
- data/spec/controllers/logistics/core/operations_controller_spec.rb +204 -0
- data/spec/controllers/logistics/core/out_of_gauge_bb_rates_controller_spec.rb +133 -0
- data/spec/controllers/logistics/core/out_of_gauge_cnt_rates_controller_spec.rb +133 -0
- data/spec/controllers/logistics/core/payment_terms_controller_spec.rb +90 -0
- data/spec/controllers/logistics/core/required_documents_controller_spec.rb +9 -0
- data/spec/controllers/logistics/core/route_lookups_controller_spec.rb +9 -0
- data/spec/controllers/logistics/core/route_rates_controller_spec.rb +9 -0
- data/spec/controllers/logistics/core/routes_controller_spec.rb +9 -0
- data/spec/controllers/logistics/core/self_driving_rates_controller_spec.rb +135 -0
- data/spec/controllers/logistics/core/service_delivery_unit_types_controller_spec.rb +76 -0
- data/spec/controllers/logistics/core/service_delivery_units_controller_spec.rb +96 -0
- data/spec/controllers/logistics/core/transaction_types_controller_spec.rb +76 -0
- data/spec/controllers/logistics/core/transport_modes_controller_spec.rb +90 -0
- data/spec/controllers/logistics/core/transport_rate_periods_controller_spec.rb +133 -0
- data/spec/controllers/logistics/core/transporters_controller_spec.rb +9 -0
- data/spec/controllers/logistics/core/truck_type_assignments_controller_spec.rb +9 -0
- data/spec/controllers/logistics/core/truck_type_bb_weight_ranges_controller_spec.rb +133 -0
- data/spec/controllers/logistics/core/truck_type_cnt_weight_ranges_controller_spec.rb +8 -0
- data/spec/controllers/logistics/core/unit_of_charges_controller_spec.rb +76 -0
- data/spec/controllers/logistics/core/unit_types_controller_spec.rb +92 -0
- data/spec/controllers/logistics/core/units_controller_spec.rb +97 -0
- data/spec/controllers/logistics/core/weight_ranges_controller_spec.rb +133 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/config/manifest.js +5 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/javascripts/cable.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/jobs/application_job.rb +2 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +34 -0
- data/spec/dummy/bin/update +29 -0
- data/spec/dummy/config.ru +5 -0
- data/spec/dummy/config/application.rb +24 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/cable.yml +9 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +54 -0
- data/spec/dummy/config/environments/production.rb +86 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/new_framework_defaults.rb +24 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/puma.rb +47 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config/spring.rb +6 -0
- data/spec/dummy/db/schema.rb +1383 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/factories/acquisition_modes.rb +5 -0
- data/spec/factories/addendums.rb +6 -0
- data/spec/factories/additional_documents.rb +12 -0
- data/spec/factories/agencies.rb +17 -0
- data/spec/factories/agency_categories.rb +5 -0
- data/spec/factories/agency_permit_documents.rb +11 -0
- data/spec/factories/agents.rb +7 -0
- data/spec/factories/air_cargo_limits.rb +10 -0
- data/spec/factories/air_volume_factors.rb +5 -0
- data/spec/factories/airway_bill_rates.rb +10 -0
- data/spec/factories/bill_of_lading_rates.rb +11 -0
- data/spec/factories/break_bulk_cargo_details.rb +17 -0
- data/spec/factories/break_bulk_demurrage_rates.rb +9 -0
- data/spec/factories/break_bulk_rates.rb +10 -0
- data/spec/factories/break_bulk_storage_rates.rb +10 -0
- data/spec/factories/break_bulk_truck_assignments.rb +5 -0
- data/spec/factories/break_bulk_unit_rates.rb +11 -0
- data/spec/factories/break_bulk_units.rb +5 -0
- data/spec/factories/broad_gauge_bbs.rb +9 -0
- data/spec/factories/broad_gauge_cnts.rb +10 -0
- data/spec/factories/car_carrier_rates.rb +12 -0
- data/spec/factories/cargo_details.rb +18 -0
- data/spec/factories/cargo_types.rb +5 -0
- data/spec/factories/carrier_agents.rb +6 -0
- data/spec/factories/carrier_types.rb +5 -0
- data/spec/factories/carriers.rb +8 -0
- data/spec/factories/chargeable_service_increments.rb +6 -0
- data/spec/factories/chargeable_service_types.rb +5 -0
- data/spec/factories/chargeable_service_unit_of_charges.rb +8 -0
- data/spec/factories/chargeable_services.rb +8 -0
- data/spec/factories/client_categories.rb +5 -0
- data/spec/factories/client_contracts.rb +9 -0
- data/spec/factories/clients.rb +13 -0
- data/spec/factories/common_documents.rb +10 -0
- data/spec/factories/communication_channels.rb +5 -0
- data/spec/factories/container_arrangements.rb +5 -0
- data/spec/factories/container_demurrage_rates.rb +10 -0
- data/spec/factories/container_sizes.rb +5 -0
- data/spec/factories/container_storage_rates.rb +11 -0
- data/spec/factories/container_types.rb +7 -0
- data/spec/factories/content_types.rb +5 -0
- data/spec/factories/contract.rb +10 -0
- data/spec/factories/contract_airway_bill_rates.rb +5 -0
- data/spec/factories/contract_bill_of_lading_rates.rb +5 -0
- data/spec/factories/contract_break_bulk_unit_rates.rb +10 -0
- data/spec/factories/contract_container_rates.rb +11 -0
- data/spec/factories/contract_convoy_rates.rb +5 -0
- data/spec/factories/contract_freight_ton_rates.rb +5 -0
- data/spec/factories/contract_item_rates.rb +11 -0
- data/spec/factories/contract_kilogram_rates.rb +10 -0
- data/spec/factories/contract_rates.rb +9 -0
- data/spec/factories/convoy_rates.rb +11 -0
- data/spec/factories/countries.rb +5 -0
- data/spec/factories/currencies.rb +10 -0
- data/spec/factories/currency_rates.rb +8 -0
- data/spec/factories/customs_office_units.rb +5 -0
- data/spec/factories/customs_offices.rb +7 -0
- data/spec/factories/customs_transport_tariffs.rb +9 -0
- data/spec/factories/declarants.rb +7 -0
- data/spec/factories/declaration_types.rb +7 -0
- data/spec/factories/delivery_terms.rb +5 -0
- data/spec/factories/demurrage_rate_periods.rb +8 -0
- data/spec/factories/demurrage_rates.rb +7 -0
- data/spec/factories/document_type_categories.rb +5 -0
- data/spec/factories/document_type_origins.rb +5 -0
- data/spec/factories/document_types.rb +9 -0
- data/spec/factories/entry_points.rb +5 -0
- data/spec/factories/equipment_service_rates.rb +11 -0
- data/spec/factories/esl_transport_tariff_rates.rb +8 -0
- data/spec/factories/esl_transport_tariffs.rb +6 -0
- data/spec/factories/extended_lookups.rb +8 -0
- data/spec/factories/freight_ton_demurrage_rates.rb +8 -0
- data/spec/factories/freight_ton_storage_rates.rb +9 -0
- data/spec/factories/increment_rates.rb +7 -0
- data/spec/factories/inter_city_routes.rb +5 -0
- data/spec/factories/item_rates.rb +10 -0
- data/spec/factories/kilogram_rates.rb +13 -0
- data/spec/factories/logistics_core_contract_services.rb +7 -0
- data/spec/factories/lookups.rb +7 -0
- data/spec/factories/offer_requests.rb +32 -0
- data/spec/factories/operation_documents.rb +12 -0
- data/spec/factories/operation_summaries.rb +8 -0
- data/spec/factories/operation_types.rb +5 -0
- data/spec/factories/operations.rb +33 -0
- data/spec/factories/out_of_gauge_bb_rates.rb +18 -0
- data/spec/factories/out_of_gauge_cnt_rates.rb +18 -0
- data/spec/factories/payment_terms.rb +5 -0
- data/spec/factories/required_documents.rb +11 -0
- data/spec/factories/route_lookups.rb +5 -0
- data/spec/factories/route_rates.rb +12 -0
- data/spec/factories/routes.rb +12 -0
- data/spec/factories/self_driving_rates.rb +12 -0
- data/spec/factories/service_delivery_unit_services.rb +7 -0
- data/spec/factories/service_delivery_unit_types.rb +5 -0
- data/spec/factories/service_delivery_units.rb +9 -0
- data/spec/factories/service_increments.rb +8 -0
- data/spec/factories/service_rates.rb +11 -0
- data/spec/factories/special_increment_container_rates.rb +7 -0
- data/spec/factories/special_increment_content_rates.rb +7 -0
- data/spec/factories/transaction_types.rb +5 -0
- data/spec/factories/transport_modes.rb +5 -0
- data/spec/factories/transport_rate_periods.rb +7 -0
- data/spec/factories/transport_service_types.rb +6 -0
- data/spec/factories/transporters.rb +13 -0
- data/spec/factories/truck_rates.rb +11 -0
- data/spec/factories/truck_type_assignments.rb +6 -0
- data/spec/factories/truck_type_bb_weight_ranges.rb +6 -0
- data/spec/factories/truck_type_cnt_weight_ranges.rb +6 -0
- data/spec/factories/twenty_feet_equivalence_ratios.rb +6 -0
- data/spec/factories/twenty_foot_equivalence_unit_rates.rb +11 -0
- data/spec/factories/unit_of_charges.rb +5 -0
- data/spec/factories/unit_types.rb +5 -0
- data/spec/factories/units.rb +8 -0
- data/spec/factories/warehouse_rate_periods.rb +8 -0
- data/spec/factories/warehouses.rb +10 -0
- data/spec/factories/weight_ranges.rb +6 -0
- data/spec/factories/within_city_routes.rb +5 -0
- data/spec/models/logistics/core/acquisition_mode_spec.rb +11 -0
- data/spec/models/logistics/core/addendum_spec.rb +9 -0
- data/spec/models/logistics/core/additional_document_spec.rb +29 -0
- data/spec/models/logistics/core/agency_category_spec.rb +29 -0
- data/spec/models/logistics/core/agency_permit_document_spec.rb +24 -0
- data/spec/models/logistics/core/agency_spec.rb +28 -0
- data/spec/models/logistics/core/agent_spec.rb +9 -0
- data/spec/models/logistics/core/air_cargo_limit_spec.rb +9 -0
- data/spec/models/logistics/core/air_volume_factor_spec.rb +9 -0
- data/spec/models/logistics/core/airway_bill_rate_spec.rb +9 -0
- data/spec/models/logistics/core/bill_of_lading_rate_spec.rb +9 -0
- data/spec/models/logistics/core/break_bulk_demurrage_rate_spec.rb +9 -0
- data/spec/models/logistics/core/break_bulk_rate_spec.rb +9 -0
- data/spec/models/logistics/core/break_bulk_storage_rate_spec.rb +9 -0
- data/spec/models/logistics/core/break_bulk_truck_assignment_spec.rb +9 -0
- data/spec/models/logistics/core/break_bulk_unit_rate_spec.rb +9 -0
- data/spec/models/logistics/core/break_bulk_unit_spec.rb +9 -0
- data/spec/models/logistics/core/broad_gauge_bb_spec.rb +9 -0
- data/spec/models/logistics/core/broad_gauge_cnt_spec.rb +9 -0
- data/spec/models/logistics/core/car_carrier_rate_spec.rb +9 -0
- data/spec/models/logistics/core/cargo_detail_spec.rb +11 -0
- data/spec/models/logistics/core/cargo_type_spec.rb +9 -0
- data/spec/models/logistics/core/carrier_agent_spec.rb +9 -0
- data/spec/models/logistics/core/carrier_spec.rb +9 -0
- data/spec/models/logistics/core/carrier_type_spec.rb +9 -0
- data/spec/models/logistics/core/chargeable_service_increment_spec.rb +9 -0
- data/spec/models/logistics/core/chargeable_service_spec.rb +30 -0
- data/spec/models/logistics/core/chargeable_service_type_spec.rb +11 -0
- data/spec/models/logistics/core/chargeable_service_unit_of_charge_spec.rb +9 -0
- data/spec/models/logistics/core/client_category_spec.rb +29 -0
- data/spec/models/logistics/core/client_contract_spec.rb +9 -0
- data/spec/models/logistics/core/client_spec.rb +19 -0
- data/spec/models/logistics/core/common_document_spec.rb +20 -0
- data/spec/models/logistics/core/communication_channel_spec.rb +9 -0
- data/spec/models/logistics/core/container_arrangement_spec.rb +11 -0
- data/spec/models/logistics/core/container_demurrage_rate_spec.rb +9 -0
- data/spec/models/logistics/core/container_size_spec.rb +9 -0
- data/spec/models/logistics/core/container_storage_rate_spec.rb +9 -0
- data/spec/models/logistics/core/container_type_spec.rb +9 -0
- data/spec/models/logistics/core/content_type_spec.rb +9 -0
- data/spec/models/logistics/core/contract_airway_bill_rate_spec.rb +9 -0
- data/spec/models/logistics/core/contract_bill_of_lading_rate_spec.rb +9 -0
- data/spec/models/logistics/core/contract_break_bulk_unit_rate_spec.rb +9 -0
- data/spec/models/logistics/core/contract_container_rate_spec.rb +9 -0
- data/spec/models/logistics/core/contract_convoy_rate_spec.rb +9 -0
- data/spec/models/logistics/core/contract_freight_ton_rate_spec.rb +9 -0
- data/spec/models/logistics/core/contract_item_rate_spec.rb +9 -0
- data/spec/models/logistics/core/contract_kilogram_rate_spec.rb +9 -0
- data/spec/models/logistics/core/contract_rate_spec.rb +9 -0
- data/spec/models/logistics/core/contract_service_spec.rb +7 -0
- data/spec/models/logistics/core/convoy_rate_spec.rb +9 -0
- data/spec/models/logistics/core/country_spec.rb +11 -0
- data/spec/models/logistics/core/currency_rate_spec.rb +23 -0
- data/spec/models/logistics/core/currency_spec.rb +16 -0
- data/spec/models/logistics/core/customs_office_spec.rb +29 -0
- data/spec/models/logistics/core/customs_office_unit_spec.rb +29 -0
- data/spec/models/logistics/core/customs_transport_tariff_spec.rb +36 -0
- data/spec/models/logistics/core/declarant_spec.rb +28 -0
- data/spec/models/logistics/core/declaration_type_spec.rb +9 -0
- data/spec/models/logistics/core/delivery_term_spec.rb +24 -0
- data/spec/models/logistics/core/demurrage_rate_period_spec.rb +9 -0
- data/spec/models/logistics/core/demurrage_rate_spec.rb +9 -0
- data/spec/models/logistics/core/document_type_category_spec.rb +29 -0
- data/spec/models/logistics/core/document_type_origin_spec.rb +29 -0
- data/spec/models/logistics/core/document_type_spec.rb +29 -0
- data/spec/models/logistics/core/entry_point_spec.rb +9 -0
- data/spec/models/logistics/core/equipment_service_rate_spec.rb +9 -0
- data/spec/models/logistics/core/esl_transport_tariff_rate_spec.rb +33 -0
- data/spec/models/logistics/core/esl_transport_tariff_spec.rb +24 -0
- data/spec/models/logistics/core/extended_lookup_spec.rb +28 -0
- data/spec/models/logistics/core/freight_ton_demurrage_rate_spec.rb +9 -0
- data/spec/models/logistics/core/freight_ton_storage_rate_spec.rb +9 -0
- data/spec/models/logistics/core/increment_rate_spec.rb +9 -0
- data/spec/models/logistics/core/inter_city_route_spec.rb +9 -0
- data/spec/models/logistics/core/item_rate_spec.rb +9 -0
- data/spec/models/logistics/core/kilogram_rate_spec.rb +9 -0
- data/spec/models/logistics/core/lookup_spec.rb +28 -0
- data/spec/models/logistics/core/offer_request_spec.rb +11 -0
- data/spec/models/logistics/core/operation_document_spec.rb +31 -0
- data/spec/models/logistics/core/operation_spec.rb +23 -0
- data/spec/models/logistics/core/operation_summary_spec.rb +9 -0
- data/spec/models/logistics/core/operation_type_spec.rb +11 -0
- data/spec/models/logistics/core/out_of_gauge_bb_rate_spec.rb +9 -0
- data/spec/models/logistics/core/out_of_gauge_cnt_rate_spec.rb +9 -0
- data/spec/models/logistics/core/payment_term_spec.rb +24 -0
- data/spec/models/logistics/core/required_document_spec.rb +9 -0
- data/spec/models/logistics/core/route_lookup_spec.rb +9 -0
- data/spec/models/logistics/core/route_rate_spec.rb +9 -0
- data/spec/models/logistics/core/route_spec.rb +9 -0
- data/spec/models/logistics/core/self_driving_rate_spec.rb +9 -0
- data/spec/models/logistics/core/service_delivery_unit_service_spec.rb +9 -0
- data/spec/models/logistics/core/service_delivery_unit_spec.rb +45 -0
- data/spec/models/logistics/core/service_delivery_unit_type_spec.rb +11 -0
- data/spec/models/logistics/core/service_increment_spec.rb +9 -0
- data/spec/models/logistics/core/service_rate_spec.rb +9 -0
- data/spec/models/logistics/core/special_increment_container_rate_spec.rb +9 -0
- data/spec/models/logistics/core/special_increment_content_rate_spec.rb +9 -0
- data/spec/models/logistics/core/transaction_type_spec.rb +11 -0
- data/spec/models/logistics/core/transport_mode_spec.rb +25 -0
- data/spec/models/logistics/core/transport_rate_period_spec.rb +9 -0
- data/spec/models/logistics/core/transporter_spec.rb +9 -0
- data/spec/models/logistics/core/truck_rate_spec.rb +9 -0
- data/spec/models/logistics/core/truck_type_assignment_spec.rb +9 -0
- data/spec/models/logistics/core/truck_type_bb_weight_range_spec.rb +9 -0
- data/spec/models/logistics/core/truck_type_cnt_weight_range_spec.rb +9 -0
- data/spec/models/logistics/core/twenty_feet_equivalence_ratio_spec.rb +9 -0
- data/spec/models/logistics/core/twenty_foot_equivalence_unit_rate_spec.rb +9 -0
- data/spec/models/logistics/core/unit_of_charge_spec.rb +11 -0
- data/spec/models/logistics/core/unit_spec.rb +33 -0
- data/spec/models/logistics/core/unit_type_spec.rb +29 -0
- data/spec/models/logistics/core/warehouse_rate_period_spec.rb +9 -0
- data/spec/models/logistics/core/warehouse_spec.rb +9 -0
- data/spec/models/logistics/core/weight_range_spec.rb +9 -0
- data/spec/models/logistics/core/within_city_route_spec.rb +9 -0
- data/spec/rails_helper.rb +13 -0
- data/spec/route_helper.rb +5 -0
- data/spec/routing/logistics/core/client_categories_routing_spec.rb +15 -0
- data/spec/services/logistics/core/additional_document_service_spec.rb +103 -0
- data/spec/services/logistics/core/operation_service_spec.rb +121 -0
- data/spec/services/logistics/core/unit_service_spec.rb +25 -0
- data/spec/spec_helper.rb +114 -0
- data/spec/support/factory_girl.rb +5 -0
- metadata +1281 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains migration options to ease your Rails 5.0 upgrade.
|
4
|
+
#
|
5
|
+
# Read the Rails 5.0 release notes for more info on each option.
|
6
|
+
|
7
|
+
# Enable per-form CSRF tokens. Previous versions had false.
|
8
|
+
Rails.application.config.action_controller.per_form_csrf_tokens = true
|
9
|
+
|
10
|
+
# Enable origin-checking CSRF mitigation. Previous versions had false.
|
11
|
+
Rails.application.config.action_controller.forgery_protection_origin_check = true
|
12
|
+
|
13
|
+
# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
|
14
|
+
# Previous versions had false.
|
15
|
+
ActiveSupport.to_time_preserves_timezone = true
|
16
|
+
|
17
|
+
# Require `belongs_to` associations by default. Previous versions had false.
|
18
|
+
Rails.application.config.active_record.belongs_to_required_by_default = true
|
19
|
+
|
20
|
+
# Do not halt callback chains when a callback returns false. Previous versions had true.
|
21
|
+
ActiveSupport.halt_callback_chains_on_return_false = false
|
22
|
+
|
23
|
+
# Configure SSL options to enable HSTS with subdomains. Previous versions had false.
|
24
|
+
Rails.application.config.ssl_options = { hsts: { subdomains: true } }
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# Puma can serve each request in a thread from an internal thread pool.
|
2
|
+
# The `threads` method setting takes two numbers a minimum and maximum.
|
3
|
+
# Any libraries that use thread pools should be configured to match
|
4
|
+
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
5
|
+
# and maximum, this matches the default thread size of Active Record.
|
6
|
+
#
|
7
|
+
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
|
8
|
+
threads threads_count, threads_count
|
9
|
+
|
10
|
+
# Specifies the `port` that Puma will listen on to receive requests, default is 3000.
|
11
|
+
#
|
12
|
+
port ENV.fetch("PORT") { 3000 }
|
13
|
+
|
14
|
+
# Specifies the `environment` that Puma will run in.
|
15
|
+
#
|
16
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
17
|
+
|
18
|
+
# Specifies the number of `workers` to boot in clustered mode.
|
19
|
+
# Workers are forked webserver processes. If using threads and workers together
|
20
|
+
# the concurrency of the application would be max `threads` * `workers`.
|
21
|
+
# Workers do not work on JRuby or Windows (both of which do not support
|
22
|
+
# processes).
|
23
|
+
#
|
24
|
+
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
25
|
+
|
26
|
+
# Use the `preload_app!` method when specifying a `workers` number.
|
27
|
+
# This directive tells Puma to first boot the application and load code
|
28
|
+
# before forking the application. This takes advantage of Copy On Write
|
29
|
+
# process behavior so workers use less memory. If you use this option
|
30
|
+
# you need to make sure to reconnect any threads in the `on_worker_boot`
|
31
|
+
# block.
|
32
|
+
#
|
33
|
+
# preload_app!
|
34
|
+
|
35
|
+
# The code in the `on_worker_boot` will be called if you are using
|
36
|
+
# clustered mode by specifying a number of `workers`. After each worker
|
37
|
+
# process is booted this block will be run, if you are using `preload_app!`
|
38
|
+
# option you will want to use this block to reconnect to any threads
|
39
|
+
# or connections that may have been created at application boot, Ruby
|
40
|
+
# cannot share connections between processes.
|
41
|
+
#
|
42
|
+
# on_worker_boot do
|
43
|
+
# ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
|
44
|
+
# end
|
45
|
+
|
46
|
+
# Allow puma to be restarted by `rails restart` command.
|
47
|
+
plugin :tmp_restart
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rails secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: dac725a2954ba6ae3fc9e63feb62abe7bd555a15a03e788215e2a32846831d7de1b4fd2e8effcf1ee0170bdd1688f3921823711c459ddaebdaf02c9a78c24401
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: cf8ce92a31f0bf1a868fb8f12877a7540a39b335aa4d653ad92a5887c74f58159a3920bdc8173327fb9fb77d10ab70ebd93bcb0e911ddaef76bf5ff7b9b662a7
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
@@ -0,0 +1,1383 @@
|
|
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
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
+
#
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(version: 20181006131541) do
|
14
|
+
|
15
|
+
# These are extensions that must be enabled in order to support this database
|
16
|
+
enable_extension "plpgsql"
|
17
|
+
|
18
|
+
create_table "client_contract_articles", id: false, force: :cascade do |t|
|
19
|
+
t.integer "client_contract_id"
|
20
|
+
t.integer "contract_article_cpy_id"
|
21
|
+
end
|
22
|
+
|
23
|
+
create_table "logistics_core_addendums", id: :serial, force: :cascade do |t|
|
24
|
+
t.integer "service_increment_id"
|
25
|
+
t.integer "addition_id"
|
26
|
+
t.datetime "created_at", null: false
|
27
|
+
t.datetime "updated_at", null: false
|
28
|
+
t.index ["addition_id"], name: "add_on_addition_indx"
|
29
|
+
t.index ["service_increment_id"], name: "add_on_si_indx"
|
30
|
+
end
|
31
|
+
|
32
|
+
create_table "logistics_core_additional_documents", id: :serial, force: :cascade do |t|
|
33
|
+
t.integer "document_type_id"
|
34
|
+
t.string "documentable_type"
|
35
|
+
t.integer "documentable_id"
|
36
|
+
t.integer "original"
|
37
|
+
t.integer "copy"
|
38
|
+
t.integer "certified"
|
39
|
+
t.boolean "is_endorsed"
|
40
|
+
t.boolean "is_mandatory"
|
41
|
+
t.integer "transaction_type_id"
|
42
|
+
t.datetime "created_at", null: false
|
43
|
+
t.datetime "updated_at", null: false
|
44
|
+
t.index ["document_type_id"], name: "ad_on_dt_indx"
|
45
|
+
t.index ["documentable_type", "documentable_id"], name: "document_type_on_additional_document_indx"
|
46
|
+
t.index ["transaction_type_id"], name: "tt_on_ad_indx"
|
47
|
+
end
|
48
|
+
|
49
|
+
create_table "logistics_core_agencies", id: :serial, force: :cascade do |t|
|
50
|
+
t.string "code"
|
51
|
+
t.string "name"
|
52
|
+
t.string "telephone"
|
53
|
+
t.string "contact_person"
|
54
|
+
t.string "city"
|
55
|
+
t.string "subcity"
|
56
|
+
t.integer "woreda"
|
57
|
+
t.string "house_no"
|
58
|
+
t.string "email"
|
59
|
+
t.string "postal_code"
|
60
|
+
t.string "contact_telephone"
|
61
|
+
t.string "contact_email"
|
62
|
+
t.integer "agency_category_id"
|
63
|
+
t.datetime "created_at", null: false
|
64
|
+
t.datetime "updated_at", null: false
|
65
|
+
t.index ["agency_category_id"], name: "ac_on_agencies_indx"
|
66
|
+
end
|
67
|
+
|
68
|
+
create_table "logistics_core_agency_permit_documents", id: :serial, force: :cascade do |t|
|
69
|
+
t.integer "agency_id"
|
70
|
+
t.integer "document_type_id"
|
71
|
+
t.integer "original_docs"
|
72
|
+
t.integer "copy_docs"
|
73
|
+
t.integer "certified_copy_docs"
|
74
|
+
t.boolean "is_endorsed"
|
75
|
+
t.boolean "is_mandatory"
|
76
|
+
t.datetime "created_at", null: false
|
77
|
+
t.datetime "updated_at", null: false
|
78
|
+
t.index ["agency_id"], name: "apd_on_agency_indx"
|
79
|
+
t.index ["document_type_id"], name: "apd_on_dt_indx"
|
80
|
+
end
|
81
|
+
|
82
|
+
create_table "logistics_core_agents", id: :serial, force: :cascade do |t|
|
83
|
+
t.string "name"
|
84
|
+
t.string "email"
|
85
|
+
t.string "contact_telephone"
|
86
|
+
t.datetime "created_at", null: false
|
87
|
+
t.datetime "updated_at", null: false
|
88
|
+
end
|
89
|
+
|
90
|
+
create_table "logistics_core_air_cargo_limits", id: :serial, force: :cascade do |t|
|
91
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
92
|
+
t.integer "transaction_type_id"
|
93
|
+
t.float "lower_limit"
|
94
|
+
t.float "upper_limit"
|
95
|
+
t.float "over_charge_rate"
|
96
|
+
t.date "effective_date"
|
97
|
+
t.datetime "created_at", null: false
|
98
|
+
t.datetime "updated_at", null: false
|
99
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "acl_on_csuoc_indx"
|
100
|
+
t.index ["transaction_type_id"], name: "acl_on_tt_indx"
|
101
|
+
end
|
102
|
+
|
103
|
+
create_table "logistics_core_air_volume_factors", id: :serial, force: :cascade do |t|
|
104
|
+
t.float "factor"
|
105
|
+
t.datetime "created_at", null: false
|
106
|
+
t.datetime "updated_at", null: false
|
107
|
+
end
|
108
|
+
|
109
|
+
create_table "logistics_core_airway_bill_rates", id: :serial, force: :cascade do |t|
|
110
|
+
t.integer "transaction_type_id"
|
111
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
112
|
+
t.float "low"
|
113
|
+
t.float "medium"
|
114
|
+
t.float "high"
|
115
|
+
t.date "effective_date"
|
116
|
+
t.float "margin"
|
117
|
+
t.datetime "created_at", null: false
|
118
|
+
t.datetime "updated_at", null: false
|
119
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "awb_on_csuoc"
|
120
|
+
t.index ["transaction_type_id"], name: "awb_on_tt_indx"
|
121
|
+
end
|
122
|
+
|
123
|
+
create_table "logistics_core_bill_of_lading_rates", id: :serial, force: :cascade do |t|
|
124
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
125
|
+
t.integer "transaction_type_id"
|
126
|
+
t.date "effective_date"
|
127
|
+
t.float "high"
|
128
|
+
t.float "low"
|
129
|
+
t.float "margin"
|
130
|
+
t.float "medium"
|
131
|
+
t.datetime "created_at", null: false
|
132
|
+
t.datetime "updated_at", null: false
|
133
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "bolr_on_csuoc_indx"
|
134
|
+
t.index ["transaction_type_id"], name: "bolr_on_tt_indx"
|
135
|
+
end
|
136
|
+
|
137
|
+
create_table "logistics_core_break_bulk_cargo_details", id: :serial, force: :cascade do |t|
|
138
|
+
t.float "actual_weight"
|
139
|
+
t.float "volume"
|
140
|
+
t.integer "quantity"
|
141
|
+
t.integer "content_type_id"
|
142
|
+
t.integer "offer_request_id"
|
143
|
+
t.float "length"
|
144
|
+
t.float "width"
|
145
|
+
t.float "height"
|
146
|
+
t.integer "cargo_type_id"
|
147
|
+
t.string "description"
|
148
|
+
t.integer "break_bulk_unit_id"
|
149
|
+
t.string "status"
|
150
|
+
t.integer "service_delivery_unit_id"
|
151
|
+
t.datetime "created_at", null: false
|
152
|
+
t.datetime "updated_at", null: false
|
153
|
+
t.float "truck_number", default: 0.0
|
154
|
+
t.index ["break_bulk_unit_id"], name: "bb_unit_on_break_bulk_cargo_type"
|
155
|
+
t.index ["cargo_type_id"], name: "cargo_type_on_break_bulk_cargo_type"
|
156
|
+
t.index ["content_type_id"], name: "content_on_break_bulk_cargo"
|
157
|
+
t.index ["offer_request_id"], name: "offer_req_on_break_bulk_cargo"
|
158
|
+
t.index ["service_delivery_unit_id"], name: "sdu_on_break_bulk_cargo"
|
159
|
+
end
|
160
|
+
|
161
|
+
create_table "logistics_core_break_bulk_demurrage_rates", id: :serial, force: :cascade do |t|
|
162
|
+
t.integer "break_bulk_unit_id"
|
163
|
+
t.integer "transaction_type_id"
|
164
|
+
t.integer "demurrage_rate_period_id"
|
165
|
+
t.float "rate"
|
166
|
+
t.date "effective_date"
|
167
|
+
t.datetime "created_at", null: false
|
168
|
+
t.datetime "updated_at", null: false
|
169
|
+
t.index ["break_bulk_unit_id"], name: "bbdr_on_bbu_indx"
|
170
|
+
t.index ["demurrage_rate_period_id"], name: "bbdr_on_drp_indx"
|
171
|
+
t.index ["transaction_type_id"], name: "bbdr_on_tt_indx"
|
172
|
+
end
|
173
|
+
|
174
|
+
create_table "logistics_core_break_bulk_rates", id: :serial, force: :cascade do |t|
|
175
|
+
t.integer "transaction_type_id"
|
176
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
177
|
+
t.float "low"
|
178
|
+
t.float "medium"
|
179
|
+
t.float "high"
|
180
|
+
t.date "effective_date"
|
181
|
+
t.float "margin"
|
182
|
+
t.datetime "created_at", null: false
|
183
|
+
t.datetime "updated_at", null: false
|
184
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "bbr_on_csuoc_indx"
|
185
|
+
t.index ["transaction_type_id"], name: "bbr_on_tt_indx"
|
186
|
+
end
|
187
|
+
|
188
|
+
create_table "logistics_core_break_bulk_storage_rates", id: :serial, force: :cascade do |t|
|
189
|
+
t.integer "break_bulk_unit_id"
|
190
|
+
t.integer "transaction_type_id"
|
191
|
+
t.integer "warehouse_rate_period_id"
|
192
|
+
t.integer "content_type_id"
|
193
|
+
t.float "rate"
|
194
|
+
t.date "effective_date"
|
195
|
+
t.datetime "created_at", null: false
|
196
|
+
t.datetime "updated_at", null: false
|
197
|
+
t.index ["break_bulk_unit_id"], name: "bbsr_on_bbu_indx"
|
198
|
+
t.index ["content_type_id"], name: "bbsr_on_ct_indx"
|
199
|
+
t.index ["transaction_type_id"], name: "bbsr_on_tt_indx"
|
200
|
+
t.index ["warehouse_rate_period_id"], name: "bbsr_on_wrp_indx"
|
201
|
+
end
|
202
|
+
|
203
|
+
create_table "logistics_core_break_bulk_truck_assignments", id: :serial, force: :cascade do |t|
|
204
|
+
t.float "truck_type"
|
205
|
+
t.datetime "created_at", null: false
|
206
|
+
t.datetime "updated_at", null: false
|
207
|
+
end
|
208
|
+
|
209
|
+
create_table "logistics_core_break_bulk_unit_rates", id: :serial, force: :cascade do |t|
|
210
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
211
|
+
t.integer "transaction_type_id"
|
212
|
+
t.integer "break_bulk_unit_id"
|
213
|
+
t.float "high"
|
214
|
+
t.float "medium"
|
215
|
+
t.float "low"
|
216
|
+
t.date "effective_date"
|
217
|
+
t.float "margin"
|
218
|
+
t.datetime "created_at", null: false
|
219
|
+
t.datetime "updated_at", null: false
|
220
|
+
t.index ["break_bulk_unit_id"], name: "bbur_on_bbu_indx"
|
221
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "bbur_on_csuoc_indx"
|
222
|
+
t.index ["transaction_type_id"], name: "bbur_on_tt_indx"
|
223
|
+
end
|
224
|
+
|
225
|
+
create_table "logistics_core_broad_gauge_bbs", id: :serial, force: :cascade do |t|
|
226
|
+
t.integer "break_bulk_unit_id"
|
227
|
+
t.float "length"
|
228
|
+
t.float "width"
|
229
|
+
t.float "height"
|
230
|
+
t.float "actual_weight"
|
231
|
+
t.datetime "created_at", null: false
|
232
|
+
t.datetime "updated_at", null: false
|
233
|
+
t.index ["break_bulk_unit_id"], name: "bgbbs_on_bbu_indx"
|
234
|
+
end
|
235
|
+
|
236
|
+
create_table "logistics_core_broad_gauge_cnts", id: :serial, force: :cascade do |t|
|
237
|
+
t.integer "container_size_id"
|
238
|
+
t.integer "container_type_id"
|
239
|
+
t.float "length"
|
240
|
+
t.float "width"
|
241
|
+
t.float "height"
|
242
|
+
t.float "actual_weight"
|
243
|
+
t.datetime "created_at", null: false
|
244
|
+
t.datetime "updated_at", null: false
|
245
|
+
t.index ["container_size_id"], name: "bgc_on_cs_indx"
|
246
|
+
t.index ["container_type_id"], name: "bgc_on_ct_indx"
|
247
|
+
end
|
248
|
+
|
249
|
+
create_table "logistics_core_car_carrier_rates", id: :serial, force: :cascade do |t|
|
250
|
+
t.integer "route_id"
|
251
|
+
t.integer "break_bulk_unit_id"
|
252
|
+
t.float "rate"
|
253
|
+
t.float "margin"
|
254
|
+
t.integer "transporter_id"
|
255
|
+
t.integer "transport_rate_period_id"
|
256
|
+
t.string "rate_type"
|
257
|
+
t.integer "selected_transporter_id"
|
258
|
+
t.datetime "created_at", null: false
|
259
|
+
t.datetime "updated_at", null: false
|
260
|
+
t.index ["break_bulk_unit_id"], name: "ccr_on_bbu_indx"
|
261
|
+
t.index ["route_id"], name: "ccr_on_route_indx"
|
262
|
+
t.index ["selected_transporter_id"], name: "ccr_on_st_indx"
|
263
|
+
t.index ["transport_rate_period_id"], name: "ccr_on_trp_indx"
|
264
|
+
t.index ["transporter_id"], name: "ccr_on_transporter_indx"
|
265
|
+
end
|
266
|
+
|
267
|
+
create_table "logistics_core_cargo_details", id: :serial, force: :cascade do |t|
|
268
|
+
t.integer "container_type_id"
|
269
|
+
t.integer "container_size_id"
|
270
|
+
t.float "quantity"
|
271
|
+
t.integer "content_type_id"
|
272
|
+
t.integer "offer_request_id"
|
273
|
+
t.integer "cargo_type_id"
|
274
|
+
t.string "description"
|
275
|
+
t.float "weight"
|
276
|
+
t.float "length"
|
277
|
+
t.float "width"
|
278
|
+
t.float "height"
|
279
|
+
t.string "status"
|
280
|
+
t.integer "service_delivery_unit_id"
|
281
|
+
t.datetime "created_at", null: false
|
282
|
+
t.datetime "updated_at", null: false
|
283
|
+
t.float "truck_number", default: 0.0
|
284
|
+
t.index ["container_size_id"], name: "cnt_size_on_cargo_detail_indx"
|
285
|
+
t.index ["container_type_id"], name: "cnt_type_on_cargo_detail_indx"
|
286
|
+
t.index ["content_type_id"], name: "content_on_cargo_detail_indx"
|
287
|
+
t.index ["offer_request_id"], name: "offer_req_on_cargo_detail_indx"
|
288
|
+
end
|
289
|
+
|
290
|
+
create_table "logistics_core_carrier_agents", id: :serial, force: :cascade do |t|
|
291
|
+
t.integer "carrier_id"
|
292
|
+
t.integer "agent_id"
|
293
|
+
t.datetime "created_at", null: false
|
294
|
+
t.datetime "updated_at", null: false
|
295
|
+
t.index ["agent_id"], name: "ca_on_a_indx"
|
296
|
+
t.index ["carrier_id"], name: "ca_on_c_indx"
|
297
|
+
end
|
298
|
+
|
299
|
+
create_table "logistics_core_carriers", id: :serial, force: :cascade do |t|
|
300
|
+
t.string "name"
|
301
|
+
t.string "email"
|
302
|
+
t.string "contact_telephone"
|
303
|
+
t.integer "carrier_type_id"
|
304
|
+
t.datetime "created_at", null: false
|
305
|
+
t.datetime "updated_at", null: false
|
306
|
+
t.index ["carrier_type_id"], name: "index_logistics_core_carriers_on_carrier_type_id"
|
307
|
+
end
|
308
|
+
|
309
|
+
create_table "logistics_core_chargeable_service_container_type_rates", id: false, force: :cascade do |t|
|
310
|
+
t.integer "special_increment_container_rate_id"
|
311
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
312
|
+
t.index ["special_increment_container_rate_id", "chargeable_service_unit_of_charge_id"], name: "idx_container_type_special_increment_1"
|
313
|
+
end
|
314
|
+
|
315
|
+
create_table "logistics_core_chargeable_service_content_type_rates", id: false, force: :cascade do |t|
|
316
|
+
t.integer "special_increment_content_rate_id"
|
317
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
318
|
+
t.index ["special_increment_content_rate_id", "chargeable_service_unit_of_charge_id"], name: "idx_content_type_special_increment_1"
|
319
|
+
end
|
320
|
+
|
321
|
+
create_table "logistics_core_chargeable_service_increments", id: :serial, force: :cascade do |t|
|
322
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
323
|
+
t.integer "service_increment_id"
|
324
|
+
t.datetime "created_at", null: false
|
325
|
+
t.datetime "updated_at", null: false
|
326
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "csi_on_csuoc_indx"
|
327
|
+
t.index ["service_increment_id"], name: "csi_on_si_indx"
|
328
|
+
end
|
329
|
+
|
330
|
+
create_table "logistics_core_chargeable_service_unit_of_charges", id: :serial, force: :cascade do |t|
|
331
|
+
t.integer "service_delivery_unit_id"
|
332
|
+
t.integer "chargeable_service_id"
|
333
|
+
t.integer "unit_of_charge_id"
|
334
|
+
t.boolean "has_increment"
|
335
|
+
t.boolean "has_container_special_increment"
|
336
|
+
t.boolean "has_content_special_increment"
|
337
|
+
t.datetime "created_at", null: false
|
338
|
+
t.datetime "updated_at", null: false
|
339
|
+
t.index ["chargeable_service_id"], name: "csuoc_on_cs_indx"
|
340
|
+
t.index ["service_delivery_unit_id"], name: "csuoc_on_sdu_indx"
|
341
|
+
t.index ["unit_of_charge_id"], name: "csuoc_on_uoc_indx"
|
342
|
+
end
|
343
|
+
|
344
|
+
create_table "logistics_core_chargeable_services", id: :serial, force: :cascade do |t|
|
345
|
+
t.string "code", null: false
|
346
|
+
t.string "name", null: false
|
347
|
+
t.integer "order"
|
348
|
+
t.integer "chargeable_service_type_id"
|
349
|
+
t.integer "transport_service_type_id"
|
350
|
+
t.datetime "created_at", null: false
|
351
|
+
t.datetime "updated_at", null: false
|
352
|
+
t.index ["chargeable_service_type_id"], name: "cs_on_cst_indx"
|
353
|
+
t.index ["transport_service_type_id"], name: "cs_on_tst_indx"
|
354
|
+
end
|
355
|
+
|
356
|
+
create_table "logistics_core_client_contracts", id: :serial, force: :cascade do |t|
|
357
|
+
t.integer "offer_request_id"
|
358
|
+
t.string "title"
|
359
|
+
t.integer "status"
|
360
|
+
t.string "ref_no"
|
361
|
+
t.date "contract_date"
|
362
|
+
t.datetime "created_at", null: false
|
363
|
+
t.datetime "updated_at", null: false
|
364
|
+
t.date "expiry_date"
|
365
|
+
t.date "effective_date"
|
366
|
+
t.index ["offer_request_id"], name: "cc_on_or_indx"
|
367
|
+
end
|
368
|
+
|
369
|
+
create_table "logistics_core_clients", id: :serial, force: :cascade do |t|
|
370
|
+
t.string "name", null: false
|
371
|
+
t.string "postal_code"
|
372
|
+
t.string "city"
|
373
|
+
t.integer "country_id"
|
374
|
+
t.integer "client_category_id"
|
375
|
+
t.string "telephone"
|
376
|
+
t.string "fax"
|
377
|
+
t.string "email"
|
378
|
+
t.string "license"
|
379
|
+
t.string "tin"
|
380
|
+
t.datetime "created_at", null: false
|
381
|
+
t.datetime "updated_at", null: false
|
382
|
+
t.index ["client_category_id"], name: "clent_on_client_category_indx"
|
383
|
+
t.index ["country_id"], name: "index_logistics_core_clients_on_country_id"
|
384
|
+
end
|
385
|
+
|
386
|
+
create_table "logistics_core_common_documents", id: :serial, force: :cascade do |t|
|
387
|
+
t.integer "document_type_id"
|
388
|
+
t.integer "original"
|
389
|
+
t.integer "copy"
|
390
|
+
t.integer "certified"
|
391
|
+
t.boolean "is_endorsed"
|
392
|
+
t.boolean "is_mandatory"
|
393
|
+
t.datetime "created_at", null: false
|
394
|
+
t.datetime "updated_at", null: false
|
395
|
+
t.index ["document_type_id"], name: "dt_on_cd"
|
396
|
+
end
|
397
|
+
|
398
|
+
create_table "logistics_core_container_demurrage_rates", id: :serial, force: :cascade do |t|
|
399
|
+
t.integer "container_size_id"
|
400
|
+
t.integer "transaction_type_id"
|
401
|
+
t.integer "demurrage_rate_period_id"
|
402
|
+
t.integer "container_type_id"
|
403
|
+
t.integer "content_type_id"
|
404
|
+
t.float "rate"
|
405
|
+
t.datetime "created_at", null: false
|
406
|
+
t.datetime "updated_at", null: false
|
407
|
+
t.index ["container_size_id"], name: "cdr_on_cs_indx"
|
408
|
+
t.index ["container_type_id"], name: "cdr_on_ct_indx"
|
409
|
+
t.index ["content_type_id"], name: "cdr_on_cnt_indx"
|
410
|
+
t.index ["demurrage_rate_period_id"], name: "cdr_on_drp_indx"
|
411
|
+
t.index ["transaction_type_id"], name: "cdr_on_tt_indx"
|
412
|
+
end
|
413
|
+
|
414
|
+
create_table "logistics_core_container_storage_rates", id: :serial, force: :cascade do |t|
|
415
|
+
t.integer "container_size_id"
|
416
|
+
t.integer "transaction_type_id"
|
417
|
+
t.integer "warehouse_rate_period_id"
|
418
|
+
t.integer "container_type_id"
|
419
|
+
t.integer "content_type_id"
|
420
|
+
t.float "rate"
|
421
|
+
t.date "effective_date"
|
422
|
+
t.datetime "created_at", null: false
|
423
|
+
t.datetime "updated_at", null: false
|
424
|
+
t.index ["container_size_id"], name: "csr_on_cs_indx"
|
425
|
+
t.index ["container_type_id"], name: "csr_on_ct_indx"
|
426
|
+
t.index ["content_type_id"], name: "csr_on_cnt_indx"
|
427
|
+
t.index ["transaction_type_id"], name: "csr_on_tt_indx"
|
428
|
+
t.index ["warehouse_rate_period_id"], name: "csr_on_wrp_indx"
|
429
|
+
end
|
430
|
+
|
431
|
+
create_table "logistics_core_container_types", id: :serial, force: :cascade do |t|
|
432
|
+
t.string "code"
|
433
|
+
t.string "name"
|
434
|
+
t.boolean "is_standard", default: false
|
435
|
+
end
|
436
|
+
|
437
|
+
create_table "logistics_core_contract_article_cpies", id: :serial, force: :cascade do |t|
|
438
|
+
t.string "tag"
|
439
|
+
t.string "name"
|
440
|
+
t.string "text"
|
441
|
+
t.integer "parent_id"
|
442
|
+
t.datetime "created_at", null: false
|
443
|
+
t.datetime "updated_at", null: false
|
444
|
+
end
|
445
|
+
|
446
|
+
create_table "logistics_core_contract_break_bulk_unit_rates", id: :serial, force: :cascade do |t|
|
447
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
448
|
+
t.integer "transaction_type_id"
|
449
|
+
t.integer "break_bulk_unit_id"
|
450
|
+
t.boolean "in_contract"
|
451
|
+
t.float "rate"
|
452
|
+
t.datetime "created_at", null: false
|
453
|
+
t.datetime "updated_at", null: false
|
454
|
+
t.integer "contract_id"
|
455
|
+
t.float "margin"
|
456
|
+
t.index ["break_bulk_unit_id"], name: "cabr_on_bbu3_indx"
|
457
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "cabr_on_csuoc3_indx"
|
458
|
+
t.index ["transaction_type_id"], name: "cabr_on_tt3_indx"
|
459
|
+
end
|
460
|
+
|
461
|
+
create_table "logistics_core_contract_container_rates", id: :serial, force: :cascade do |t|
|
462
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
463
|
+
t.integer "transaction_type_id"
|
464
|
+
t.integer "container_size_id"
|
465
|
+
t.boolean "in_contract"
|
466
|
+
t.float "margin"
|
467
|
+
t.float "rate"
|
468
|
+
t.datetime "created_at", null: false
|
469
|
+
t.datetime "updated_at", null: false
|
470
|
+
t.integer "contract_id"
|
471
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "cabr_on_csuoc1_indx"
|
472
|
+
t.index ["container_size_id"], name: "cabr_on_cs1_indx"
|
473
|
+
t.index ["transaction_type_id"], name: "cabr_on_tt1_indx"
|
474
|
+
end
|
475
|
+
|
476
|
+
create_table "logistics_core_contract_item_rates", id: :serial, force: :cascade do |t|
|
477
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
478
|
+
t.integer "transaction_type_id"
|
479
|
+
t.boolean "in_contract"
|
480
|
+
t.float "margin"
|
481
|
+
t.float "minimum_quantity"
|
482
|
+
t.float "rate"
|
483
|
+
t.datetime "created_at", null: false
|
484
|
+
t.datetime "updated_at", null: false
|
485
|
+
t.integer "contract_id"
|
486
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "cabr_on_csuoc2_indx"
|
487
|
+
t.index ["transaction_type_id"], name: "cabr_on_tt2_indx"
|
488
|
+
end
|
489
|
+
|
490
|
+
create_table "logistics_core_contract_kilogram_rates", id: :serial, force: :cascade do |t|
|
491
|
+
t.float "from"
|
492
|
+
t.boolean "in_contract"
|
493
|
+
t.float "margin"
|
494
|
+
t.float "rate"
|
495
|
+
t.float "to"
|
496
|
+
t.datetime "created_at", null: false
|
497
|
+
t.datetime "updated_at", null: false
|
498
|
+
t.integer "contract_id"
|
499
|
+
end
|
500
|
+
|
501
|
+
create_table "logistics_core_contract_rates", id: :serial, force: :cascade do |t|
|
502
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
503
|
+
t.integer "transaction_type_id"
|
504
|
+
t.boolean "in_contract"
|
505
|
+
t.float "rate"
|
506
|
+
t.string "type"
|
507
|
+
t.datetime "created_at", null: false
|
508
|
+
t.datetime "updated_at", null: false
|
509
|
+
t.integer "contract_id"
|
510
|
+
t.float "margin"
|
511
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "cabr_on_csuoc_indx"
|
512
|
+
t.index ["transaction_type_id"], name: "cabr_on_tt_indx"
|
513
|
+
end
|
514
|
+
|
515
|
+
create_table "logistics_core_contracts", id: :serial, force: :cascade do |t|
|
516
|
+
t.string "contract_number"
|
517
|
+
t.string "title"
|
518
|
+
t.date "start_date"
|
519
|
+
t.date "end_date"
|
520
|
+
t.date "contract_signed_date"
|
521
|
+
t.integer "client_id"
|
522
|
+
t.datetime "created_at", null: false
|
523
|
+
t.datetime "updated_at", null: false
|
524
|
+
end
|
525
|
+
|
526
|
+
create_table "logistics_core_convoy_rates", id: :serial, force: :cascade do |t|
|
527
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
528
|
+
t.integer "transaction_type_id"
|
529
|
+
t.date "effective_date"
|
530
|
+
t.float "high"
|
531
|
+
t.float "low"
|
532
|
+
t.float "margin"
|
533
|
+
t.float "medium"
|
534
|
+
t.datetime "created_at", null: false
|
535
|
+
t.datetime "updated_at", null: false
|
536
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "cr_on_csuoc_indx"
|
537
|
+
t.index ["transaction_type_id"], name: "cr_on_tt_selindx"
|
538
|
+
end
|
539
|
+
|
540
|
+
create_table "logistics_core_currency_rates", id: :serial, force: :cascade do |t|
|
541
|
+
t.float "rate_to_base_selling", null: false
|
542
|
+
t.float "rate_to_base_buying"
|
543
|
+
t.date "rate_date", default: "2018-10-07", null: false
|
544
|
+
t.integer "currency_id", null: false
|
545
|
+
t.datetime "created_at", null: false
|
546
|
+
t.datetime "updated_at", null: false
|
547
|
+
t.index ["currency_id"], name: "currency_on_currency_rate_indx"
|
548
|
+
end
|
549
|
+
|
550
|
+
create_table "logistics_core_customs_offices", id: :serial, force: :cascade do |t|
|
551
|
+
t.string "code", null: false
|
552
|
+
t.string "name", null: false
|
553
|
+
t.text "location", null: false
|
554
|
+
t.datetime "created_at", null: false
|
555
|
+
t.datetime "updated_at", null: false
|
556
|
+
end
|
557
|
+
|
558
|
+
create_table "logistics_core_customs_transport_tariffs", id: :serial, force: :cascade do |t|
|
559
|
+
t.integer "route_id", null: false
|
560
|
+
t.integer "entry_point_id", null: false
|
561
|
+
t.float "total_distance", null: false
|
562
|
+
t.float "distance_to_entry_point", null: false
|
563
|
+
t.float "proportion", null: false
|
564
|
+
t.datetime "created_at", null: false
|
565
|
+
t.datetime "updated_at", null: false
|
566
|
+
t.index ["entry_point_id"], name: "ctt_on_ep_indx"
|
567
|
+
t.index ["route_id", "entry_point_id"], name: "route_entry_point_uniq_indx", unique: true
|
568
|
+
t.index ["route_id"], name: "ctt_on_route_indx"
|
569
|
+
end
|
570
|
+
|
571
|
+
create_table "logistics_core_declarants", id: :serial, force: :cascade do |t|
|
572
|
+
t.string "first_name"
|
573
|
+
t.string "last_name"
|
574
|
+
t.string "number"
|
575
|
+
t.datetime "created_at", null: false
|
576
|
+
t.datetime "updated_at", null: false
|
577
|
+
end
|
578
|
+
|
579
|
+
create_table "logistics_core_declaration_types", id: :serial, force: :cascade do |t|
|
580
|
+
t.string "code", null: false
|
581
|
+
t.string "name", null: false
|
582
|
+
t.integer "transaction_type_id"
|
583
|
+
t.datetime "created_at", null: false
|
584
|
+
t.datetime "updated_at", null: false
|
585
|
+
t.index ["transaction_type_id"], name: "dt_on_tt_indx"
|
586
|
+
end
|
587
|
+
|
588
|
+
create_table "logistics_core_demurrage_rate_periods", id: :serial, force: :cascade do |t|
|
589
|
+
t.integer "carrier_agent_id"
|
590
|
+
t.integer "from"
|
591
|
+
t.integer "to"
|
592
|
+
t.string "rate_period"
|
593
|
+
t.datetime "created_at", null: false
|
594
|
+
t.datetime "updated_at", null: false
|
595
|
+
t.index ["carrier_agent_id"], name: "drp_on_ca_indx"
|
596
|
+
end
|
597
|
+
|
598
|
+
create_table "logistics_core_demurrage_rates", id: :serial, force: :cascade do |t|
|
599
|
+
t.integer "demurrage_rate_period_id"
|
600
|
+
t.integer "unit_of_charge_id"
|
601
|
+
t.float "rate"
|
602
|
+
t.datetime "created_at", null: false
|
603
|
+
t.datetime "updated_at", null: false
|
604
|
+
t.index ["demurrage_rate_period_id"], name: "dr_on_drp_indx"
|
605
|
+
t.index ["unit_of_charge_id"], name: "dr_on_uoc_indx"
|
606
|
+
end
|
607
|
+
|
608
|
+
create_table "logistics_core_document_types", id: :serial, force: :cascade do |t|
|
609
|
+
t.string "code"
|
610
|
+
t.string "name"
|
611
|
+
t.string "description"
|
612
|
+
t.integer "document_type_category_id"
|
613
|
+
t.integer "document_type_origin_id"
|
614
|
+
t.datetime "created_at", null: false
|
615
|
+
t.datetime "updated_at", null: false
|
616
|
+
t.index ["document_type_category_id"], name: "dtc_on_dt"
|
617
|
+
t.index ["document_type_origin_id"], name: "dto_on_dt"
|
618
|
+
end
|
619
|
+
|
620
|
+
create_table "logistics_core_equipment_service_rates", id: :serial, force: :cascade do |t|
|
621
|
+
t.string "code"
|
622
|
+
t.string "description"
|
623
|
+
t.date "effective_date"
|
624
|
+
t.string "name"
|
625
|
+
t.float "rate_hr"
|
626
|
+
t.float "rate_km"
|
627
|
+
t.date "valid_until"
|
628
|
+
t.datetime "created_at", null: false
|
629
|
+
t.datetime "updated_at", null: false
|
630
|
+
end
|
631
|
+
|
632
|
+
create_table "logistics_core_esl_transport_tariff_rates", id: :serial, force: :cascade do |t|
|
633
|
+
t.integer "esl_transport_tariff_id", null: false
|
634
|
+
t.float "qt_from", null: false
|
635
|
+
t.float "qt_to", null: false
|
636
|
+
t.float "rate", null: false
|
637
|
+
t.datetime "created_at", null: false
|
638
|
+
t.datetime "updated_at", null: false
|
639
|
+
t.index ["esl_transport_tariff_id", "qt_from", "qt_to"], name: "transport_from_to_uniq_indx", unique: true
|
640
|
+
t.index ["esl_transport_tariff_id"], name: "tariff_rate_on_transport_tariff_indx"
|
641
|
+
end
|
642
|
+
|
643
|
+
create_table "logistics_core_esl_transport_tariffs", id: :serial, force: :cascade do |t|
|
644
|
+
t.integer "route_id", null: false
|
645
|
+
t.string "storage_point", null: false
|
646
|
+
t.datetime "created_at", null: false
|
647
|
+
t.datetime "updated_at", null: false
|
648
|
+
t.index ["route_id", "storage_point"], name: "route_storage_point_uniq_indx", unique: true
|
649
|
+
t.index ["route_id"], name: "route_on_transport_tariffs_indx"
|
650
|
+
end
|
651
|
+
|
652
|
+
create_table "logistics_core_extended_lookups", id: :serial, force: :cascade do |t|
|
653
|
+
t.string "code", null: false
|
654
|
+
t.string "name", null: false
|
655
|
+
t.string "description"
|
656
|
+
t.string "type", null: false
|
657
|
+
t.datetime "created_at", null: false
|
658
|
+
t.datetime "updated_at", null: false
|
659
|
+
t.index ["code", "type"], name: "index_logistics_core_extended_lookups_on_code_and_type", unique: true
|
660
|
+
end
|
661
|
+
|
662
|
+
create_table "logistics_core_freight_ton_demurrage_rates", id: :serial, force: :cascade do |t|
|
663
|
+
t.integer "demurrage_rate_period_id"
|
664
|
+
t.integer "transaction_type_id"
|
665
|
+
t.date "effective_date"
|
666
|
+
t.float "rate"
|
667
|
+
t.datetime "created_at", null: false
|
668
|
+
t.datetime "updated_at", null: false
|
669
|
+
t.index ["demurrage_rate_period_id"], name: "ftdr_on_drp_indx"
|
670
|
+
t.index ["transaction_type_id"], name: "ftdr_on_tt_indx"
|
671
|
+
end
|
672
|
+
|
673
|
+
create_table "logistics_core_freight_ton_storage_rates", id: :serial, force: :cascade do |t|
|
674
|
+
t.integer "content_type_id"
|
675
|
+
t.integer "transaction_type_id"
|
676
|
+
t.integer "warehouse_rate_period_id"
|
677
|
+
t.date "effective_date"
|
678
|
+
t.float "rate"
|
679
|
+
t.datetime "created_at", null: false
|
680
|
+
t.datetime "updated_at", null: false
|
681
|
+
t.index ["content_type_id"], name: "ftsr_on_ct_indx"
|
682
|
+
t.index ["transaction_type_id"], name: "ftsr_on_tt_indx"
|
683
|
+
t.index ["warehouse_rate_period_id"], name: "ftsr_on_wrp_indx"
|
684
|
+
end
|
685
|
+
|
686
|
+
create_table "logistics_core_increment_rates", id: :serial, force: :cascade do |t|
|
687
|
+
t.float "percent"
|
688
|
+
t.date "effective_date"
|
689
|
+
t.integer "service_increment_id"
|
690
|
+
t.datetime "created_at", null: false
|
691
|
+
t.datetime "updated_at", null: false
|
692
|
+
t.index ["service_increment_id"], name: "ir_on_si_indx"
|
693
|
+
end
|
694
|
+
|
695
|
+
create_table "logistics_core_item_rates", id: :serial, force: :cascade do |t|
|
696
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
697
|
+
t.date "effective_date"
|
698
|
+
t.float "margin"
|
699
|
+
t.float "minimum_quantity"
|
700
|
+
t.float "rate"
|
701
|
+
t.integer "transaction_type_id"
|
702
|
+
t.datetime "created_at", null: false
|
703
|
+
t.datetime "updated_at", null: false
|
704
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "ir_on_csuoc_indx"
|
705
|
+
t.index ["transaction_type_id"], name: "ir_on_tt_indx"
|
706
|
+
end
|
707
|
+
|
708
|
+
create_table "logistics_core_kilogram_rates", id: :serial, force: :cascade do |t|
|
709
|
+
t.float "from"
|
710
|
+
t.float "to"
|
711
|
+
t.float "high"
|
712
|
+
t.float "medium"
|
713
|
+
t.float "low"
|
714
|
+
t.float "margin"
|
715
|
+
t.date "effective_date"
|
716
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
717
|
+
t.integer "transaction_type_id"
|
718
|
+
t.datetime "created_at", null: false
|
719
|
+
t.datetime "updated_at", null: false
|
720
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "kr_on_csuoc_indx"
|
721
|
+
t.index ["transaction_type_id"], name: "kr_on_tt_indx"
|
722
|
+
end
|
723
|
+
|
724
|
+
create_table "logistics_core_lookups", id: :serial, force: :cascade do |t|
|
725
|
+
t.string "code", null: false
|
726
|
+
t.string "name", null: false
|
727
|
+
t.string "type", null: false
|
728
|
+
t.datetime "created_at", null: false
|
729
|
+
t.datetime "updated_at", null: false
|
730
|
+
t.index ["code", "type"], name: "index_logistics_core_lookups_on_code_and_type", unique: true
|
731
|
+
end
|
732
|
+
|
733
|
+
create_table "logistics_core_offer_requests", id: :serial, force: :cascade do |t|
|
734
|
+
t.string "request_no"
|
735
|
+
t.integer "user_id"
|
736
|
+
t.integer "communication_channel_id"
|
737
|
+
t.string "status"
|
738
|
+
t.string "source_detail"
|
739
|
+
t.string "point_of_recipient"
|
740
|
+
t.date "date_of_recipient"
|
741
|
+
t.string "general_remark"
|
742
|
+
t.string "rate_level"
|
743
|
+
t.string "security_status"
|
744
|
+
t.boolean "is_sent"
|
745
|
+
t.date "sent_date"
|
746
|
+
t.string "remark"
|
747
|
+
t.date "date_status_set"
|
748
|
+
t.integer "no_of_items"
|
749
|
+
t.integer "no_of_convoy"
|
750
|
+
t.boolean "is_bulk"
|
751
|
+
t.integer "agent_id"
|
752
|
+
t.integer "carrier_id"
|
753
|
+
t.date "arrival_date"
|
754
|
+
t.float "days_before_returning_container"
|
755
|
+
t.float "days_until_loaded"
|
756
|
+
t.string "quotation_status"
|
757
|
+
t.string "additional_service_status"
|
758
|
+
t.integer "operation_id"
|
759
|
+
t.integer "warehouse_id"
|
760
|
+
t.datetime "created_at", null: false
|
761
|
+
t.datetime "updated_at", null: false
|
762
|
+
t.integer "client_id"
|
763
|
+
t.boolean "freight_forwarding"
|
764
|
+
t.boolean "customs_clearing"
|
765
|
+
t.boolean "transport"
|
766
|
+
t.integer "operation_type_id"
|
767
|
+
t.integer "transaction_type_id"
|
768
|
+
t.integer "contract_id"
|
769
|
+
t.index ["agent_id"], name: "or_on_agent_indx"
|
770
|
+
t.index ["carrier_id"], name: "or_on_carrier_indx"
|
771
|
+
t.index ["communication_channel_id"], name: "or_on_cc_indx"
|
772
|
+
t.index ["operation_id"], name: "or_on_operation_indx"
|
773
|
+
t.index ["user_id"], name: "or_on_user_indx"
|
774
|
+
t.index ["warehouse_id"], name: "warehouse_on_or_indx"
|
775
|
+
end
|
776
|
+
|
777
|
+
create_table "logistics_core_operation_documents", id: :serial, force: :cascade do |t|
|
778
|
+
t.integer "operation_id"
|
779
|
+
t.string "document", null: false
|
780
|
+
t.integer "original", null: false
|
781
|
+
t.integer "copy", null: false
|
782
|
+
t.integer "certified", null: false
|
783
|
+
t.boolean "is_mandatory", default: false, null: false
|
784
|
+
t.boolean "is_accepted", default: false, null: false
|
785
|
+
t.string "source"
|
786
|
+
t.datetime "created_at", null: false
|
787
|
+
t.datetime "updated_at", null: false
|
788
|
+
t.string "file"
|
789
|
+
t.index ["operation_id"], name: "od_on_operation_indx"
|
790
|
+
end
|
791
|
+
|
792
|
+
create_table "logistics_core_operation_summaries", id: :serial, force: :cascade do |t|
|
793
|
+
t.integer "operation_id", null: false
|
794
|
+
t.text "tax"
|
795
|
+
t.text "fact"
|
796
|
+
t.text "declaration"
|
797
|
+
t.datetime "created_at", null: false
|
798
|
+
t.datetime "updated_at", null: false
|
799
|
+
t.index ["operation_id"], name: "index_logistics_core_operation_summaries_on_operation_id"
|
800
|
+
end
|
801
|
+
|
802
|
+
create_table "logistics_core_operations", id: :serial, force: :cascade do |t|
|
803
|
+
t.string "operation_number"
|
804
|
+
t.string "contract_number"
|
805
|
+
t.boolean "is_new_customer", default: false
|
806
|
+
t.string "status"
|
807
|
+
t.datetime "created_at", null: false
|
808
|
+
t.datetime "updated_at", null: false
|
809
|
+
t.integer "offer_request_id"
|
810
|
+
t.integer "declarant_id"
|
811
|
+
t.integer "declaration_type_id"
|
812
|
+
t.integer "transport_mode_id"
|
813
|
+
t.integer "customs_office_id"
|
814
|
+
t.integer "customs_office_unit_id"
|
815
|
+
t.integer "country_of_origin_id"
|
816
|
+
t.integer "acquisition_mode_id"
|
817
|
+
t.integer "payment_term_id"
|
818
|
+
t.integer "delivery_term_id"
|
819
|
+
t.integer "container_arrangement_id"
|
820
|
+
t.integer "customs_transport_tariff_id"
|
821
|
+
t.integer "esl_transport_tariff_id"
|
822
|
+
t.integer "warehouse_id"
|
823
|
+
t.string "trade_license_number"
|
824
|
+
t.string "tin_number"
|
825
|
+
t.string "t_number"
|
826
|
+
t.string "investment_license_number"
|
827
|
+
t.string "load_level"
|
828
|
+
t.boolean "is_transfer"
|
829
|
+
t.string "transfer_name"
|
830
|
+
t.string "transfer_tin_no"
|
831
|
+
t.string "transport_modality"
|
832
|
+
t.boolean "tasks_generated", default: false
|
833
|
+
t.integer "owner_id"
|
834
|
+
t.index ["acquisition_mode_id"], name: "am_on_od_indx"
|
835
|
+
t.index ["container_arrangement_id"], name: "ca_on_od_indx"
|
836
|
+
t.index ["country_of_origin_id"], name: "coo_on_od_indx"
|
837
|
+
t.index ["customs_office_id"], name: "co_on_od_indx"
|
838
|
+
t.index ["customs_office_unit_id"], name: "cou_on_od_indx"
|
839
|
+
t.index ["customs_transport_tariff_id"], name: "ctt_on_od_indx"
|
840
|
+
t.index ["declarant_id"], name: "declarant_on_od_indx"
|
841
|
+
t.index ["declaration_type_id"], name: "dty_on_od_indx"
|
842
|
+
t.index ["delivery_term_id"], name: "dt_on_od_indx"
|
843
|
+
t.index ["esl_transport_tariff_id"], name: "ett_on_od_indx"
|
844
|
+
t.index ["owner_id"], name: "operations_on_owner_indx"
|
845
|
+
t.index ["payment_term_id"], name: "pt_on_od_indx"
|
846
|
+
t.index ["transport_mode_id"], name: "tm_on_od_indx"
|
847
|
+
t.index ["warehouse_id"], name: "wh_on_od_indx"
|
848
|
+
end
|
849
|
+
|
850
|
+
create_table "logistics_core_out_of_gauge_bb_rates", id: :serial, force: :cascade do |t|
|
851
|
+
t.integer "break_bulk_unit_id"
|
852
|
+
t.date "effective_date"
|
853
|
+
t.float "height_from"
|
854
|
+
t.float "height_to"
|
855
|
+
t.float "length_from"
|
856
|
+
t.float "length_to"
|
857
|
+
t.float "margin"
|
858
|
+
t.float "rate"
|
859
|
+
t.integer "route_id"
|
860
|
+
t.date "valid_until"
|
861
|
+
t.float "weight_from"
|
862
|
+
t.float "weight_to"
|
863
|
+
t.float "width_from"
|
864
|
+
t.float "width_to"
|
865
|
+
t.datetime "created_at", null: false
|
866
|
+
t.datetime "updated_at", null: false
|
867
|
+
t.index ["break_bulk_unit_id"], name: "oogbr_on_bbu_indx"
|
868
|
+
t.index ["route_id"], name: "oogbr_on_route_indx"
|
869
|
+
end
|
870
|
+
|
871
|
+
create_table "logistics_core_out_of_gauge_cnt_rates", id: :serial, force: :cascade do |t|
|
872
|
+
t.integer "container_size_id"
|
873
|
+
t.date "effective_date"
|
874
|
+
t.float "height_from"
|
875
|
+
t.float "height_to"
|
876
|
+
t.float "length_from"
|
877
|
+
t.float "length_to"
|
878
|
+
t.float "margin"
|
879
|
+
t.float "rate"
|
880
|
+
t.integer "route_id"
|
881
|
+
t.date "valid_until"
|
882
|
+
t.float "weight_from"
|
883
|
+
t.float "weight_to"
|
884
|
+
t.float "width_from"
|
885
|
+
t.float "width_to"
|
886
|
+
t.datetime "created_at", null: false
|
887
|
+
t.datetime "updated_at", null: false
|
888
|
+
t.index ["container_size_id"], name: "oogcr_on_cs_indx"
|
889
|
+
t.index ["route_id"], name: "oogcr_on_route_indx"
|
890
|
+
end
|
891
|
+
|
892
|
+
create_table "logistics_core_reference_numbers", id: :serial, force: :cascade do |t|
|
893
|
+
t.string "reference_type"
|
894
|
+
t.string "prefix"
|
895
|
+
t.integer "next_no"
|
896
|
+
t.datetime "created_at", null: false
|
897
|
+
t.datetime "updated_at", null: false
|
898
|
+
end
|
899
|
+
|
900
|
+
create_table "logistics_core_review_notes", id: :serial, force: :cascade do |t|
|
901
|
+
t.string "note"
|
902
|
+
t.integer "correspondence_id"
|
903
|
+
t.string "correspondence_type"
|
904
|
+
t.datetime "created_at", null: false
|
905
|
+
t.datetime "updated_at", null: false
|
906
|
+
end
|
907
|
+
|
908
|
+
create_table "logistics_core_route_rates", id: :serial, force: :cascade do |t|
|
909
|
+
t.float "rate"
|
910
|
+
t.integer "route_id"
|
911
|
+
t.integer "transporter_id"
|
912
|
+
t.integer "weight_range_id"
|
913
|
+
t.integer "rate_period_id"
|
914
|
+
t.string "rate_type"
|
915
|
+
t.integer "container_size_id"
|
916
|
+
t.integer "selected_transporter_id"
|
917
|
+
t.datetime "created_at", null: false
|
918
|
+
t.datetime "updated_at", null: false
|
919
|
+
t.index ["container_size_id"], name: "rr_on_cs_indx"
|
920
|
+
t.index ["rate_period_id"], name: "rr_on_rp_indx"
|
921
|
+
t.index ["route_id"], name: "rr_on_route_indx"
|
922
|
+
t.index ["selected_transporter_id"], name: "rr_on_st_indx"
|
923
|
+
t.index ["transporter_id"], name: "rr_on_transporter_indx"
|
924
|
+
t.index ["weight_range_id"], name: "rr_on_wr_indx"
|
925
|
+
end
|
926
|
+
|
927
|
+
create_table "logistics_core_routes", id: :serial, force: :cascade do |t|
|
928
|
+
t.integer "from_id"
|
929
|
+
t.integer "to_id"
|
930
|
+
t.string "description"
|
931
|
+
t.integer "node_id"
|
932
|
+
t.string "zone"
|
933
|
+
t.float "radius"
|
934
|
+
t.string "route_type"
|
935
|
+
t.float "margin"
|
936
|
+
t.datetime "created_at", null: false
|
937
|
+
t.datetime "updated_at", null: false
|
938
|
+
t.index ["from_id"], name: "route_on_rl_from_indx"
|
939
|
+
t.index ["node_id"], name: "route_on_rl_node_indx"
|
940
|
+
t.index ["to_id"], name: "route_on_rl_to_indx"
|
941
|
+
end
|
942
|
+
|
943
|
+
create_table "logistics_core_self_driving_rates", id: :serial, force: :cascade do |t|
|
944
|
+
t.integer "break_bulk_unit_id"
|
945
|
+
t.float "margin"
|
946
|
+
t.decimal "rate"
|
947
|
+
t.integer "rate_period_id"
|
948
|
+
t.string "rate_type"
|
949
|
+
t.integer "route_id"
|
950
|
+
t.integer "selected_transporter_id"
|
951
|
+
t.integer "transporter_id"
|
952
|
+
t.datetime "created_at", null: false
|
953
|
+
t.datetime "updated_at", null: false
|
954
|
+
t.index ["break_bulk_unit_id"], name: "sdr_on_bbu_indx"
|
955
|
+
t.index ["rate_period_id"], name: "sdr_on_trp_indx"
|
956
|
+
t.index ["route_id"], name: "sdr_on_route_indx"
|
957
|
+
t.index ["selected_transporter_id"], name: "sdr_on_st_indx"
|
958
|
+
t.index ["transporter_id"], name: "sdr_on_transporter_indx"
|
959
|
+
end
|
960
|
+
|
961
|
+
create_table "logistics_core_service_delivery_unit_chargeable_services", id: :serial, force: :cascade do |t|
|
962
|
+
t.integer "service_delivery_unit_id"
|
963
|
+
t.integer "chargeable_service_id"
|
964
|
+
t.boolean "is_mandatory", default: false
|
965
|
+
t.index ["service_delivery_unit_id", "chargeable_service_id"], name: "sdu_on_services_indx"
|
966
|
+
end
|
967
|
+
|
968
|
+
create_table "logistics_core_service_delivery_unit_services", id: :serial, force: :cascade do |t|
|
969
|
+
t.integer "service_delivery_unit_id"
|
970
|
+
t.integer "chargeable_service_id"
|
971
|
+
t.boolean "is_mandatory"
|
972
|
+
t.datetime "created_at", null: false
|
973
|
+
t.datetime "updated_at", null: false
|
974
|
+
t.index ["chargeable_service_id"], name: "sdus_on_cs_indx"
|
975
|
+
t.index ["service_delivery_unit_id"], name: "sdus_on_sdu_indx"
|
976
|
+
end
|
977
|
+
|
978
|
+
create_table "logistics_core_service_delivery_units", id: :serial, force: :cascade do |t|
|
979
|
+
t.string "code", null: false
|
980
|
+
t.string "name", null: false
|
981
|
+
t.integer "currency_id", null: false
|
982
|
+
t.string "address"
|
983
|
+
t.integer "parent_id"
|
984
|
+
t.integer "service_delivery_unit_type_id", null: false
|
985
|
+
t.datetime "created_at", null: false
|
986
|
+
t.datetime "updated_at", null: false
|
987
|
+
t.index ["currency_id"], name: "currency_on_sdu_indx"
|
988
|
+
t.index ["service_delivery_unit_type_id"], name: "sdu_type_on_sdu_indx"
|
989
|
+
end
|
990
|
+
|
991
|
+
create_table "logistics_core_service_increments", id: :serial, force: :cascade do |t|
|
992
|
+
t.string "code"
|
993
|
+
t.string "name"
|
994
|
+
t.boolean "has_increment"
|
995
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
996
|
+
t.datetime "created_at", null: false
|
997
|
+
t.datetime "updated_at", null: false
|
998
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "si_on_csuoc_indx"
|
999
|
+
end
|
1000
|
+
|
1001
|
+
create_table "logistics_core_service_rates", id: :serial, force: :cascade do |t|
|
1002
|
+
t.integer "container_size_id"
|
1003
|
+
t.integer "transaction_type_id"
|
1004
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
1005
|
+
t.float "low"
|
1006
|
+
t.float "medium"
|
1007
|
+
t.float "high"
|
1008
|
+
t.date "effective_date"
|
1009
|
+
t.float "margin"
|
1010
|
+
t.datetime "created_at", null: false
|
1011
|
+
t.datetime "updated_at", null: false
|
1012
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "sr_on_csuoc_indx"
|
1013
|
+
t.index ["container_size_id"], name: "sr_on_cs_indx"
|
1014
|
+
t.index ["transaction_type_id"], name: "sr_on_tt_indx"
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
create_table "logistics_core_special_increment_container_rates", id: :serial, force: :cascade do |t|
|
1018
|
+
t.integer "container_type_id"
|
1019
|
+
t.float "rate"
|
1020
|
+
t.date "effective_date"
|
1021
|
+
t.datetime "created_at", null: false
|
1022
|
+
t.datetime "updated_at", null: false
|
1023
|
+
t.index ["container_type_id"], name: "sicr_on_cnt_indx"
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
create_table "logistics_core_special_increment_content_rates", id: :serial, force: :cascade do |t|
|
1027
|
+
t.integer "content_type_id"
|
1028
|
+
t.float "rate"
|
1029
|
+
t.date "effective_date"
|
1030
|
+
t.datetime "created_at", null: false
|
1031
|
+
t.datetime "updated_at", null: false
|
1032
|
+
t.index ["content_type_id"], name: "sicr_on_ct_indx"
|
1033
|
+
end
|
1034
|
+
|
1035
|
+
create_table "logistics_core_transport_rate_periods", id: :serial, force: :cascade do |t|
|
1036
|
+
t.date "effective_date"
|
1037
|
+
t.date "valid_until"
|
1038
|
+
t.boolean "current_period"
|
1039
|
+
t.datetime "created_at", null: false
|
1040
|
+
t.datetime "updated_at", null: false
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
create_table "logistics_core_transporters", id: :serial, force: :cascade do |t|
|
1044
|
+
t.string "name"
|
1045
|
+
t.string "postal_code"
|
1046
|
+
t.string "city"
|
1047
|
+
t.integer "country_id"
|
1048
|
+
t.string "telephone"
|
1049
|
+
t.string "fax"
|
1050
|
+
t.string "email"
|
1051
|
+
t.string "contact_person"
|
1052
|
+
t.string "contact_telephone"
|
1053
|
+
t.datetime "created_at", null: false
|
1054
|
+
t.datetime "updated_at", null: false
|
1055
|
+
t.index ["country_id"], name: "transporter_on_country_indx"
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
create_table "logistics_core_truck_rates", id: :serial, force: :cascade do |t|
|
1059
|
+
t.integer "transaction_type_id"
|
1060
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
1061
|
+
t.float "rate"
|
1062
|
+
t.date "effective_date"
|
1063
|
+
t.float "low"
|
1064
|
+
t.float "medium"
|
1065
|
+
t.float "high"
|
1066
|
+
t.float "margin"
|
1067
|
+
t.datetime "created_at", null: false
|
1068
|
+
t.datetime "updated_at", null: false
|
1069
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "tr_on_csuoc_indx"
|
1070
|
+
t.index ["transaction_type_id"], name: "tr_on_tt_indx"
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
create_table "logistics_core_truck_type_assignments", id: :serial, force: :cascade do |t|
|
1074
|
+
t.integer "container_size_id"
|
1075
|
+
t.float "truck_type"
|
1076
|
+
t.datetime "created_at", null: false
|
1077
|
+
t.datetime "updated_at", null: false
|
1078
|
+
t.index ["container_size_id"], name: "tta_on_cs_indx"
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
create_table "logistics_core_truck_type_bb_weight_ranges", id: :serial, force: :cascade do |t|
|
1082
|
+
t.integer "weight_range_id"
|
1083
|
+
t.integer "break_bulk_truck_assignment_id"
|
1084
|
+
t.datetime "created_at", null: false
|
1085
|
+
t.datetime "updated_at", null: false
|
1086
|
+
t.index ["break_bulk_truck_assignment_id"], name: "ttbbwr_on_bbta_indx"
|
1087
|
+
t.index ["weight_range_id"], name: "ttbbwr_on_wr_indx"
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
create_table "logistics_core_truck_type_cnt_weight_ranges", id: :serial, force: :cascade do |t|
|
1091
|
+
t.integer "truck_type_assignment_id"
|
1092
|
+
t.integer "weight_range_id"
|
1093
|
+
t.datetime "created_at", null: false
|
1094
|
+
t.datetime "updated_at", null: false
|
1095
|
+
t.index ["truck_type_assignment_id"], name: "ttcwr_on_tta_indx"
|
1096
|
+
t.index ["weight_range_id"], name: "ttcwr_on_wr_indx"
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
create_table "logistics_core_twenty_feet_equivalence_ratios", id: :serial, force: :cascade do |t|
|
1100
|
+
t.integer "container_size_id"
|
1101
|
+
t.float "ratio"
|
1102
|
+
t.datetime "created_at", null: false
|
1103
|
+
t.datetime "updated_at", null: false
|
1104
|
+
t.index ["container_size_id"], name: "tfer_on_cs_indx"
|
1105
|
+
end
|
1106
|
+
|
1107
|
+
create_table "logistics_core_twenty_foot_equivalence_unit_rates", id: :serial, force: :cascade do |t|
|
1108
|
+
t.integer "chargeable_service_unit_of_charge_id"
|
1109
|
+
t.date "effective_date"
|
1110
|
+
t.float "high"
|
1111
|
+
t.float "low"
|
1112
|
+
t.float "medium"
|
1113
|
+
t.float "margin"
|
1114
|
+
t.integer "transaction_type_id"
|
1115
|
+
t.datetime "created_at", null: false
|
1116
|
+
t.datetime "updated_at", null: false
|
1117
|
+
t.index ["chargeable_service_unit_of_charge_id"], name: "tfeur_on_csuoc_indx"
|
1118
|
+
t.index ["transaction_type_id"], name: "tfeur_on_tt_indx"
|
1119
|
+
end
|
1120
|
+
|
1121
|
+
create_table "logistics_core_units", id: :serial, force: :cascade do |t|
|
1122
|
+
t.string "name"
|
1123
|
+
t.string "abbreviation"
|
1124
|
+
t.integer "unit_type_id"
|
1125
|
+
t.float "rate_to_base"
|
1126
|
+
t.datetime "created_at", null: false
|
1127
|
+
t.datetime "updated_at", null: false
|
1128
|
+
t.index ["unit_type_id"], name: "units_on_ut_indx"
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
create_table "logistics_core_warehouse_rate_periods", id: :serial, force: :cascade do |t|
|
1132
|
+
t.integer "warehouse_id"
|
1133
|
+
t.string "rate_period"
|
1134
|
+
t.integer "from"
|
1135
|
+
t.integer "to"
|
1136
|
+
t.datetime "created_at", null: false
|
1137
|
+
t.datetime "updated_at", null: false
|
1138
|
+
t.index ["warehouse_id"], name: "wrp_on_wh_indx"
|
1139
|
+
end
|
1140
|
+
|
1141
|
+
create_table "logistics_core_warehouses", id: :serial, force: :cascade do |t|
|
1142
|
+
t.string "code"
|
1143
|
+
t.string "name"
|
1144
|
+
t.string "description"
|
1145
|
+
t.string "location"
|
1146
|
+
t.string "email"
|
1147
|
+
t.string "contact_telephone"
|
1148
|
+
t.datetime "created_at", null: false
|
1149
|
+
t.datetime "updated_at", null: false
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
create_table "logistics_core_weight_ranges", id: :serial, force: :cascade do |t|
|
1153
|
+
t.float "weight_from"
|
1154
|
+
t.float "weight_to"
|
1155
|
+
t.datetime "created_at", null: false
|
1156
|
+
t.datetime "updated_at", null: false
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
create_table "mks_auth_application_modules", id: :serial, force: :cascade do |t|
|
1160
|
+
t.string "code", null: false
|
1161
|
+
t.string "name", null: false
|
1162
|
+
t.datetime "created_at", null: false
|
1163
|
+
t.datetime "updated_at", null: false
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
create_table "mks_auth_menus", id: :serial, force: :cascade do |t|
|
1167
|
+
t.string "text", null: false
|
1168
|
+
t.string "icon_cls"
|
1169
|
+
t.string "class_name"
|
1170
|
+
t.string "location"
|
1171
|
+
t.integer "parent_id"
|
1172
|
+
t.integer "application_module_id"
|
1173
|
+
t.datetime "created_at", null: false
|
1174
|
+
t.datetime "updated_at", null: false
|
1175
|
+
t.index ["application_module_id"], name: "index_mks_auth_menus_on_application_module_id"
|
1176
|
+
t.index ["parent_id"], name: "index_mks_auth_menus_on_parent_id"
|
1177
|
+
end
|
1178
|
+
|
1179
|
+
create_table "mks_auth_menus_user_roles", id: :serial, force: :cascade do |t|
|
1180
|
+
t.integer "menu_id"
|
1181
|
+
t.integer "user_role_id"
|
1182
|
+
t.index ["menu_id", "user_role_id"], name: "index_mks_auth_menus_user_roles_on_menu_id_and_user_role_id"
|
1183
|
+
end
|
1184
|
+
|
1185
|
+
create_table "mks_auth_user_roles", id: :serial, force: :cascade do |t|
|
1186
|
+
t.string "name", null: false
|
1187
|
+
t.datetime "created_at", null: false
|
1188
|
+
t.datetime "updated_at", null: false
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
create_table "mks_auth_users", id: :serial, force: :cascade do |t|
|
1192
|
+
t.string "first_name", null: false
|
1193
|
+
t.string "last_name", null: false
|
1194
|
+
t.string "email", null: false
|
1195
|
+
t.boolean "active", default: true, null: false
|
1196
|
+
t.integer "application_module_id"
|
1197
|
+
t.string "password_digest"
|
1198
|
+
t.datetime "created_at", null: false
|
1199
|
+
t.datetime "updated_at", null: false
|
1200
|
+
t.index ["application_module_id"], name: "index_mks_auth_users_on_application_module_id"
|
1201
|
+
end
|
1202
|
+
|
1203
|
+
create_table "mks_auth_users_user_roles", id: false, force: :cascade do |t|
|
1204
|
+
t.integer "user_id"
|
1205
|
+
t.integer "user_role_id"
|
1206
|
+
t.index ["user_id", "user_role_id"], name: "index_mks_auth_users_user_roles_on_user_id_and_user_role_id"
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
add_foreign_key "logistics_core_addendums", "logistics_core_service_increments", column: "addition_id", name: "fk_addendum_additions"
|
1210
|
+
add_foreign_key "logistics_core_addendums", "logistics_core_service_increments", column: "service_increment_id", name: "fk_addendum_service_increments"
|
1211
|
+
add_foreign_key "logistics_core_additional_documents", "logistics_core_document_types", column: "document_type_id"
|
1212
|
+
add_foreign_key "logistics_core_additional_documents", "logistics_core_lookups", column: "transaction_type_id"
|
1213
|
+
add_foreign_key "logistics_core_agencies", "logistics_core_extended_lookups", column: "agency_category_id"
|
1214
|
+
add_foreign_key "logistics_core_agency_permit_documents", "logistics_core_agencies", column: "agency_id"
|
1215
|
+
add_foreign_key "logistics_core_agency_permit_documents", "logistics_core_document_types", column: "document_type_id"
|
1216
|
+
add_foreign_key "logistics_core_air_cargo_limits", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1217
|
+
add_foreign_key "logistics_core_air_cargo_limits", "logistics_core_lookups", column: "transaction_type_id"
|
1218
|
+
add_foreign_key "logistics_core_airway_bill_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1219
|
+
add_foreign_key "logistics_core_airway_bill_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1220
|
+
add_foreign_key "logistics_core_bill_of_lading_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1221
|
+
add_foreign_key "logistics_core_bill_of_lading_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1222
|
+
add_foreign_key "logistics_core_break_bulk_cargo_details", "logistics_core_lookups", column: "break_bulk_unit_id"
|
1223
|
+
add_foreign_key "logistics_core_break_bulk_cargo_details", "logistics_core_lookups", column: "cargo_type_id"
|
1224
|
+
add_foreign_key "logistics_core_break_bulk_cargo_details", "logistics_core_lookups", column: "content_type_id"
|
1225
|
+
add_foreign_key "logistics_core_break_bulk_cargo_details", "logistics_core_offer_requests", column: "offer_request_id"
|
1226
|
+
add_foreign_key "logistics_core_break_bulk_demurrage_rates", "logistics_core_demurrage_rate_periods", column: "demurrage_rate_period_id"
|
1227
|
+
add_foreign_key "logistics_core_break_bulk_demurrage_rates", "logistics_core_lookups", column: "break_bulk_unit_id"
|
1228
|
+
add_foreign_key "logistics_core_break_bulk_demurrage_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1229
|
+
add_foreign_key "logistics_core_break_bulk_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1230
|
+
add_foreign_key "logistics_core_break_bulk_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1231
|
+
add_foreign_key "logistics_core_break_bulk_storage_rates", "logistics_core_lookups", column: "break_bulk_unit_id"
|
1232
|
+
add_foreign_key "logistics_core_break_bulk_storage_rates", "logistics_core_lookups", column: "content_type_id"
|
1233
|
+
add_foreign_key "logistics_core_break_bulk_storage_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1234
|
+
add_foreign_key "logistics_core_break_bulk_storage_rates", "logistics_core_warehouse_rate_periods", column: "warehouse_rate_period_id"
|
1235
|
+
add_foreign_key "logistics_core_break_bulk_unit_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1236
|
+
add_foreign_key "logistics_core_break_bulk_unit_rates", "logistics_core_lookups", column: "break_bulk_unit_id"
|
1237
|
+
add_foreign_key "logistics_core_break_bulk_unit_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1238
|
+
add_foreign_key "logistics_core_broad_gauge_bbs", "logistics_core_lookups", column: "break_bulk_unit_id"
|
1239
|
+
add_foreign_key "logistics_core_broad_gauge_cnts", "logistics_core_lookups", column: "container_size_id"
|
1240
|
+
add_foreign_key "logistics_core_broad_gauge_cnts", "logistics_core_lookups", column: "container_type_id"
|
1241
|
+
add_foreign_key "logistics_core_car_carrier_rates", "logistics_core_lookups", column: "break_bulk_unit_id"
|
1242
|
+
add_foreign_key "logistics_core_car_carrier_rates", "logistics_core_routes", column: "route_id"
|
1243
|
+
add_foreign_key "logistics_core_car_carrier_rates", "logistics_core_transport_rate_periods", column: "transport_rate_period_id"
|
1244
|
+
add_foreign_key "logistics_core_car_carrier_rates", "logistics_core_transporters", column: "selected_transporter_id", name: "fk_ccr_on_selected_transporter"
|
1245
|
+
add_foreign_key "logistics_core_car_carrier_rates", "logistics_core_transporters", column: "transporter_id"
|
1246
|
+
add_foreign_key "logistics_core_cargo_details", "logistics_core_container_types", column: "container_type_id"
|
1247
|
+
add_foreign_key "logistics_core_cargo_details", "logistics_core_lookups", column: "container_size_id"
|
1248
|
+
add_foreign_key "logistics_core_cargo_details", "logistics_core_lookups", column: "content_type_id"
|
1249
|
+
add_foreign_key "logistics_core_cargo_details", "logistics_core_offer_requests", column: "offer_request_id"
|
1250
|
+
add_foreign_key "logistics_core_carriers", "logistics_core_extended_lookups", column: "carrier_type_id"
|
1251
|
+
add_foreign_key "logistics_core_chargeable_service_container_type_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1252
|
+
add_foreign_key "logistics_core_chargeable_service_container_type_rates", "logistics_core_special_increment_container_rates", column: "special_increment_container_rate_id"
|
1253
|
+
add_foreign_key "logistics_core_chargeable_service_content_type_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1254
|
+
add_foreign_key "logistics_core_chargeable_service_content_type_rates", "logistics_core_special_increment_content_rates", column: "special_increment_content_rate_id"
|
1255
|
+
add_foreign_key "logistics_core_chargeable_service_increments", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1256
|
+
add_foreign_key "logistics_core_chargeable_service_increments", "logistics_core_service_increments", column: "service_increment_id"
|
1257
|
+
add_foreign_key "logistics_core_chargeable_service_unit_of_charges", "logistics_core_chargeable_services", column: "chargeable_service_id"
|
1258
|
+
add_foreign_key "logistics_core_chargeable_service_unit_of_charges", "logistics_core_lookups", column: "unit_of_charge_id"
|
1259
|
+
add_foreign_key "logistics_core_chargeable_service_unit_of_charges", "logistics_core_service_delivery_units", column: "service_delivery_unit_id"
|
1260
|
+
add_foreign_key "logistics_core_chargeable_services", "logistics_core_lookups", column: "chargeable_service_type_id"
|
1261
|
+
add_foreign_key "logistics_core_chargeable_services", "logistics_core_lookups", column: "transport_service_type_id"
|
1262
|
+
add_foreign_key "logistics_core_client_contracts", "logistics_core_offer_requests", column: "offer_request_id"
|
1263
|
+
add_foreign_key "logistics_core_clients", "logistics_core_lookups", column: "client_category_id", name: "fk_cl_on_cc"
|
1264
|
+
add_foreign_key "logistics_core_clients", "logistics_core_lookups", column: "country_id"
|
1265
|
+
add_foreign_key "logistics_core_common_documents", "logistics_core_document_types", column: "document_type_id"
|
1266
|
+
add_foreign_key "logistics_core_container_demurrage_rates", "logistics_core_demurrage_rate_periods", column: "demurrage_rate_period_id"
|
1267
|
+
add_foreign_key "logistics_core_container_demurrage_rates", "logistics_core_lookups", column: "container_size_id"
|
1268
|
+
add_foreign_key "logistics_core_container_demurrage_rates", "logistics_core_lookups", column: "container_type_id"
|
1269
|
+
add_foreign_key "logistics_core_container_demurrage_rates", "logistics_core_lookups", column: "content_type_id"
|
1270
|
+
add_foreign_key "logistics_core_container_demurrage_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1271
|
+
add_foreign_key "logistics_core_container_storage_rates", "logistics_core_lookups", column: "container_size_id"
|
1272
|
+
add_foreign_key "logistics_core_container_storage_rates", "logistics_core_lookups", column: "container_type_id"
|
1273
|
+
add_foreign_key "logistics_core_container_storage_rates", "logistics_core_lookups", column: "content_type_id"
|
1274
|
+
add_foreign_key "logistics_core_container_storage_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1275
|
+
add_foreign_key "logistics_core_container_storage_rates", "logistics_core_warehouse_rate_periods", column: "warehouse_rate_period_id"
|
1276
|
+
add_foreign_key "logistics_core_contract_break_bulk_unit_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1277
|
+
add_foreign_key "logistics_core_contract_break_bulk_unit_rates", "logistics_core_lookups", column: "break_bulk_unit_id", name: "fk_cabr_on_bbu"
|
1278
|
+
add_foreign_key "logistics_core_contract_break_bulk_unit_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1279
|
+
add_foreign_key "logistics_core_contract_container_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1280
|
+
add_foreign_key "logistics_core_contract_container_rates", "logistics_core_lookups", column: "container_size_id", name: "fk_cabr_on_cs"
|
1281
|
+
add_foreign_key "logistics_core_contract_container_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1282
|
+
add_foreign_key "logistics_core_contract_item_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1283
|
+
add_foreign_key "logistics_core_contract_item_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1284
|
+
add_foreign_key "logistics_core_contract_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1285
|
+
add_foreign_key "logistics_core_contract_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1286
|
+
add_foreign_key "logistics_core_contracts", "logistics_core_clients", column: "client_id"
|
1287
|
+
add_foreign_key "logistics_core_convoy_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1288
|
+
add_foreign_key "logistics_core_convoy_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1289
|
+
add_foreign_key "logistics_core_currency_rates", "logistics_core_lookups", column: "currency_id"
|
1290
|
+
add_foreign_key "logistics_core_customs_transport_tariffs", "logistics_core_extended_lookups", column: "entry_point_id"
|
1291
|
+
add_foreign_key "logistics_core_customs_transport_tariffs", "logistics_core_routes", column: "route_id"
|
1292
|
+
add_foreign_key "logistics_core_declaration_types", "logistics_core_lookups", column: "transaction_type_id"
|
1293
|
+
add_foreign_key "logistics_core_demurrage_rate_periods", "logistics_core_carrier_agents", column: "carrier_agent_id"
|
1294
|
+
add_foreign_key "logistics_core_demurrage_rates", "logistics_core_demurrage_rate_periods", column: "demurrage_rate_period_id"
|
1295
|
+
add_foreign_key "logistics_core_demurrage_rates", "logistics_core_lookups", column: "unit_of_charge_id"
|
1296
|
+
add_foreign_key "logistics_core_document_types", "logistics_core_extended_lookups", column: "document_type_category_id"
|
1297
|
+
add_foreign_key "logistics_core_document_types", "logistics_core_extended_lookups", column: "document_type_origin_id"
|
1298
|
+
add_foreign_key "logistics_core_esl_transport_tariff_rates", "logistics_core_esl_transport_tariffs", column: "esl_transport_tariff_id"
|
1299
|
+
add_foreign_key "logistics_core_esl_transport_tariffs", "logistics_core_routes", column: "route_id"
|
1300
|
+
add_foreign_key "logistics_core_freight_ton_demurrage_rates", "logistics_core_demurrage_rate_periods", column: "demurrage_rate_period_id"
|
1301
|
+
add_foreign_key "logistics_core_freight_ton_demurrage_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1302
|
+
add_foreign_key "logistics_core_freight_ton_storage_rates", "logistics_core_lookups", column: "content_type_id"
|
1303
|
+
add_foreign_key "logistics_core_freight_ton_storage_rates", "logistics_core_lookups", column: "transaction_type_id", name: "fk_fstr_on_tt"
|
1304
|
+
add_foreign_key "logistics_core_freight_ton_storage_rates", "logistics_core_warehouse_rate_periods", column: "warehouse_rate_period_id"
|
1305
|
+
add_foreign_key "logistics_core_increment_rates", "logistics_core_service_increments", column: "service_increment_id"
|
1306
|
+
add_foreign_key "logistics_core_item_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1307
|
+
add_foreign_key "logistics_core_item_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1308
|
+
add_foreign_key "logistics_core_kilogram_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1309
|
+
add_foreign_key "logistics_core_kilogram_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1310
|
+
add_foreign_key "logistics_core_offer_requests", "logistics_core_agents", column: "agent_id"
|
1311
|
+
add_foreign_key "logistics_core_offer_requests", "logistics_core_carriers", column: "carrier_id"
|
1312
|
+
add_foreign_key "logistics_core_offer_requests", "logistics_core_clients", column: "client_id"
|
1313
|
+
add_foreign_key "logistics_core_offer_requests", "logistics_core_contracts", column: "contract_id"
|
1314
|
+
add_foreign_key "logistics_core_offer_requests", "logistics_core_lookups", column: "communication_channel_id"
|
1315
|
+
add_foreign_key "logistics_core_offer_requests", "logistics_core_operations", column: "operation_id"
|
1316
|
+
add_foreign_key "logistics_core_offer_requests", "logistics_core_warehouses", column: "warehouse_id"
|
1317
|
+
add_foreign_key "logistics_core_offer_requests", "mks_auth_users", column: "user_id"
|
1318
|
+
add_foreign_key "logistics_core_operation_documents", "logistics_core_operations", column: "operation_id"
|
1319
|
+
add_foreign_key "logistics_core_operation_summaries", "logistics_core_operations", column: "operation_id"
|
1320
|
+
add_foreign_key "logistics_core_operations", "logistics_core_customs_offices", column: "customs_office_id"
|
1321
|
+
add_foreign_key "logistics_core_operations", "logistics_core_customs_transport_tariffs", column: "customs_transport_tariff_id"
|
1322
|
+
add_foreign_key "logistics_core_operations", "logistics_core_declarants", column: "declarant_id"
|
1323
|
+
add_foreign_key "logistics_core_operations", "logistics_core_declaration_types", column: "declaration_type_id"
|
1324
|
+
add_foreign_key "logistics_core_operations", "logistics_core_esl_transport_tariffs", column: "esl_transport_tariff_id"
|
1325
|
+
add_foreign_key "logistics_core_operations", "logistics_core_extended_lookups", column: "acquisition_mode_id"
|
1326
|
+
add_foreign_key "logistics_core_operations", "logistics_core_extended_lookups", column: "container_arrangement_id"
|
1327
|
+
add_foreign_key "logistics_core_operations", "logistics_core_extended_lookups", column: "delivery_term_id"
|
1328
|
+
add_foreign_key "logistics_core_operations", "logistics_core_extended_lookups", column: "payment_term_id"
|
1329
|
+
add_foreign_key "logistics_core_operations", "logistics_core_extended_lookups", column: "transport_mode_id"
|
1330
|
+
add_foreign_key "logistics_core_operations", "logistics_core_lookups", column: "country_of_origin_id"
|
1331
|
+
add_foreign_key "logistics_core_operations", "logistics_core_lookups", column: "customs_office_unit_id"
|
1332
|
+
add_foreign_key "logistics_core_operations", "logistics_core_warehouses", column: "warehouse_id"
|
1333
|
+
add_foreign_key "logistics_core_operations", "mks_auth_users", column: "owner_id"
|
1334
|
+
add_foreign_key "logistics_core_out_of_gauge_bb_rates", "logistics_core_lookups", column: "break_bulk_unit_id"
|
1335
|
+
add_foreign_key "logistics_core_out_of_gauge_bb_rates", "logistics_core_routes", column: "route_id"
|
1336
|
+
add_foreign_key "logistics_core_out_of_gauge_cnt_rates", "logistics_core_lookups", column: "container_size_id"
|
1337
|
+
add_foreign_key "logistics_core_out_of_gauge_cnt_rates", "logistics_core_routes", column: "route_id"
|
1338
|
+
add_foreign_key "logistics_core_route_rates", "logistics_core_lookups", column: "container_size_id"
|
1339
|
+
add_foreign_key "logistics_core_route_rates", "logistics_core_routes", column: "route_id"
|
1340
|
+
add_foreign_key "logistics_core_route_rates", "logistics_core_transport_rate_periods", column: "rate_period_id"
|
1341
|
+
add_foreign_key "logistics_core_route_rates", "logistics_core_transporters", column: "selected_transporter_id"
|
1342
|
+
add_foreign_key "logistics_core_route_rates", "logistics_core_transporters", column: "transporter_id"
|
1343
|
+
add_foreign_key "logistics_core_route_rates", "logistics_core_weight_ranges", column: "weight_range_id"
|
1344
|
+
add_foreign_key "logistics_core_routes", "logistics_core_lookups", column: "from_id", name: "fk_route_from"
|
1345
|
+
add_foreign_key "logistics_core_routes", "logistics_core_lookups", column: "node_id", name: "fk_route_node"
|
1346
|
+
add_foreign_key "logistics_core_routes", "logistics_core_lookups", column: "to_id", name: "fk_route_to"
|
1347
|
+
add_foreign_key "logistics_core_self_driving_rates", "logistics_core_lookups", column: "break_bulk_unit_id"
|
1348
|
+
add_foreign_key "logistics_core_self_driving_rates", "logistics_core_routes", column: "route_id"
|
1349
|
+
add_foreign_key "logistics_core_self_driving_rates", "logistics_core_transport_rate_periods", column: "rate_period_id"
|
1350
|
+
add_foreign_key "logistics_core_self_driving_rates", "logistics_core_transporters", column: "selected_transporter_id"
|
1351
|
+
add_foreign_key "logistics_core_self_driving_rates", "logistics_core_transporters", column: "transporter_id", name: "fk_sdr_on_trans"
|
1352
|
+
add_foreign_key "logistics_core_service_delivery_unit_chargeable_services", "logistics_core_chargeable_services", column: "chargeable_service_id"
|
1353
|
+
add_foreign_key "logistics_core_service_delivery_unit_chargeable_services", "logistics_core_service_delivery_units", column: "service_delivery_unit_id"
|
1354
|
+
add_foreign_key "logistics_core_service_delivery_unit_services", "logistics_core_chargeable_services", column: "chargeable_service_id"
|
1355
|
+
add_foreign_key "logistics_core_service_delivery_unit_services", "logistics_core_service_delivery_units", column: "service_delivery_unit_id"
|
1356
|
+
add_foreign_key "logistics_core_service_delivery_units", "logistics_core_lookups", column: "currency_id"
|
1357
|
+
add_foreign_key "logistics_core_service_delivery_units", "logistics_core_lookups", column: "service_delivery_unit_type_id"
|
1358
|
+
add_foreign_key "logistics_core_service_increments", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1359
|
+
add_foreign_key "logistics_core_service_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1360
|
+
add_foreign_key "logistics_core_service_rates", "logistics_core_lookups", column: "container_size_id"
|
1361
|
+
add_foreign_key "logistics_core_service_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1362
|
+
add_foreign_key "logistics_core_special_increment_container_rates", "logistics_core_lookups", column: "container_type_id"
|
1363
|
+
add_foreign_key "logistics_core_special_increment_content_rates", "logistics_core_lookups", column: "content_type_id"
|
1364
|
+
add_foreign_key "logistics_core_transporters", "logistics_core_lookups", column: "country_id"
|
1365
|
+
add_foreign_key "logistics_core_truck_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1366
|
+
add_foreign_key "logistics_core_truck_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1367
|
+
add_foreign_key "logistics_core_truck_type_assignments", "logistics_core_lookups", column: "container_size_id"
|
1368
|
+
add_foreign_key "logistics_core_truck_type_bb_weight_ranges", "logistics_core_break_bulk_truck_assignments", column: "break_bulk_truck_assignment_id"
|
1369
|
+
add_foreign_key "logistics_core_truck_type_bb_weight_ranges", "logistics_core_weight_ranges", column: "weight_range_id"
|
1370
|
+
add_foreign_key "logistics_core_truck_type_cnt_weight_ranges", "logistics_core_truck_type_assignments", column: "truck_type_assignment_id"
|
1371
|
+
add_foreign_key "logistics_core_truck_type_cnt_weight_ranges", "logistics_core_weight_ranges", column: "weight_range_id"
|
1372
|
+
add_foreign_key "logistics_core_twenty_feet_equivalence_ratios", "logistics_core_lookups", column: "container_size_id"
|
1373
|
+
add_foreign_key "logistics_core_twenty_foot_equivalence_unit_rates", "logistics_core_chargeable_service_unit_of_charges", column: "chargeable_service_unit_of_charge_id"
|
1374
|
+
add_foreign_key "logistics_core_twenty_foot_equivalence_unit_rates", "logistics_core_lookups", column: "transaction_type_id"
|
1375
|
+
add_foreign_key "logistics_core_units", "logistics_core_lookups", column: "unit_type_id"
|
1376
|
+
add_foreign_key "mks_auth_menus", "mks_auth_application_modules", column: "application_module_id"
|
1377
|
+
add_foreign_key "mks_auth_menus", "mks_auth_menus", column: "parent_id"
|
1378
|
+
add_foreign_key "mks_auth_menus_user_roles", "mks_auth_menus", column: "menu_id"
|
1379
|
+
add_foreign_key "mks_auth_menus_user_roles", "mks_auth_user_roles", column: "user_role_id"
|
1380
|
+
add_foreign_key "mks_auth_users", "mks_auth_application_modules", column: "application_module_id"
|
1381
|
+
add_foreign_key "mks_auth_users_user_roles", "mks_auth_user_roles", column: "user_role_id"
|
1382
|
+
add_foreign_key "mks_auth_users_user_roles", "mks_auth_users", column: "user_id"
|
1383
|
+
end
|