/
kochkatech
/
Queue
Обзор
Документация
Войти
/
kochkatech
/
Queue
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
dev
src/Queue.Data/Migrations/20260727144026_InitialCreate.Designer.cs
277 строк
9 KB
kochkareal
fix: пересоздать InitialCreate штатным dotnet ef (отсутствовал Designer.cs)
27 июл 2026, 17:41
27 июл 2026, 17:41
48fcaec
Код
Авторство
О чём код?
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Queue.Data; #nullable disable namespace Queue.Data.Migrations { [DbContext(typeof(QueueDbContext))] [Migration("20260727144026_InitialCreate")] partial class InitialCreate { /// <inheritdoc /> protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "10.0.0"); modelBuilder.Entity("Queue.Core.Models.Employee", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<int?>("CurrentWindowId") .HasColumnType("INTEGER"); b.Property<string>("FullName") .IsRequired() .HasColumnType("TEXT"); b.Property<bool>("IsActive") .HasColumnType("INTEGER"); b.Property<string>("Login") .IsRequired() .HasColumnType("TEXT"); b.Property<string>("PasswordHash") .IsRequired() .HasColumnType("TEXT"); b.Property<int>("Role") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("Login") .IsUnique(); b.ToTable("Employees"); }); modelBuilder.Entity("Queue.Core.Models.IntegrationLogEntry", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<string>("Message") .IsRequired() .HasColumnType("TEXT"); b.Property<bool>("Success") .HasColumnType("INTEGER"); b.Property<DateTime>("Timestamp") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("IntegrationLogEntries"); }); modelBuilder.Entity("Queue.Core.Models.IntegrationSetting", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<int>("Channel") .HasColumnType("INTEGER"); b.Property<string>("EncryptedCredentials") .HasColumnType("TEXT"); b.Property<string>("Endpoint") .IsRequired() .HasColumnType("TEXT"); b.Property<string>("Login") .HasColumnType("TEXT"); b.Property<string>("SyncScheduleCron") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("IntegrationSettings"); }); modelBuilder.Entity("Queue.Core.Models.Organization", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<string>("FocusColorHex") .HasColumnType("TEXT"); b.Property<string>("LicenseKey") .HasColumnType("TEXT"); b.Property<string>("LogoPath") .HasColumnType("TEXT"); b.Property<string>("MainColorHex") .HasColumnType("TEXT"); b.Property<string>("Name") .IsRequired() .HasColumnType("TEXT"); b.Property<string>("TimeZone") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Organizations"); }); modelBuilder.Entity("Queue.Core.Models.Service", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<int>("AverageDurationMinutes") .HasColumnType("INTEGER"); b.Property<string>("Code") .IsRequired() .HasColumnType("TEXT"); b.Property<bool>("IsActive") .HasColumnType("INTEGER"); b.Property<string>("Name") .IsRequired() .HasColumnType("TEXT"); b.Property<int>("SortOrder") .HasColumnType("INTEGER"); b.HasKey("Id"); b.ToTable("Services"); }); modelBuilder.Entity("Queue.Core.Models.ServiceWindow", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<bool>("IsActive") .HasColumnType("INTEGER"); b.Property<string>("Name") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Windows"); }); modelBuilder.Entity("Queue.Core.Models.Ticket", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<DateTime?>("CalledAt") .HasColumnType("TEXT"); b.Property<DateTime>("CreatedAt") .HasColumnType("TEXT"); b.Property<int?>("EmployeeId") .HasColumnType("INTEGER"); b.Property<DateTime?>("FinishedAt") .HasColumnType("TEXT"); b.Property<string>("Number") .IsRequired() .HasColumnType("TEXT"); b.Property<int>("ServiceId") .HasColumnType("INTEGER"); b.Property<DateTime?>("StartedAt") .HasColumnType("TEXT"); b.Property<int>("Status") .HasColumnType("INTEGER"); b.Property<int?>("WindowId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.ToTable("Tickets"); }); modelBuilder.Entity("Queue.Core.Models.WorkSchedule", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<TimeOnly>("CloseTime") .HasColumnType("TEXT"); b.Property<int>("DayOfWeek") .HasColumnType("INTEGER"); b.Property<bool>("IsClosed") .HasColumnType("INTEGER"); b.Property<TimeOnly>("OpenTime") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("WorkSchedules"); }); modelBuilder.Entity("ServiceWindowAssignments", b => { b.Property<int>("ServiceId") .HasColumnType("INTEGER"); b.Property<int>("WindowId") .HasColumnType("INTEGER"); b.HasKey("ServiceId", "WindowId"); b.HasIndex("WindowId"); b.ToTable("ServiceWindowAssignments"); }); modelBuilder.Entity("ServiceWindowAssignments", b => { b.HasOne("Queue.Core.Models.Service", null) .WithMany() .HasForeignKey("ServiceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Queue.Core.Models.ServiceWindow", null) .WithMany() .HasForeignKey("WindowId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); #pragma warning restore 612, 618 } } }