1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-05-26 01:34:05 +02:00
Minecraft-Phantom-Panel/Server/Phantom.Server.Database/Entities/UserEntity.cs

20 lines
455 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Phantom.Server.Database.Entities;
[Table("Users", Schema = "identity")]
public sealed class UserEntity {
[Key]
public Guid UserGuid { get; set; }
public string Name { get; set; }
public string PasswordHash { get; set; }
public UserEntity(Guid userGuid, string name) {
UserGuid = userGuid;
Name = name;
PasswordHash = null!;
}
}