123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- // <auto-generated />
- using System;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore.Infrastructure;
- using Microsoft.EntityFrameworkCore.Metadata;
- using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
- using ProRestaurant.DBContexts;
-
- namespace ProRestaurant.Migrations
- {
- [DbContext(typeof(DBContext))]
- partial class DBContextModelSnapshot : ModelSnapshot
- {
- protected override void BuildModel(ModelBuilder modelBuilder)
- {
- #pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "2.2.0-rtm-35687")
- .HasAnnotation("Relational:MaxIdentifierLength", 128)
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
-
- modelBuilder.Entity("ProRestaurant.Models.Accounts.DriverDetail", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
-
- b.Property<DateTime>("Created");
-
- b.Property<DateTime>("Modified");
-
- b.Property<string>("ModifiedBy");
-
- b.Property<string>("Photo");
-
- b.Property<string>("RegistrationNumber");
-
- b.Property<int>("UserId");
-
- b.HasKey("Id");
-
- b.HasIndex("UserId")
- .IsUnique();
-
- b.ToTable("DriverDetails");
- });
-
- modelBuilder.Entity("ProRestaurant.Models.Accounts.User", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
-
- b.Property<string>("Cellphone");
-
- b.Property<DateTime>("Created");
-
- b.Property<string>("EmailAddress");
-
- b.Property<string>("FirstName");
-
- b.Property<DateTime>("Modified");
-
- b.Property<string>("ModifiedBy");
-
- b.Property<string>("Password");
-
- b.Property<string>("Surname");
-
- b.HasKey("Id");
-
- b.ToTable("Users");
- });
-
- modelBuilder.Entity("ProRestaurant.Models.Accounts.UserAddress", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
-
- b.Property<string>("City");
-
- b.Property<string>("ComplexName");
-
- b.Property<string>("Country");
-
- b.Property<DateTime>("Created");
-
- b.Property<decimal>("Latitude");
-
- b.Property<decimal>("Longitude");
-
- b.Property<DateTime>("Modified");
-
- b.Property<string>("ModifiedBy");
-
- b.Property<string>("PostalCode");
-
- b.Property<string>("Provice");
-
- b.Property<string>("SteetNumber");
-
- b.Property<string>("StreetName");
-
- b.Property<string>("Suburb");
-
- b.Property<string>("UnitNumber");
-
- b.Property<int>("UserId");
-
- b.HasKey("Id");
-
- b.HasIndex("UserId");
-
- b.ToTable("UserAddresses");
- });
-
- modelBuilder.Entity("ProRestaurant.Models.Accounts.DriverDetail", b =>
- {
- b.HasOne("ProRestaurant.Models.Accounts.User", "User")
- .WithOne("DriverDetails")
- .HasForeignKey("ProRestaurant.Models.Accounts.DriverDetail", "UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("ProRestaurant.Models.Accounts.UserAddress", b =>
- {
- b.HasOne("ProRestaurant.Models.Accounts.User", "User")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
- #pragma warning restore 612, 618
- }
- }
- }
|