mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-11-27 18:16:53 -08:00
26 lines
598 B
C#
26 lines
598 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace sodoff.Model;
|
|
|
|
[PrimaryKey(nameof(ImageType), nameof(ImageSlot), nameof(VikingId))]
|
|
public class Image {
|
|
[Required]
|
|
public string ImageType { get; set; } = null!;
|
|
|
|
[Required]
|
|
public int ImageSlot { get; set; }
|
|
|
|
[Required]
|
|
[JsonIgnore]
|
|
public int VikingId { get; set; }
|
|
|
|
public string? ImageData { get; set; }
|
|
|
|
public string? TemplateName { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public virtual Viking Viking { get; set; } = null!;
|
|
}
|