mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-05-26 01:34:05 +02:00
20 lines
455 B
C#
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!;
|
|
}
|
|
}
|