Adding entities from database and migrating

This commit is contained in:
2025-10-13 18:57:45 +01:00
parent 3192d399cc
commit b79e07dd8b
4 changed files with 2750 additions and 10 deletions

View File

@@ -9,10 +9,13 @@ public class PyroFetesDbContext : DbContext
// Entities
public DbSet<Availability> Availabilities { get; set; }
public DbSet<Brand> Brands { get; set; }
public DbSet<City> Cities { get; set; }
public DbSet<Classification> Classifications { get; set; }
public DbSet<Color> Colors { get; set; }
public DbSet<Communication> Communications { get; set; }
public DbSet<Contact> Contacts { get; set; }
public DbSet<ContactServiceProvider> ContactServiceProviders { get; set; }
public DbSet<Contract> Contracts { get; set; }
public DbSet<Customer> Customers { get; set; }
public DbSet<CustomerType> CustomerTypes { get; set; }
public DbSet<Deliverer> Deliverers { get; set; }
@@ -21,6 +24,7 @@ public class PyroFetesDbContext : DbContext
public DbSet<ExperienceLevel> ExperienceLevels { get; set; }
public DbSet<HistoryOfApproval> HistoryOfApprovals { get; set; }
public DbSet<Material> Materials { get; set; }
public DbSet<MaterialWarehouse> MaterialWarehouses { get; set; }
public DbSet<Movement> Movements { get; set; }
public DbSet<Price> Prices { get; set; }
public DbSet<Product> Products { get; set; }
@@ -28,15 +32,20 @@ public class PyroFetesDbContext : DbContext
public DbSet<ProductColor> ProductColors { get; set; }
public DbSet<ProductDelivery> ProductDeliveries { get; set; }
public DbSet<ProductEffect> ProductEffects { get; set; }
public DbSet<ServiceProvider> Providers { get; set; }
public DbSet<ProductTimecode> ProductTimecodes { get; set; }
public DbSet<ProviderContact> ProviderContacts { get; set; }
public DbSet<ProviderType> ProviderTypes { get; set; }
public DbSet<PurchaseOrder> PurchaseOrders { get; set; }
public DbSet<PurchaseProduct> PurchaseProducts { get; set; }
public DbSet<Quotation> Quotations { get; set; }
public DbSet<QuotationProduct> QuotationProducts { get; set; }
public DbSet<ServiceProvider> ServiceProviders { get; set; }
public DbSet<Setting> Settings { get; set; }
public DbSet<Show> Shows { get; set; }
public DbSet<ShowMaterial> ShowMaterials { get; set; }
public DbSet<ShowServiceProvider> ShowServiceProviders { get; set; }
public DbSet<ShowStaff> ShowStaffs { get; set; }
public DbSet<ShowTruck> ShowTrucks { get; set; }
public DbSet<Sound> Sounds { get; set; }
public DbSet<SoundCategory> SoundCategories { get; set; }
public DbSet<SoundTimecode> SoundTimecodes { get; set; }