Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

DBContextModelSnapshot.cs 4.4KB

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