/
valzem
/
MatControl
Обзор
Документация
Войти
/
valzem
/
MatControl
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/MatControl.Data/Migrations/MatControlDbContextModelSnapshot.cs
241 строка
8 KB
MatControl Dev
Сортировка и поиск в списках, статусы в Движении, импорт с выбором файла, поле Отдел, скиллы
07 авг 2026, 16:45
07 авг 2026, 16:45
4bdbbb6
Код
Авторство
О чём код?
// <auto-generated /> using System; using MatControl.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace MatControl.Data.Migrations { [DbContext(typeof(MatControlDbContext))] partial class MatControlDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "8.0.10"); modelBuilder.Entity("MatControl.Domain.Asset", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<string>("Category") .IsRequired() .HasMaxLength(200) .HasColumnType("TEXT"); b.Property<string>("Characteristics") .IsRequired() .HasColumnType("TEXT"); b.Property<string>("InventoryNumber") .IsRequired() .HasMaxLength(50) .HasColumnType("TEXT"); b.Property<string>("Name") .IsRequired() .HasMaxLength(500) .HasColumnType("TEXT"); b.Property<decimal>("Price") .HasColumnType("decimal(18,2)"); b.Property<string>("State") .IsRequired() .HasMaxLength(50) .HasColumnType("TEXT"); b.Property<int?>("YearInUse") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("InventoryNumber") .IsUnique(); b.ToTable("Assets"); }); modelBuilder.Entity("MatControl.Domain.AssetMovement", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<int?>("AssetId") .HasColumnType("INTEGER"); b.Property<int>("FromEmployeeId") .HasColumnType("INTEGER"); b.Property<bool>("IsActive") .HasColumnType("INTEGER"); b.Property<string>("MovementType") .IsRequired() .HasMaxLength(50) .HasColumnType("TEXT"); b.Property<decimal>("QuantityTransferred") .HasColumnType("decimal(18,2)"); b.Property<DateTime?>("ReturnDate") .HasColumnType("TEXT"); b.Property<int?>("SupplyId") .HasColumnType("INTEGER"); b.Property<int>("ToEmployeeId") .HasColumnType("INTEGER"); b.Property<DateTime>("TransferDate") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("AssetId"); b.HasIndex("FromEmployeeId"); b.HasIndex("SupplyId"); b.HasIndex("ToEmployeeId"); b.ToTable("AssetMovements"); }); modelBuilder.Entity("MatControl.Domain.Employee", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<string>("Department") .IsRequired() .HasMaxLength(300) .HasColumnType("TEXT"); b.Property<string>("FullName") .IsRequired() .HasMaxLength(200) .HasColumnType("TEXT"); b.Property<bool>("IsResponsible") .HasColumnType("INTEGER"); b.Property<string>("Phone") .IsRequired() .HasMaxLength(50) .HasColumnType("TEXT"); b.Property<string>("Position") .IsRequired() .HasMaxLength(300) .HasColumnType("TEXT"); b.Property<string>("Room") .IsRequired() .HasMaxLength(50) .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Employees"); }); modelBuilder.Entity("MatControl.Domain.Supply", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<int?>("AssetId") .HasColumnType("INTEGER"); b.Property<string>("Category") .IsRequired() .HasMaxLength(200) .HasColumnType("TEXT"); b.Property<string>("Name") .IsRequired() .HasMaxLength(500) .HasColumnType("TEXT"); b.Property<decimal>("Price") .HasColumnType("decimal(18,2)"); b.Property<decimal>("Quantity") .HasColumnType("decimal(18,2)"); b.Property<decimal>("TotalSum") .HasColumnType("decimal(18,2)"); b.HasKey("Id"); b.HasIndex("AssetId"); b.ToTable("Supplies"); }); modelBuilder.Entity("MatControl.Domain.AssetMovement", b => { b.HasOne("MatControl.Domain.Asset", "Asset") .WithMany("Movements") .HasForeignKey("AssetId") .OnDelete(DeleteBehavior.SetNull); b.HasOne("MatControl.Domain.Employee", "FromEmployee") .WithMany() .HasForeignKey("FromEmployeeId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("MatControl.Domain.Supply", "Supply") .WithMany("Movements") .HasForeignKey("SupplyId") .OnDelete(DeleteBehavior.SetNull); b.HasOne("MatControl.Domain.Employee", "ToEmployee") .WithMany() .HasForeignKey("ToEmployeeId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Asset"); b.Navigation("FromEmployee"); b.Navigation("Supply"); b.Navigation("ToEmployee"); }); modelBuilder.Entity("MatControl.Domain.Supply", b => { b.HasOne("MatControl.Domain.Asset", "Asset") .WithMany() .HasForeignKey("AssetId") .OnDelete(DeleteBehavior.SetNull); b.Navigation("Asset"); }); modelBuilder.Entity("MatControl.Domain.Asset", b => { b.Navigation("Movements"); }); modelBuilder.Entity("MatControl.Domain.Supply", b => { b.Navigation("Movements"); }); #pragma warning restore 612, 618 } } }