feature: saved exports

initial - not feature complete
This commit is contained in:
Gary Sharp
2025-02-09 17:14:04 +11:00
parent 2fce645066
commit ac24055365
35 changed files with 2244 additions and 156 deletions
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Disco.Models.Services.Exporting
{
public class SavedExport
{
public int Version { get; set; } = 1;
public Guid Id { get; set; }
public DateTime CreatedOn { get; set; }
public string CreatedBy { get; set; }
public string Type { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public SavedExportSchedule Schedule { get; set; }
public bool TimestampSuffix { get; set; }
public string FilePath { get; set; }
public string Config { get; set; }
public List<string> OnDemandPrincipals { get; set; }
public bool Enabled { get; set; }
public DateTime? LastRunOn { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
namespace Disco.Models.Services.Exporting
{
public class SavedExportSchedule
{
public int Version { get; set; } = 1;
public byte WeekDays { get; set; }
public byte StartHour { get; set; }
public byte? EndHour { get; set; }
}
}