feat(backend): initial data export support
obviously it's missing things that haven't been added yet
This commit is contained in:
parent
f0ae648492
commit
903be2709c
15 changed files with 502 additions and 24 deletions
14
Foxnouns.Backend/Database/Models/DataExport.cs
Normal file
14
Foxnouns.Backend/Database/Models/DataExport.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using NodaTime;
|
||||
|
||||
namespace Foxnouns.Backend.Database.Models;
|
||||
|
||||
public class DataExport : BaseModel
|
||||
{
|
||||
public Snowflake UserId { get; init; }
|
||||
public User User { get; init; } = null!;
|
||||
public required string Filename { get; init; }
|
||||
|
||||
[NotMapped]
|
||||
public static readonly Duration Expiration = Duration.FromDays(15);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue