From 3f4c0720e1e3421431e7baa20882a4a4512a7fab Mon Sep 17 00:00:00 2001 From: ivar Date: Sun, 19 Oct 2025 23:41:23 +0200 Subject: Initial --- src/Migrations/20200205233013_Intial.Designer.cs | 158 +++++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 src/Migrations/20200205233013_Intial.Designer.cs (limited to 'src/Migrations/20200205233013_Intial.Designer.cs') diff --git a/src/Migrations/20200205233013_Intial.Designer.cs b/src/Migrations/20200205233013_Intial.Designer.cs new file mode 100644 index 0000000..7c3e3e8 --- /dev/null +++ b/src/Migrations/20200205233013_Intial.Designer.cs @@ -0,0 +1,158 @@ +// +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 + } + } +} -- cgit v1.3