mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-11-27 18:16:53 -08:00
22 lines
623 B
C#
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; }
|
|
}
|
|
}
|