71 lines
2.3 KiB
C#
71 lines
2.3 KiB
C#
|
// <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;
|
|||
|
using RhSolutions.Api.Models;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace RhSolutions.Api.Migrations
|
|||
|
{
|
|||
|
[DbContext(typeof(RhSolutionsContext))]
|
|||
|
[Migration("20221201071323_Init")]
|
|||
|
partial class Init
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|||
|
{
|
|||
|
#pragma warning disable 612, 618
|
|||
|
modelBuilder
|
|||
|
.HasAnnotation("ProductVersion", "7.0.0")
|
|||
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|||
|
|
|||
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|||
|
|
|||
|
modelBuilder.Entity("RhSolutions.Api.Models.Product", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("integer");
|
|||
|
|
|||
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|||
|
|
|||
|
b.Property<double?>("DeliveryMakeUp")
|
|||
|
.HasColumnType("double precision");
|
|||
|
|
|||
|
b.Property<List<string>>("DeprecatedSkus")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("text[]");
|
|||
|
|
|||
|
b.Property<bool?>("IsOnWarehouse")
|
|||
|
.HasColumnType("boolean");
|
|||
|
|
|||
|
b.Property<string>("Name")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("text");
|
|||
|
|
|||
|
b.Property<decimal>("Price")
|
|||
|
.HasColumnType("decimal(8,2)");
|
|||
|
|
|||
|
b.Property<string>("ProductLine")
|
|||
|
.HasColumnType("text");
|
|||
|
|
|||
|
b.Property<int>("ProductMeasure")
|
|||
|
.HasColumnType("integer");
|
|||
|
|
|||
|
b.Property<string>("ProductSku")
|
|||
|
.HasColumnType("text");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("Products");
|
|||
|
});
|
|||
|
#pragma warning restore 612, 618
|
|||
|
}
|
|||
|
}
|
|||
|
}
|