1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-07-22 22:04:36 +02:00
Minecraft-Phantom-Panel/Controller/Phantom.Controller.Database/Entities/UserEntity.cs

20 lines
458 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Phantom.Controller.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!;
}
}