You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20200522120517_migration001.Designer.cs 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Metadata;
  6. using Microsoft.EntityFrameworkCore.Migrations;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. using ProRestaurant.DBContexts;
  9. namespace ProRestaurant.Migrations
  10. {
  11. [DbContext(typeof(DBContext))]
  12. [Migration("20200522120517_migration001")]
  13. partial class migration001
  14. {
  15. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder
  19. .HasAnnotation("ProductVersion", "2.2.0-rtm-35687")
  20. .HasAnnotation("Relational:MaxIdentifierLength", 128)
  21. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  22. modelBuilder.Entity("ProRestaurant.Models.Accounts.DriverDetail", b =>
  23. {
  24. b.Property<int>("Id")
  25. .ValueGeneratedOnAdd()
  26. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  27. b.Property<DateTime>("Created");
  28. b.Property<DateTime>("Modified");
  29. b.Property<string>("ModifiedBy");
  30. b.Property<string>("Photo");
  31. b.Property<string>("RegistrationNumber");
  32. b.Property<int>("UserId");
  33. b.HasKey("Id");
  34. b.HasIndex("UserId")
  35. .IsUnique();
  36. b.ToTable("DriverDetails");
  37. });
  38. modelBuilder.Entity("ProRestaurant.Models.Accounts.User", b =>
  39. {
  40. b.Property<int>("Id")
  41. .ValueGeneratedOnAdd()
  42. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  43. b.Property<string>("Cellphone");
  44. b.Property<DateTime>("Created");
  45. b.Property<string>("EmailAddress");
  46. b.Property<string>("FirstName");
  47. b.Property<DateTime>("Modified");
  48. b.Property<string>("ModifiedBy");
  49. b.Property<string>("Password");
  50. b.Property<string>("Surname");
  51. b.HasKey("Id");
  52. b.ToTable("Users");
  53. });
  54. modelBuilder.Entity("ProRestaurant.Models.Accounts.UserAddress", b =>
  55. {
  56. b.Property<int>("Id")
  57. .ValueGeneratedOnAdd()
  58. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  59. b.Property<string>("City");
  60. b.Property<string>("ComplexName");
  61. b.Property<string>("Country");
  62. b.Property<DateTime>("Created");
  63. b.Property<decimal>("Latitude");
  64. b.Property<decimal>("Longitude");
  65. b.Property<DateTime>("Modified");
  66. b.Property<string>("ModifiedBy");
  67. b.Property<string>("PostalCode");
  68. b.Property<string>("Provice");
  69. b.Property<string>("SteetNumber");
  70. b.Property<string>("StreetName");
  71. b.Property<string>("Suburb");
  72. b.Property<string>("UnitNumber");
  73. b.Property<int>("UserId");
  74. b.HasKey("Id");
  75. b.HasIndex("UserId");
  76. b.ToTable("UserAddresses");
  77. });
  78. modelBuilder.Entity("ProRestaurant.Models.Accounts.DriverDetail", b =>
  79. {
  80. b.HasOne("ProRestaurant.Models.Accounts.User", "User")
  81. .WithOne("DriverDetails")
  82. .HasForeignKey("ProRestaurant.Models.Accounts.DriverDetail", "UserId")
  83. .OnDelete(DeleteBehavior.Cascade);
  84. });
  85. modelBuilder.Entity("ProRestaurant.Models.Accounts.UserAddress", b =>
  86. {
  87. b.HasOne("ProRestaurant.Models.Accounts.User", "User")
  88. .WithMany()
  89. .HasForeignKey("UserId")
  90. .OnDelete(DeleteBehavior.Cascade);
  91. });
  92. #pragma warning restore 612, 618
  93. }
  94. }
  95. }