// using System; using AuthorBuddy.Web.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace AuthorBuddy.Web.Migrations { [DbContext(typeof(AppDbContext))] partial class AppDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "10.0.8"); modelBuilder.Entity("AuthorBuddy.Web.Data.DocumentMetaEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("FilePath") .IsRequired() .HasColumnType("TEXT") .HasColumnName("file_path"); b.Property("FileType") .HasColumnType("TEXT") .HasColumnName("file_type"); b.Property("Hash") .HasColumnType("TEXT"); b.Property("LastModified") .HasColumnType("TEXT") .HasColumnName("last_modified"); b.Property("ProjectId") .HasColumnType("INTEGER") .HasColumnName("project_id"); b.HasKey("Id"); b.ToTable("DocumentMeta", (string)null); }); modelBuilder.Entity("AuthorBuddy.Web.Data.ProjectEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("LastOpened") .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); b.Property("RootPath") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Projects", (string)null); }); modelBuilder.Entity("AuthorBuddy.Web.Data.SettingEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Key") .IsRequired() .HasColumnType("TEXT") .HasColumnName("key"); b.Property("ProjectId") .HasColumnType("INTEGER") .HasColumnName("project_id"); b.Property("UserId") .HasColumnType("INTEGER") .HasColumnName("user_id"); b.Property("Value") .IsRequired() .HasColumnType("TEXT") .HasColumnName("value"); b.HasKey("Id"); b.ToTable("Settings", (string)null); }); modelBuilder.Entity("AuthorBuddy.Web.Data.UserEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("IsCurrent") .HasColumnType("INTEGER") .HasColumnName("is_current"); b.Property("Name") .IsRequired() .HasColumnType("TEXT") .HasColumnName("name"); b.HasKey("Id"); b.ToTable("Users", (string)null); }); #pragma warning restore 612, 618 } } }