37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
using LANCommander.SDK.Enums;
|
|
|
|
namespace LANCommander.Server.Data.Models
|
|
{
|
|
[Table("Actions")]
|
|
public class Action : BaseModel
|
|
{
|
|
public string Name { get; set; }
|
|
public string? Arguments { get; set; }
|
|
public string? Path { get; set; }
|
|
public string? WorkingDirectory { get; set; }
|
|
public bool PrimaryAction { get; set; }
|
|
public int SortOrder { get; set; }
|
|
public string? OptionOverrides { get; set; }
|
|
public RuntimePlatform Platforms { get; set; }
|
|
|
|
public Guid? GameId { get; set; }
|
|
[JsonIgnore]
|
|
[ForeignKey(nameof(GameId))]
|
|
[InverseProperty("Actions")]
|
|
public Game? Game { get; set; }
|
|
|
|
public Guid? ServerId { get; set; }
|
|
[JsonIgnore]
|
|
[ForeignKey(nameof(ServerId))]
|
|
[InverseProperty("Actions")]
|
|
public Server? Server { get; set; }
|
|
|
|
public Guid? ToolId { get; set; }
|
|
[JsonIgnore]
|
|
[ForeignKey(nameof(ToolId))]
|
|
[InverseProperty("Actions")]
|
|
public Tool? Tool { get; set; }
|
|
}
|
|
}
|