// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using example_app.Database.Connector; #nullable disable namespace example_csharp_app.Migrations { [DbContext(typeof(AppDbContext))] partial class AppDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "10.0.12") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("example_csharp_app.Dto.BookDto", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Author") .IsRequired() .HasColumnType("text"); b.Property("BookIndex") .IsRequired() .HasColumnType("xml"); b.Property("Title") .IsRequired() .HasColumnType("text"); b.Property("YearPublished") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("Books", (string)null); }); #pragma warning restore 612, 618 } } }