20240131192339_addCompany.Designer.cs 2.6 KB

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