67 lines
2.2 KiB
C#
67 lines
2.2 KiB
C#
// <auto-generated />
|
|
using ConsoleApp.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace ConsoleApp.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")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("ConsoleApp.Data.MenuDish", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("text")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<string>("Article")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("article");
|
|
|
|
b.Property<string>("Barcodes")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("barcodes");
|
|
|
|
b.Property<string>("FullPath")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("full_path");
|
|
|
|
b.Property<bool>("IsWeighted")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_weighted");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("name");
|
|
|
|
b.Property<decimal>("Price")
|
|
.HasColumnType("numeric")
|
|
.HasColumnName("price");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_dishes");
|
|
|
|
b.ToTable("dishes", (string)null);
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|