This pull request implements significant changes to the database migrations, as well as to the seeders and models related to product management, orders, and other aspects of the system.
Changes Made:
In the Product model, fields such as stock, id_type_wine_fk, id_type_variety_fk, and project_id have been added, and vineyard_area and id_project_fk have been removed. Additionally, relationship methods have been updated.
The Order model has been modified to accommodate changes in the database structure.
The OrderLine model has been updated to reflect the new fields and relationships.
The OrderStatus model has been modified to include new fields and adjust relationships.
In the Product model, relationships with other models have been added, and the relationship method typeWines has been adjusted to typeWine.
Changes have been made to the Project model, removing the relationship with User and adjusting the relationship with Product.
The Province model has been removed.
Adjustments have been made to the TypeVariety, TypeWine, and VineyardArea models to reflect changes in relationships and fields.
Changes have been made to migrations to reflect the new fields and relationships in the product table.
Tests Performed:
Comprehensive tests have been conducted to ensure that the implemented changes do not adversely affect the system's functionality. This includes integration tests and unit tests to ensure data consistency and integrity.
Database Modification
Response to issue #34
Description:
This pull request implements significant changes to the database migrations, as well as to the seeders and models related to product management, orders, and other aspects of the system.
Changes Made:
Product
model, fields such asstock
,id_type_wine_fk
,id_type_variety_fk
, andproject_id
have been added, andvineyard_area
andid_project_fk
have been removed. Additionally, relationship methods have been updated.Order
model has been modified to accommodate changes in the database structure.OrderLine
model has been updated to reflect the new fields and relationships.OrderStatus
model has been modified to include new fields and adjust relationships.Product
model, relationships with other models have been added, and the relationship methodtypeWines
has been adjusted totypeWine
.Project
model, removing the relationship withUser
and adjusting the relationship withProduct
.Province
model has been removed.TypeVariety
,TypeWine
, andVineyardArea
models to reflect changes in relationships and fields.Tests Performed:
Comprehensive tests have been conducted to ensure that the implemented changes do not adversely affect the system's functionality. This includes integration tests and unit tests to ensure data consistency and integrity.