0
0
RhSolutions-Api/RhSolutions.Api/Migrations/20230511043408_Init.Designer.cs

70 lines
2.2 KiB
C#
Raw Permalink Normal View History

2022-12-14 09:53:10 +03:00
// <auto-generated />
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
2023-05-11 07:55:26 +03:00
using RhSolutions.Models;
2022-12-14 09:53:10 +03:00
#nullable disable
namespace RhSolutions.Api.Migrations
{
[DbContext(typeof(RhSolutionsContext))]
2023-05-11 07:55:26 +03:00
[Migration("20230511043408_Init")]
2022-12-14 09:53:10 +03:00
partial class Init
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
2023-05-11 07:55:26 +03:00
.HasAnnotation("ProductVersion", "7.0.5")
2022-12-14 09:53:10 +03:00
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
2023-05-11 07:55:26 +03:00
modelBuilder.Entity("RhSolutions.Models.Product", b =>
2022-12-14 09:53:10 +03:00
{
2023-05-11 07:55:26 +03:00
b.Property<string>("Id")
.HasColumnType("text");
2022-12-14 09:53:10 +03:00
b.Property<double?>("DeliveryMakeUp")
.HasColumnType("double precision");
b.Property<List<string>>("DeprecatedSkus")
.IsRequired()
.HasColumnType("text[]");
2023-05-11 07:55:26 +03:00
b.Property<bool>("IsOnWarehouse")
2022-12-14 09:53:10 +03:00
.HasColumnType("boolean");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text");
b.Property<decimal>("Price")
2023-05-11 07:55:26 +03:00
.HasColumnType("numeric");
2022-12-14 09:53:10 +03:00
2023-05-11 07:55:26 +03:00
b.Property<List<string>>("ProductLines")
.IsRequired()
.HasColumnType("text[]");
2022-12-14 09:53:10 +03:00
b.Property<int>("ProductMeasure")
.HasColumnType("integer");
b.Property<string>("ProductSku")
2023-05-11 07:55:26 +03:00
.IsRequired()
2022-12-14 09:53:10 +03:00
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("Products");
});
#pragma warning restore 612, 618
}
}
}