21 lines
587 B
C#
21 lines
587 B
C#
using LANCommander.Data.Enums;
|
|
using LANCommander.SDK.Enums;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace LANCommander.Data.Models
|
|
{
|
|
[Table("SavePaths")]
|
|
public class SavePath : BaseModel
|
|
{
|
|
public SavePathType Type { get; set; }
|
|
public string Path { get; set; }
|
|
public bool IsRegex { get; set; }
|
|
|
|
public Guid? GameId { get; set; }
|
|
[JsonIgnore]
|
|
[ForeignKey(nameof(GameId))]
|
|
[InverseProperty("SavePaths")]
|
|
public virtual Game? Game { get; set; }
|
|
}
|
|
}
|