From 9966656c0c46a57bb2d383c9bc758930d279928f Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 3 Dec 2024 20:04:10 +0100 Subject: [PATCH] fix(backend): don't need [NotMapped] for these actually --- Foxnouns.Backend/Database/Models/DataExport.cs | 2 -- Foxnouns.Backend/Database/Models/User.cs | 3 --- 2 files changed, 5 deletions(-) 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); }