diff options
Diffstat (limited to 'src/server/Migrations/MainDbContextModelSnapshot.cs')
| -rw-r--r-- | src/server/Migrations/MainDbContextModelSnapshot.cs | 71 |
1 files changed, 36 insertions, 35 deletions
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 @@ // <auto-generated /> 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<Guid>("Id") .ValueGeneratedOnAdd() - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property<DateTime>("Created") - .HasColumnType("TEXT"); + .HasColumnType("datetime(6)"); b.Property<Guid?>("CreatedBy") - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property<bool>("Hidden") - .HasColumnType("INTEGER"); + .HasColumnType("tinyint(1)"); b.Property<string>("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<Guid>("Id") .ValueGeneratedOnAdd() - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property<DateTime>("Created") - .HasColumnType("TEXT"); + .HasColumnType("datetime(6)"); b.Property<Guid?>("CreatedBy") - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property<bool>("Hidden") - .HasColumnType("INTEGER"); + .HasColumnType("tinyint(1)"); b.Property<string>("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<Guid>("Id") .ValueGeneratedOnAdd() - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property<double>("Amount") - .HasColumnType("REAL"); + .HasColumnType("double"); b.Property<Guid>("CategoryId") - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property<DateTime>("Created") - .HasColumnType("TEXT"); + .HasColumnType("datetime(6)"); b.Property<Guid?>("CreatedBy") - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property<DateTime>("Date") - .HasColumnType("TEXT"); + .HasColumnType("datetime(6)"); b.Property<bool>("Hidden") - .HasColumnType("INTEGER"); + .HasColumnType("tinyint(1)"); b.Property<string>("Note") - .HasColumnType("TEXT"); + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<Guid>("PayeeId") - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property<string>("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<Guid>("Id") .ValueGeneratedOnAdd() - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property<DateTime>("Created") - .HasColumnType("TEXT"); + .HasColumnType("datetime(6)"); b.Property<Guid?>("CreatedBy") - .HasColumnType("TEXT"); + .HasColumnType("char(36)"); b.Property<bool>("Hidden") - .HasColumnType("INTEGER"); + .HasColumnType("tinyint(1)"); b.Property<string>("Password") - .HasColumnType("TEXT"); + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<string>("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" }); }); |
