sodoff/src/Model/UserMissionData.cs
2025-08-11 16:54:16 +02:00

22 lines
623 B
C#

using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
using Microsoft.EntityFrameworkCore;
namespace sodoff.Model
{
[PrimaryKey(nameof(VikingId), nameof(WorldId), nameof(MissionId))]
public class UserMissionData
{
[JsonIgnore]
public int VikingId { get; set; }
public int WorldId { get; set; }
public int MissionId { get; set; }
public int StepId { get; set; }
public int TaskId { get; set; }
public bool IsCompleted { get; set; } = false;
[JsonIgnore]
public virtual Viking? Viking { get; set; }
}
}