//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using TodoTicketApp.Data;
#nullable disable
namespace TodoTicketApp.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20260527090007_AddWaitingStatus")]
partial class AddWaitingStatus
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "10.0.8");
modelBuilder.Entity("TodoTicketApp.Models.Ticket", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.PrimitiveCollection("AttachmentNames")
.IsRequired()
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("Description")
.IsRequired()
.HasColumnType("TEXT");
b.Property("IsCompleted")
.HasColumnType("INTEGER");
b.Property("IsWaitingForFeedback")
.HasColumnType("INTEGER");
b.Property("Priority")
.HasColumnType("INTEGER");
b.Property("Title")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Tickets");
});
modelBuilder.Entity("TodoTicketApp.Models.TicketComment", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("Text")
.IsRequired()
.HasColumnType("TEXT");
b.Property("TicketId")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("TicketId");
b.ToTable("Comments");
});
modelBuilder.Entity("TodoTicketApp.Models.TicketComment", b =>
{
b.HasOne("TodoTicketApp.Models.Ticket", null)
.WithMany("Comments")
.HasForeignKey("TicketId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("TodoTicketApp.Models.Ticket", b =>
{
b.Navigation("Comments");
});
#pragma warning restore 612, 618
}
}
}