From 3f4c0720e1e3421431e7baa20882a4a4512a7fab Mon Sep 17 00:00:00 2001 From: ivar Date: Sun, 19 Oct 2025 23:41:23 +0200 Subject: Initial --- src/Migrations/AppDbContextModelSnapshot.cs | 156 ++++++++++++++++++++++++++++ 1 file changed, 156 insertions(+) create mode 100644 src/Migrations/AppDbContextModelSnapshot.cs (limited to 'src/Migrations/AppDbContextModelSnapshot.cs') diff --git a/src/Migrations/AppDbContextModelSnapshot.cs b/src/Migrations/AppDbContextModelSnapshot.cs new file mode 100644 index 0000000..cb52104 --- /dev/null +++ b/src/Migrations/AppDbContextModelSnapshot.cs @@ -0,0 +1,156 @@ +// +using System; +using IOL.Fagprove.Data; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace IOL.Fagprove.Migrations +{ + [DbContext(typeof(AppDbContext))] + partial class AppDbContextModelSnapshot : ModelSnapshot + { + protected override void BuildModel(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("d2c3dc54-2fda-413a-abff-f632f88afe34"), + CreatedUtc = new DateTime(2020, 2, 7, 11, 48, 5, 107, DateTimeKind.Utc).AddTicks(9470), + Email = "ivar@protektit.no", + Name = "Ivar Løvlie Administrator", + Password = "9F267A5EC952ABC97CC5B768AEF42337", + Role = 1 + }, + new + { + Id = new Guid("fd0f2341-00fa-4906-8a1a-ba110df9f9a4"), + CreatedUtc = new DateTime(2020, 2, 7, 11, 48, 5, 114, DateTimeKind.Utc).AddTicks(1410), + Email = "ivarino@protektit.no", + Name = "Ivar Løvlie Standard", + Password = "9F267A5EC952ABC97CC5B768AEF42337", + Role = 0 + }); + }); +#pragma warning restore 612, 618 + } + } +} -- cgit v1.3