// <auto-generated />
using System;
using Edge.Core.Database;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

namespace Edge.Core.Database.Migrations
{
    [DbContext(typeof(SqliteDbContext))]
    [Migration("20180626102740_InitialCreate")]
    partial class InitialCreate
    {
        protected override void BuildTargetModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder
                .HasAnnotation("ProductVersion", "2.1.0-rtm-30799");

            modelBuilder.Entity("Common.Models.FuelPointReservation", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd();

                    b.Property<int>("FuelPointId");

                    b.Property<int>("ReservedByFdcClientId");

                    b.Property<DateTime>("ReservingTime");

                    b.HasKey("Id");

                    b.ToTable("FuelPointReservationModels");
                });

            modelBuilder.Entity("Common.Models.FuelPriceChange", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd();

                    b.Property<DateTime?>("FinishTime");

                    b.Property<int>("LogicalNozzleId");

                    b.Property<int>("NewPriceWithoutDecimal");

                    b.Property<int>("PumpId");

                    b.Property<DateTime>("StartTime");

                    b.HasKey("Id");

                    b.ToTable("FuelPriceChanges");
                });

            modelBuilder.Entity("Common.Models.FuelSaleTransaction", b =>
                {
                    b.Property<int>("ReleaseToken")
                        .ValueGeneratedOnAdd();

                    b.Property<int>("Amount");

                    b.Property<int>("AmountTotalizer");

                    b.Property<string>("AuthorizedByFdcClientId");

                    b.Property<DateTime?>("AuthorizedTime");

                    b.Property<string>("LockedByFdcClientId");

                    b.Property<DateTime?>("LockedTime");

                    b.Property<int>("LogicalNozzleId");

                    b.Property<string>("PaidByFdcClientId");

                    b.Property<DateTime?>("PaidTime");

                    b.Property<string>("ProductBarcode");

                    b.Property<int>("PumpId");

                    b.Property<DateTime?>("SaleEndTime");

                    b.Property<DateTime?>("SaleStartTime");

                    b.Property<int>("State");

                    b.Property<string>("TransactionSeqNumberFromPhysicalPump");

                    b.Property<int>("UnitPrice");

                    b.Property<int>("VolumeTotalizer");

                    b.Property<int>("Volumn");

                    b.HasKey("ReleaseToken");

                    b.ToTable("PumpTransactionModels");
                });
#pragma warning restore 612, 618
        }
    }
}