//
using System;
using Dough.Models.Database;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Dough.Migrations
{
[DbContext(typeof(MainDbContext))]
partial class MainDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "3.1.6")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("Dough.Models.Database.Category", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("Created")
.HasColumnType("datetime(6)");
b.Property("CreatedBy")
.HasColumnType("char(36)");
b.Property("Hidden")
.HasColumnType("tinyint(1)");
b.Property("Name")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("Categories");
});
modelBuilder.Entity("Dough.Models.Database.Payee", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("Created")
.HasColumnType("datetime(6)");
b.Property("CreatedBy")
.HasColumnType("char(36)");
b.Property("Hidden")
.HasColumnType("tinyint(1)");
b.Property("Name")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("Payees");
});
modelBuilder.Entity("Dough.Models.Database.Transaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("Amount")
.HasColumnType("double");
b.Property("CategoryId")
.HasColumnType("char(36)");
b.Property("Created")
.HasColumnType("datetime(6)");
b.Property("CreatedBy")
.HasColumnType("char(36)");
b.Property("Date")
.HasColumnType("datetime(6)");
b.Property("Hidden")
.HasColumnType("tinyint(1)");
b.Property("Note")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("PayeeId")
.HasColumnType("char(36)");
b.Property("Tags")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("Transactions");
});
modelBuilder.Entity("Dough.Models.Database.User", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("Created")
.HasColumnType("datetime(6)");
b.Property("CreatedBy")
.HasColumnType("char(36)");
b.Property("Hidden")
.HasColumnType("tinyint(1)");
b.Property("Password")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("Username")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("Users");
b.HasData(
new
{
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$v7e7AJc0atQvyvvwkvXAnuin0m75qRZSxcSAHdDiKcSHuByJpc0zy",
Username = "ivar"
});
});
#pragma warning restore 612, 618
}
}
}