2020-09-15 12:31:52 +00:00
|
|
|
|
// <auto-generated />
|
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
using Snootalogue.Data;
|
|
|
|
|
|
|
|
|
|
namespace snootalogue.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(SnootalogueContext))]
|
2020-09-20 03:43:08 +00:00
|
|
|
|
[Migration("20200920033715_InitialCreate")]
|
2020-09-15 12:31:52 +00:00
|
|
|
|
partial class InitialCreate
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder
|
|
|
|
|
.HasAnnotation("ProductVersion", "3.1.0");
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Snootalogue.Models.Document", b =>
|
|
|
|
|
{
|
2020-09-20 03:43:08 +00:00
|
|
|
|
b.Property<string>("ID")
|
|
|
|
|
.HasColumnType("TEXT");
|
2020-09-15 12:31:52 +00:00
|
|
|
|
|
|
|
|
|
b.Property<string>("Authors")
|
2020-09-17 13:37:11 +00:00
|
|
|
|
.HasColumnType("jsonb");
|
2020-09-15 12:31:52 +00:00
|
|
|
|
|
|
|
|
|
b.Property<string>("Category")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateAdded")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Filename")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Hash")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
2020-09-17 13:37:11 +00:00
|
|
|
|
b.Property<string>("Notes")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
2020-09-15 12:31:52 +00:00
|
|
|
|
b.Property<bool>("Read")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<long>("Size")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Tags")
|
2020-09-17 13:37:11 +00:00
|
|
|
|
.HasColumnType("jsonb");
|
2020-09-15 12:31:52 +00:00
|
|
|
|
|
|
|
|
|
b.Property<string>("Title")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Document");
|
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|