feat: rate limit emails to two per address per hour
This commit is contained in:
parent
5cb3faa92b
commit
ff8d53814d
6 changed files with 189 additions and 49 deletions
13
Foxnouns.Backend/Database/Models/SentEmail.cs
Normal file
13
Foxnouns.Backend/Database/Models/SentEmail.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using NodaTime;
|
||||
|
||||
namespace Foxnouns.Backend.Database.Models;
|
||||
|
||||
public class SentEmail
|
||||
{
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; init; }
|
||||
|
||||
public required string Email { get; init; }
|
||||
public required Instant SentAt { get; init; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue