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

35 lines
No EOL
1,016 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Iceshrimp.Backend.Core.Database.Tables;
[Table("user_pending")]
[Index(nameof(Code), IsUnique = true)]
public class UserPending
{
[Key]
[Column("id")]
[StringLength(32)]
public string Id { get; set; } = null!;
[Column("createdAt")] public DateTime CreatedAt { get; set; }
[Column("code")] [StringLength(128)] public string Code { get; set; } = null!;
[Column("username")]
[StringLength(128)]
public string Username { get; set; } = null!;
[Column("email")] [StringLength(128)] public string Email { get; set; } = null!;
[Column("password")]
[StringLength(128)]
public string Password { get; set; } = null!;
private class EntityTypeConfiguration : IEntityTypeConfiguration<UserPending>
{
public void Configure(EntityTypeBuilder<UserPending> entity) { }
}
}