22 lines
No EOL
635 B
C#
22 lines
No EOL
635 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("used_username")]
|
|
public class UsedUsername
|
|
{
|
|
[Key]
|
|
[Column("username")]
|
|
[StringLength(128)]
|
|
public string Username { get; set; } = null!;
|
|
|
|
[Column("createdAt")] public DateTime CreatedAt { get; set; }
|
|
|
|
private class EntityTypeConfiguration : IEntityTypeConfiguration<UsedUsername>
|
|
{
|
|
public void Configure(EntityTypeBuilder<UsedUsername> entity) { }
|
|
}
|
|
} |