add id properties

This commit is contained in:
2024-05-15 08:54:49 +02:00
parent f0efc231c5
commit 77f58259ca
5 changed files with 5 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
{ {
public class Character public class Character
{ {
public ulong Id { get; set; }
public PropertyList Properties { get; set; } = []; public PropertyList Properties { get; set; } = [];
} }
} }

View File

@@ -2,6 +2,7 @@
{ {
public class Property(string name) public class Property(string name)
{ {
public ulong Id { get; set; }
public string Name { get; set; } = name; public string Name { get; set; } = name;
public PropertyCategory? Category { get; set; } public PropertyCategory? Category { get; set; }
public object? Value { get; set; } public object? Value { get; set; }

View File

@@ -2,6 +2,7 @@
{ {
public class PropertyCategory(string name) public class PropertyCategory(string name)
{ {
public ulong Id { get; set; }
public string Name { get; set; } = name; public string Name { get; set; } = name;
} }
} }

View File

@@ -4,6 +4,7 @@ namespace OwnChar.Model
{ {
public class UserAccount(string email, string username, SecureString password, string? displayName) 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 UserProfile Profile { get; set; } = new(string.IsNullOrWhiteSpace(displayName) ? username : displayName);
public string Username { get; set; } = username; public string Username { get; set; } = username;
public string Email { get; set; } = email; public string Email { get; set; } = email;

View File

@@ -2,6 +2,7 @@
{ {
public class UserProfile(string name) public class UserProfile(string name)
{ {
public ulong Id { get; set; }
public string Name { get; set; } = name; public string Name { get; set; } = name;
} }
} }