Commit Graph

1 Commits (master)

Author SHA1 Message Date
Amir Hossein Khademi 1d29f39cbc Add BrandId columns and update project framework
*  Introduce `EditDisc` migration in `NetinaShop.Repository.Migrations`
* 🗃️ Add `BrandId` column to `OrderProducts` and `Discounts` tables
* 🛠️ Set default value for `BrandId` in `OrderProducts` to `00000000-0000-0000-0000-000000000000`
* 🗃️ Make `BrandId` in `Discounts` nullable
* 🏷️ Create index on `BrandId` in `Discounts` table
* 🔗 Add foreign key constraint from `Discounts` to `Brands` on `BrandId`
* 🔄 Implement `Down` method to reverse migration changes
* ⬆️ Update target framework to `net8.0`
* 🔢 Increment `AssemblyVersion` and `FileVersion` in `Netina.Api.csproj`
* 🏷️ Add `BrandId` and `Count` properties to `ApplicationContextModelSnapshot.cs`
* 🆕 Add `BrandDiscount` entity inheriting from `Discount` with `BrandId` property

Changes made by Amir.h Khademi
2025-03-29 01:51:08 +03:30