aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/Migrations/20200801205356_INITIAL_MIGRATION.Designer.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2020-08-02 00:04:06 +0200
committerivarlovlie <git@ivarlovlie.no>2020-08-02 00:04:06 +0200
commitc7d72be2d1eed9b7fbfe719752ff800653d8c089 (patch)
tree6c92e3e434bb49efc84a84c3c170a560728df93e /src/server/Migrations/20200801205356_INITIAL_MIGRATION.Designer.cs
parentf055808ca22d3df5e5984a1e27ef6aa49bcc5b9b (diff)
downloaddough-c7d72be2d1eed9b7fbfe719752ff800653d8c089.tar.xz
dough-c7d72be2d1eed9b7fbfe719752ff800653d8c089.zip
change db, set cookie
Diffstat (limited to 'src/server/Migrations/20200801205356_INITIAL_MIGRATION.Designer.cs')
-rw-r--r--src/server/Migrations/20200801205356_INITIAL_MIGRATION.Designer.cs144
1 files changed, 144 insertions, 0 deletions
diff --git a/src/server/Migrations/20200801205356_INITIAL_MIGRATION.Designer.cs b/src/server/Migrations/20200801205356_INITIAL_MIGRATION.Designer.cs
new file mode 100644
index 0000000..b693783
--- /dev/null
+++ b/src/server/Migrations/20200801205356_INITIAL_MIGRATION.Designer.cs
@@ -0,0 +1,144 @@
+// <auto-generated />
+using System;
+using Dough.Models.Database;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+namespace Dough.Migrations
+{
+ [DbContext(typeof(MainDbContext))]
+ [Migration("20200801205356_INITIAL_MIGRATION")]
+ partial class INITIAL_MIGRATION
+ {
+ protected override void BuildTargetModel(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<Guid>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property<DateTime>("Created")
+ .HasColumnType("datetime(6)");
+
+ b.Property<Guid?>("CreatedBy")
+ .HasColumnType("char(36)");
+
+ b.Property<bool>("Hidden")
+ .HasColumnType("tinyint(1)");
+
+ b.Property<string>("Name")
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
+
+ b.HasKey("Id");
+
+ b.ToTable("Categories");
+ });
+
+ modelBuilder.Entity("Dough.Models.Database.Payee", b =>
+ {
+ b.Property<Guid>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property<DateTime>("Created")
+ .HasColumnType("datetime(6)");
+
+ b.Property<Guid?>("CreatedBy")
+ .HasColumnType("char(36)");
+
+ b.Property<bool>("Hidden")
+ .HasColumnType("tinyint(1)");
+
+ b.Property<string>("Name")
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
+
+ b.HasKey("Id");
+
+ b.ToTable("Payees");
+ });
+
+ modelBuilder.Entity("Dough.Models.Database.Transaction", b =>
+ {
+ b.Property<Guid>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property<double>("Amount")
+ .HasColumnType("double");
+
+ b.Property<Guid>("CategoryId")
+ .HasColumnType("char(36)");
+
+ b.Property<DateTime>("Created")
+ .HasColumnType("datetime(6)");
+
+ b.Property<Guid?>("CreatedBy")
+ .HasColumnType("char(36)");
+
+ b.Property<DateTime>("Date")
+ .HasColumnType("datetime(6)");
+
+ b.Property<bool>("Hidden")
+ .HasColumnType("tinyint(1)");
+
+ b.Property<string>("Note")
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
+
+ b.Property<Guid>("PayeeId")
+ .HasColumnType("char(36)");
+
+ b.Property<string>("Tags")
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
+
+ b.HasKey("Id");
+
+ b.ToTable("Transactions");
+ });
+
+ modelBuilder.Entity("Dough.Models.Database.User", b =>
+ {
+ b.Property<Guid>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property<DateTime>("Created")
+ .HasColumnType("datetime(6)");
+
+ b.Property<Guid?>("CreatedBy")
+ .HasColumnType("char(36)");
+
+ b.Property<bool>("Hidden")
+ .HasColumnType("tinyint(1)");
+
+ b.Property<string>("Password")
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
+
+ b.Property<string>("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
+ }
+ }
+}