//
using EmployeeManagementApp.Services;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace EmployeeManagementApp.Migrations
{
[DbContext(typeof(EmployeeContext))]
partial class EmployeeContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.10")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("EmployeeManagementApp.Models.Employee", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property("FirstName")
.IsRequired()
.HasColumnType("longtext");
b.Property("LastName")
.IsRequired()
.HasColumnType("longtext");
b.Property("Position")
.IsRequired()
.HasColumnType("longtext");
b.Property("Salary")
.HasColumnType("decimal(18,2)");
b.Property("VacationDays")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("Employees");
});
#pragma warning restore 612, 618
}
}
}