diff --git a/Foxnouns.Backend/Database/Models/DataExport.cs b/Foxnouns.Backend/Database/Models/DataExport.cs index 6e5a719..582ffd8 100644 --- a/Foxnouns.Backend/Database/Models/DataExport.cs +++ b/Foxnouns.Backend/Database/Models/DataExport.cs @@ -1,4 +1,3 @@ -using System.ComponentModel.DataAnnotations.Schema; using NodaTime; namespace Foxnouns.Backend.Database.Models; @@ -9,6 +8,5 @@ public class DataExport : BaseModel public User User { get; init; } = null!; public required string Filename { get; init; } - [NotMapped] public static readonly Duration Expiration = Duration.FromDays(15); } diff --git a/Foxnouns.Backend/Database/Models/User.cs b/Foxnouns.Backend/Database/Models/User.cs index 7eda12d..f75acde 100644 --- a/Foxnouns.Backend/Database/Models/User.cs +++ b/Foxnouns.Backend/Database/Models/User.cs @@ -55,10 +55,7 @@ public class User : BaseModel public PreferenceSize Size { get; set; } } - [NotMapped] public static readonly Duration DeleteAfter = Duration.FromDays(30); - - [NotMapped] public static readonly Duration DeleteSuspendedAfter = Duration.FromDays(180); }