76 lines
2.4 KiB
C#

// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using UchetLabDatabaseImplement;
#nullable disable
namespace UchetLabDatabaseImplement.Migrations
{
[DbContext(typeof(UchetLabDataBase))]
[Migration("20241006183154_InitialCreate")]
partial class InitialCreate
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "7.0.16")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("UchetLabDatabaseImplement.Models.Checker", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("FIO")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("Checker");
});
modelBuilder.Entity("UchetLabDatabaseImplement.Models.Lab", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<DateTime>("CheckDate")
.HasColumnType("datetime2");
b.Property<string>("Checker")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("LabTask")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("TaskImage")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("Labs");
});
#pragma warning restore 612, 618
}
}
}