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

75 lines
2.4 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))]
2024-01-18 22:32:40 +03:00
[Migration("20240117210635_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
2024-01-18 22:32:40 +03:00
.HasAnnotation("ProductVersion", "8.0.0")
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");
2024-01-18 22:32:40 +03:00
b.Property<string[]>("DeprecatedSkus")
2022-12-14 09:53:10 +03:00
.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");
2024-01-18 22:32:40 +03:00
b.HasIndex("Name")
.HasAnnotation("Npgsql:TsVectorConfig", "russian");
NpgsqlIndexBuilderExtensions.HasMethod(b.HasIndex("Name"), "GIN");
2022-12-14 09:53:10 +03:00
b.ToTable("Products");
});
#pragma warning restore 612, 618
}
}
}