Iceshrimp.NET/Iceshrimp.Backend/Core/Database/Tables/RegistrationTicket.cs
2024-01-07 19:43:41 +01:00

18 lines
No EOL
533 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace Iceshrimp.Backend.Core.Database.Tables;
[Table("registration_ticket")]
[Index("Code", IsUnique = true)]
public class RegistrationTicket {
[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!;
}