53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
|
|
// <auto-generated />
|
|||
|
|
using System;
|
|||
|
|
using Bimix.Infrastructure.Data;
|
|||
|
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace Bimix.Infrastructure.Migrations
|
|||
|
|
{
|
|||
|
|
[DbContext(typeof(BimixDbContext))]
|
|||
|
|
[Migration("20250619185202_InitDatabase")]
|
|||
|
|
partial class InitDatabase
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|||
|
|
{
|
|||
|
|
#pragma warning disable 612, 618
|
|||
|
|
modelBuilder
|
|||
|
|
.HasAnnotation("ProductVersion", "8.0.17")
|
|||
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|||
|
|
|
|||
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Bimix.Domain.Entities.Product", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreatedAt")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(200)
|
|||
|
|
.HasColumnType("nvarchar(200)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("UpdatedAt")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.ToTable("Products");
|
|||
|
|
});
|
|||
|
|
#pragma warning restore 612, 618
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|