2024-08-12 00:15:16 -05:00
|
|
|
|
using LANCommander.SDK.Enums;
|
2023-03-27 01:19:21 -05:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
2024-08-04 18:44:33 -05:00
|
|
|
|
namespace LANCommander.Server.Data.Models
|
2023-03-27 01:19:21 -05:00
|
|
|
|
{
|
|
|
|
|
|
[Table("SavePaths")]
|
|
|
|
|
|
public class SavePath : BaseModel
|
|
|
|
|
|
{
|
|
|
|
|
|
public SavePathType Type { get; set; }
|
|
|
|
|
|
public string Path { get; set; }
|
2024-02-23 17:05:17 -06:00
|
|
|
|
public string? WorkingDirectory { get; set; }
|
2023-11-08 20:43:18 -06:00
|
|
|
|
public bool IsRegex { get; set; }
|
2023-03-27 01:19:21 -05:00
|
|
|
|
|
|
|
|
|
|
public Guid? GameId { get; set; }
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
|
[ForeignKey(nameof(GameId))]
|
|
|
|
|
|
[InverseProperty("SavePaths")]
|
2024-11-27 01:51:47 -06:00
|
|
|
|
public Game? Game { get; set; }
|
2023-03-27 01:19:21 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|