Skip to content

DA-6: Save previous input calculation logic To database #7

@UchuuJ

Description

@UchuuJ

Save Previous input calculation logic to the database.

Create a migration with the following:

TABLENAME: courior_cost_calculation_history
int
user_id: foreign key int
cost_per_mile: decimal
no_of_drop_off_locations: int
extra_person_count: int
extra_person_price_overide :decimal
total_distance
total_price
extra_person_price
calculation_created_at

TABLENAME: distance_between_locations
id: int
distance: decimal
courier_cost_calculation_history_id:foreign key int

Add model files for the following:

  • courior_cost_calculation_history
  • distance_between_locations

Add logic to the couriourCalculationController

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions