Files
morbalint c7c6c626e1 fix nullable warnings (#49)
* fix nullable warnings

* use collection initalizers
2026-04-05 12:48:25 +02:00

28 lines
766 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Kemkas.Web.Db.Enums;
namespace Kemkas.Web.Db.Models;
public class V1Szintlepes
{
[Key]
public Guid Id { get; set; }
public Guid KarakterId { get; set; }
public byte KarakterSzint { get; set; }
// for multiclass characters
// public Osztaly Osztaly { get; set; }
//
// public byte OsztalySzint { get; set; }
public byte HpRoll { get; set; }
public Tulajdonsag? TulajdonsagNoveles { get; set; }
// used for both Kaloz/Tengeresz and Harcos
public string? FegyverSpecializacio { get; set; }
[ForeignKey(nameof(KarakterId))]
public virtual V1Karakter Karakter { get; set; } = null!;
}