From c7d72be2d1eed9b7fbfe719752ff800653d8c089 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sun, 2 Aug 2020 00:04:06 +0200 Subject: change db, set cookie --- .../Migrations/MainDbContextModelSnapshot.cs | 71 +++++++++++----------- 1 file changed, 36 insertions(+), 35 deletions(-) (limited to 'src/server/Migrations/MainDbContextModelSnapshot.cs') diff --git a/src/server/Migrations/MainDbContextModelSnapshot.cs b/src/server/Migrations/MainDbContextModelSnapshot.cs index ad883c5..d4c6e7e 100644 --- a/src/server/Migrations/MainDbContextModelSnapshot.cs +++ b/src/server/Migrations/MainDbContextModelSnapshot.cs @@ -1,9 +1,9 @@ // using System; +using Dough.Models.Database; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Dough.Models.Database; namespace Dough.Migrations { @@ -14,112 +14,113 @@ namespace Dough.Migrations { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("ProductVersion", "3.1.6"); + .HasAnnotation("ProductVersion", "3.1.6") + .HasAnnotation("Relational:MaxIdentifierLength", 64); - modelBuilder.Entity("MoneyManager.Models.Database.Category", b => + modelBuilder.Entity("Dough.Models.Database.Category", b => { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property("Created") - .HasColumnType("TEXT"); + .HasColumnType("datetime(6)"); b.Property("CreatedBy") - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property("Hidden") - .HasColumnType("INTEGER"); + .HasColumnType("tinyint(1)"); b.Property("Name") - .HasColumnType("TEXT"); + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("Id"); b.ToTable("Categories"); }); - modelBuilder.Entity("MoneyManager.Models.Database.Payee", b => + modelBuilder.Entity("Dough.Models.Database.Payee", b => { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property("Created") - .HasColumnType("TEXT"); + .HasColumnType("datetime(6)"); b.Property("CreatedBy") - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property("Hidden") - .HasColumnType("INTEGER"); + .HasColumnType("tinyint(1)"); b.Property("Name") - .HasColumnType("TEXT"); + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("Id"); b.ToTable("Payees"); }); - modelBuilder.Entity("MoneyManager.Models.Database.Transaction", b => + modelBuilder.Entity("Dough.Models.Database.Transaction", b => { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property("Amount") - .HasColumnType("REAL"); + .HasColumnType("double"); b.Property("CategoryId") - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property("Created") - .HasColumnType("TEXT"); + .HasColumnType("datetime(6)"); b.Property("CreatedBy") - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property("Date") - .HasColumnType("TEXT"); + .HasColumnType("datetime(6)"); b.Property("Hidden") - .HasColumnType("INTEGER"); + .HasColumnType("tinyint(1)"); b.Property("Note") - .HasColumnType("TEXT"); + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("PayeeId") - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property("Tags") - .HasColumnType("TEXT"); + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("Id"); b.ToTable("Transactions"); }); - modelBuilder.Entity("MoneyManager.Models.Database.User", b => + modelBuilder.Entity("Dough.Models.Database.User", b => { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property("Created") - .HasColumnType("TEXT"); + .HasColumnType("datetime(6)"); b.Property("CreatedBy") - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property("Hidden") - .HasColumnType("INTEGER"); + .HasColumnType("tinyint(1)"); b.Property("Password") - .HasColumnType("TEXT"); + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("Username") - .HasColumnType("TEXT"); + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("Id"); @@ -128,10 +129,10 @@ namespace Dough.Migrations b.HasData( new { - Id = new Guid("193053d0-4292-4dc5-baae-59a920b64891"), - Created = new DateTime(2020, 7, 29, 9, 5, 57, 914, DateTimeKind.Utc).AddTicks(3427), + Id = new Guid("4fb39ecf-9619-42be-8852-81c48a9a9f72"), + Created = new DateTime(2020, 8, 1, 20, 53, 56, 576, DateTimeKind.Utc).AddTicks(931), Hidden = false, - Password = "$2b$10$RFdcYLeqporq94pUIOoJGOPnhUbpV7R4e.2Iz8ot02N2PqeCpDCA6", + Password = "$2b$10$v7e7AJc0atQvyvvwkvXAnuin0m75qRZSxcSAHdDiKcSHuByJpc0zy", Username = "ivar" }); }); -- cgit v1.3