HRDataContextModelSnapshot.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // <auto-generated />
  2. using System;
  3. using MTWorkHR.Infrastructure.Data;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Metadata;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. #nullable disable
  9. namespace MTWorkHR.Infrastructure.Migrations
  10. {
  11. [DbContext(typeof(HRDataContext))]
  12. partial class HRDataContextModelSnapshot : ModelSnapshot
  13. {
  14. protected override void BuildModel(ModelBuilder modelBuilder)
  15. {
  16. #pragma warning disable 612, 618
  17. modelBuilder
  18. .HasAnnotation("ProductVersion", "8.0.1")
  19. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  20. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
  21. modelBuilder.Entity("MTWorkHR.Core.Entities.Company", b =>
  22. {
  23. b.Property<long>("Id")
  24. .ValueGeneratedOnAdd()
  25. .HasColumnType("bigint")
  26. .HasColumnOrder(0);
  27. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  28. b.Property<string>("CRNumber")
  29. .IsRequired()
  30. .HasColumnType("nvarchar(max)");
  31. b.Property<string>("CompanyName")
  32. .IsRequired()
  33. .HasColumnType("nvarchar(max)");
  34. b.Property<DateTime>("CreateDate")
  35. .HasColumnType("datetime2")
  36. .HasColumnOrder(3);
  37. b.Property<string>("CreateUser")
  38. .HasMaxLength(450)
  39. .HasColumnType("nvarchar(450)")
  40. .HasColumnOrder(1);
  41. b.Property<bool>("IsDeleted")
  42. .HasColumnType("bit");
  43. b.Property<decimal>("TaxNumber")
  44. .HasColumnType("decimal(18,2)");
  45. b.Property<DateTime?>("UpdateDate")
  46. .HasColumnType("datetime2")
  47. .HasColumnOrder(4);
  48. b.Property<string>("UpdateUser")
  49. .HasMaxLength(450)
  50. .HasColumnType("nvarchar(450)")
  51. .HasColumnOrder(2);
  52. b.Property<long>("UserId")
  53. .HasColumnType("bigint");
  54. b.HasKey("Id");
  55. b.ToTable("Companies");
  56. });
  57. #pragma warning restore 612, 618
  58. }
  59. }
  60. }