Initial commit

This commit is contained in:
2026-04-23 21:38:24 -04:00
commit 63e12a9636
1762 changed files with 1672620 additions and 0 deletions
@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
namespace PowderCoating.Web.TempScaffold;
public partial class JobPriorityLookup
{
public int Id { get; set; }
public string PriorityCode { get; set; } = null!;
public string DisplayName { get; set; } = null!;
public int DisplayOrder { get; set; }
public string ColorClass { get; set; } = null!;
public string? IconClass { get; set; }
public bool IsActive { get; set; }
public bool IsSystemDefined { get; set; }
public string? Description { get; set; }
public int CompanyId { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
public string? CreatedBy { get; set; }
public string? UpdatedBy { get; set; }
public bool IsDeleted { get; set; }
public DateTime? DeletedAt { get; set; }
public string? DeletedBy { get; set; }
}
@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
namespace PowderCoating.Web.TempScaffold;
public partial class PowderCoatingDbContext : DbContext
{
public PowderCoatingDbContext()
{
}
public PowderCoatingDbContext(DbContextOptions<PowderCoatingDbContext> options)
: base(options)
{
}
public virtual DbSet<JobPriorityLookup> JobPriorityLookups { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder.UseSqlServer("Name=ConnectionStrings:DefaultConnection");
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<JobPriorityLookup>(entity =>
{
entity.HasIndex(e => e.CompanyId, "IX_JobPriorityLookups_CompanyId");
entity.HasIndex(e => new { e.CompanyId, e.PriorityCode }, "IX_JobPriorityLookups_CompanyId_PriorityCode").IsUnique();
});
OnModelCreatingPartial(modelBuilder);
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}