6 Commits

Author SHA1 Message Date
adcee56ce8 fix: update migration timestamp and correct city IDs in data seeder
- Update EF Core migration history timestamp from 20260608225159 to 20260608225845
- Fix CityId values in Complex seed data to use new composite format (provinceId*100+cityId)
  - Tehran: 1 → 801 (provinceId=8, cityId=1)
  - Isfahan: 3 → 401 (provinceId=4, cityId=1)
2026-06-09 02:45:46 +03:30
6644db7e78 fix(db): update migration and configure many-to-many relationships to avoid cascade paths
- Regenerated InitialCreate migration to reflect new entity configurations
- Configured many-to-many relationship between CostCycle and Unit with NoAction on Unit side to prevent multiple cascade paths
- Updated UnitCost relationships: Cascade from CostCycle, NoAction from Unit
- Removed commented-out global filter code and replaced with explicit relationship configurations
2026-06-09 02:23:09 +03:30
569e39b58d Fix 'Invalid object name Provinces' error - reset migrations and switch to Migrate() 2026-06-09 02:13:29 +03:30
7e54818332 fix: use EnsureCreated instead of Migrate to handle missing initial migration 2026-06-09 01:52:29 +03:30
8be6133661 feat: add DataSeeder for reference/test data and auto-migration on startup 2026-06-09 01:31:37 +03:30
8e92c983a2 first commit 2026-06-02 20:48:16 +03:30