Iceshrimp.NET/Iceshrimp.Backend/Core/Database/Tables/RegistrationInvite.cs

19 lines
No EOL
534 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace Iceshrimp.Backend.Core.Database.Tables;
[Table("registration_invite")]
[Index("Code", IsUnique = true)]
public class RegistrationInvite
{
[Key]
[Column("id")]
[StringLength(32)]
public string Id { get; set; } = null!;
[Column("createdAt")] public DateTime CreatedAt { get; set; }
[Column("code")] [StringLength(64)] public string Code { get; set; } = null!;
}