fix(backend): don't need [NotMapped] for these actually
This commit is contained in:
parent
c20831f20d
commit
9966656c0c
2 changed files with 0 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue