astral-api/Astral.Core/Entities/EmailDomainBlacklist.cs
2024-12-11 20:36:30 +00:00

27 lines
720 B
C#

// <copyright file="EmailDomainBlacklist.cs" company="alveus.dev">
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
// </copyright>
using Astral.Core.Attributes.EntityAnnotation;
namespace Astral.Core.Entities;
/// <summary>
/// Entity representing a blacklisted email address domain.
/// </summary>
[TableMapping("emailDomainBlacklist")]
public class EmailDomainBlacklist
{
/// <summary>
/// The blacklisted domain.
/// </summary>
[PrimaryKey]
[ColumnMapping("domain")]
public string Domain { get; set; }
/// <summary>
/// When the record was created.
/// </summary>
[ColumnMapping("createdAt")]
public DateTime CreatedAt { get; set; }
}