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/20200205233013_Intial.Designer.cs | |
| download | fagprove-master.tar.xz fagprove-master.zip | |
Diffstat (limited to 'src/Migrations/20200205233013_Intial.Designer.cs')
| -rw-r--r-- | src/Migrations/20200205233013_Intial.Designer.cs | 158 |
1 files changed, 158 insertions, 0 deletions
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 @@ +// <auto-generated /> +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<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("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 + } + } +} |
