Wartestatus für Tickets;

This commit is contained in:
2026-05-27 11:12:19 +02:00
parent 8f4b17bee2
commit 10c5368c64
7 changed files with 211 additions and 9 deletions
+97
View File
@@ -0,0 +1,97 @@
// <auto-generated />
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
{
/// <inheritdoc />
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<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.PrimitiveCollection<string>("AttachmentNames")
.IsRequired()
.HasColumnType("TEXT");
b.Property<DateTime>("CreatedAt")
.HasColumnType("TEXT");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("TEXT");
b.Property<bool>("IsCompleted")
.HasColumnType("INTEGER");
b.Property<bool>("IsWaitingForFeedback")
.HasColumnType("INTEGER");
b.Property<int>("Priority")
.HasColumnType("INTEGER");
b.Property<string>("Title")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Tickets");
});
modelBuilder.Entity("TodoTicketApp.Models.TicketComment", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property<DateTime>("CreatedAt")
.HasColumnType("TEXT");
b.Property<string>("Text")
.IsRequired()
.HasColumnType("TEXT");
b.Property<Guid>("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
}
}
}
@@ -0,0 +1,29 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TodoTicketApp.Migrations
{
/// <inheritdoc />
public partial class AddWaitingStatus : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsWaitingForFeedback",
table: "Tickets",
type: "INTEGER",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsWaitingForFeedback",
table: "Tickets");
}
}
}
+3
View File
@@ -37,6 +37,9 @@ namespace TodoTicketApp.Migrations
b.Property<bool>("IsCompleted")
.HasColumnType("INTEGER");
b.Property<bool>("IsWaitingForFeedback")
.HasColumnType("INTEGER");
b.Property<int>("Priority")
.HasColumnType("INTEGER");