2025-08-03 23:21:11 +03:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2025-08-04 17:02:45 +03:00
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2025-08-03 23:21:11 +03:00
|
|
|
|
|
|
|
|
namespace OneSwiss.Server.Models.MaintenanceTasks;
|
|
|
|
|
|
2025-08-04 17:02:45 +03:00
|
|
|
[Owned]
|
|
|
|
|
public class ExecuteOneScriptStep
|
2025-08-03 23:21:11 +03:00
|
|
|
{
|
|
|
|
|
public bool DebugMode { get; set; }
|
2025-09-08 20:24:15 +03:00
|
|
|
|
|
|
|
|
[Required(AllowEmptyStrings = true)] public string ExecutablePath { get; set; } = string.Empty;
|
|
|
|
|
|
2025-08-03 23:21:11 +03:00
|
|
|
public Guid? FileId { get; set; }
|
2025-09-08 20:24:15 +03:00
|
|
|
|
|
|
|
|
[ForeignKey(nameof(FileId))] public File? File { get; set; }
|
2025-08-03 23:21:11 +03:00
|
|
|
}
|