73 lines
2.3 KiB
C#
Raw Permalink Normal View History

2024-11-27 23:43:53 +04:00
// <auto-generated />
2024-12-13 00:01:45 +03:00
using System;
2024-11-27 23:43:53 +04:00
using DataBaseImplements;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace DataBaseImplement.Migrations
{
[DbContext(typeof(DataBase))]
partial class DataBaseModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "9.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("DataBaseImplements.Models.City", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("Cities");
});
modelBuilder.Entity("DataBaseImplements.Models.Order", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("FIO")
.IsRequired()
.HasColumnType("text");
2024-12-13 00:01:45 +03:00
b.Property<DateOnly>("OrderDeliveryTime")
.HasColumnType("date");
2024-11-27 23:43:53 +04:00
b.Property<string>("OrderDestination")
.IsRequired()
.HasColumnType("text");
b.PrimitiveCollection<string[]>("OrderPath")
.IsRequired()
.HasColumnType("text[]");
b.HasKey("Id");
b.ToTable("Orders");
});
#pragma warning restore 612, 618
}
}
}