// using System; using IOL.Fagprove.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace IOL.Fagprove.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20200205233013_Intial")] partial class Intial { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "3.1.1") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("IOL.Fagprove.Data.Models.ReservationObjects", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("Capacity") .HasColumnType("int"); b.Property("CategoryId") .HasColumnType("char(36)"); b.Property("CreatedBy") .HasColumnType("char(36)"); b.Property("CreatedUtc") .HasColumnType("datetime(6)"); b.Property("Description") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("ModifiedBy") .HasColumnType("char(36)"); b.Property("ModifiedUtc") .HasColumnType("datetime(6)"); b.Property("Name") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("Price") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("Id"); b.ToTable("Cabins"); }); modelBuilder.Entity("IOL.Fagprove.Data.Models.Reservations", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("CreatedBy") .HasColumnType("char(36)"); b.Property("CreatedUtc") .HasColumnType("datetime(6)"); b.Property("Extra") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("From") .HasColumnType("datetime(6)"); b.Property("ModifiedBy") .HasColumnType("char(36)"); b.Property("ModifiedUtc") .HasColumnType("datetime(6)"); b.Property("ReservationObjectId") .HasColumnType("char(36)"); b.Property("Status") .HasColumnType("int"); b.Property("To") .HasColumnType("datetime(6)"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("Id"); b.ToTable("Reservations"); }); modelBuilder.Entity("IOL.Fagprove.Data.Models.Users", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("CreatedBy") .HasColumnType("char(36)"); b.Property("CreatedUtc") .HasColumnType("datetime(6)"); b.Property("Email") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("ModifiedBy") .HasColumnType("char(36)"); b.Property("ModifiedUtc") .HasColumnType("datetime(6)"); b.Property("Name") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("Password") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("Role") .HasColumnType("int"); b.HasKey("Id"); b.ToTable("Users"); b.HasData( new { Id = new Guid("d2512ef5-f25e-486d-a94d-1ea43c732195"), CreatedUtc = new DateTime(2020, 2, 5, 23, 30, 13, 316, DateTimeKind.Utc).AddTicks(6060), Email = "ivar@protektit.no", Name = "Ivar Løvlie Administrator", Password = "9F267A5EC952ABC97CC5B768AEF42337", Role = 1 }, new { Id = new Guid("e166655c-cbdc-4128-8e0e-9aeb9c52093d"), CreatedUtc = new DateTime(2020, 2, 5, 23, 30, 13, 320, DateTimeKind.Utc).AddTicks(310), Email = "ivarino@protektit.no", Name = "Ivar Løvlie Standard", Password = "9F267A5EC952ABC97CC5B768AEF42337", Role = 0 }); }); #pragma warning restore 612, 618 } } }