fix(backend): don't need [NotMapped] for these actually

This commit is contained in:
sam 2024-12-03 20:04:10 +01:00
parent c20831f20d
commit 9966656c0c
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
2 changed files with 0 additions and 5 deletions

View file

@ -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);
}

View file

@ -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);
}