add id properties
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
{
|
||||
public class Character
|
||||
{
|
||||
public ulong Id { get; set; }
|
||||
public PropertyList Properties { get; set; } = [];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
{
|
||||
public class Property(string name)
|
||||
{
|
||||
public ulong Id { get; set; }
|
||||
public string Name { get; set; } = name;
|
||||
public PropertyCategory? Category { get; set; }
|
||||
public object? Value { get; set; }
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
{
|
||||
public class PropertyCategory(string name)
|
||||
{
|
||||
public ulong Id { get; set; }
|
||||
public string Name { get; set; } = name;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace OwnChar.Model
|
||||
{
|
||||
public class UserAccount(string email, string username, SecureString password, string? displayName)
|
||||
{
|
||||
public ulong Id { get; set; }
|
||||
public UserProfile Profile { get; set; } = new(string.IsNullOrWhiteSpace(displayName) ? username : displayName);
|
||||
public string Username { get; set; } = username;
|
||||
public string Email { get; set; } = email;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
{
|
||||
public class UserProfile(string name)
|
||||
{
|
||||
public ulong Id { get; set; }
|
||||
public string Name { get; set; } = name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user