Files
jobtrackingapp/JobTrackerApi/Models/RuleSettings.cs
cesnimda e9fa42eccf
CI and Deploy / test (pull_request) Failing after 4m31s
CI and Deploy / deploy (pull_request) Has been skipped
Allow users to pause automatic Ghosted updates
2026-12-04 18:27:24 +01:00

30 lines
990 B
C#

using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace JobTrackerApi.Models
{
// Single-row table to store workflow automation thresholds.
public class RuleSettings
{
public int Id { get; set; } = 1;
// The API accepts this only as a per-user override. Older clients can omit it.
[NotMapped]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? AutomaticGhostingPaused { get; set; }
// Applied / no response yet
public int AppliedFollowUpDays { get; set; } = 14;
public int AppliedGhostDays { get; set; } = 30;
// Offer / accepted waiting on next step
public int OfferFollowUpDays { get; set; } = 7;
public int OfferGhostDays { get; set; } = 14;
// Rejected but you requested feedback
public int FeedbackFollowUpDays { get; set; } = 7;
public int FeedbackGhostDays { get; set; } = 14;
}
}