diff options
| author | ivar <i@oiee.no> | 2025-10-19 23:41:23 +0200 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2025-10-19 23:41:23 +0200 |
| commit | 3f4c0720e1e3421431e7baa20882a4a4512a7fab (patch) | |
| tree | 734ca81d7d0841d8863e3f523ebba14c282dc681 /src/Migrations/AppDbContextModelSnapshot.cs | |
| download | fagprove-3f4c0720e1e3421431e7baa20882a4a4512a7fab.tar.xz fagprove-3f4c0720e1e3421431e7baa20882a4a4512a7fab.zip | |
Diffstat (limited to 'src/Migrations/AppDbContextModelSnapshot.cs')
| -rw-r--r-- | src/Migrations/AppDbContextModelSnapshot.cs | 156 |
1 files changed, 156 insertions, 0 deletions
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 @@ +// <auto-generated /> +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<Guid>("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property<int?>("Capacity") + .HasColumnType("int"); + + b.Property<Guid>("CategoryId") + .HasColumnType("char(36)"); + + b.Property<Guid?>("CreatedBy") + .HasColumnType("char(36)"); + + b.Property<DateTime?>("CreatedUtc") + .HasColumnType("datetime(6)"); + + b.Property<string>("Description") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property<Guid?>("ModifiedBy") + .HasColumnType("char(36)"); + + b.Property<DateTime?>("ModifiedUtc") + .HasColumnType("datetime(6)"); + + b.Property<string>("Name") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property<string>("Price") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.HasKey("Id"); + + b.ToTable("Cabins"); + }); + + modelBuilder.Entity("IOL.Fagprove.Data.Models.Reservations", b => + { + b.Property<Guid>("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property<Guid?>("CreatedBy") + .HasColumnType("char(36)"); + + b.Property<DateTime?>("CreatedUtc") + .HasColumnType("datetime(6)"); + + b.Property<string>("Extra") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property<DateTime>("From") + .HasColumnType("datetime(6)"); + + b.Property<Guid?>("ModifiedBy") + .HasColumnType("char(36)"); + + b.Property<DateTime?>("ModifiedUtc") + .HasColumnType("datetime(6)"); + + b.Property<Guid>("ReservationObjectId") + .HasColumnType("char(36)"); + + b.Property<int>("Status") + .HasColumnType("int"); + + b.Property<DateTime>("To") + .HasColumnType("datetime(6)"); + + b.Property<Guid>("UserId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Reservations"); + }); + + modelBuilder.Entity("IOL.Fagprove.Data.Models.Users", b => + { + b.Property<Guid>("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property<Guid?>("CreatedBy") + .HasColumnType("char(36)"); + + b.Property<DateTime?>("CreatedUtc") + .HasColumnType("datetime(6)"); + + b.Property<string>("Email") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property<Guid?>("ModifiedBy") + .HasColumnType("char(36)"); + + b.Property<DateTime?>("ModifiedUtc") + .HasColumnType("datetime(6)"); + + b.Property<string>("Name") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property<string>("Password") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property<int>("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 + } + } +} |
