mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-07-16 17:47:22 +00:00
Format ./web/backend/Domain/Domain.Entities
This commit is contained in:
@@ -7,46 +7,46 @@ namespace Domain.Entities;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class BreweryPostLocation
|
public class BreweryPostLocation
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Primary key identifying this location. Maps to <c>BreweryPostLocationID</c>.
|
/// Primary key identifying this location. Maps to <c>BreweryPostLocationID</c>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid BreweryPostLocationId { get; set; }
|
public Guid BreweryPostLocationId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Foreign key referencing the owning <see cref="BreweryPost" />. Maps to <c>BreweryPostID</c>; unique, enforcing a
|
/// Foreign key referencing the owning <see cref="BreweryPost" />. Maps to <c>BreweryPostID</c>; unique, enforcing a
|
||||||
/// one-to-one relationship.
|
/// one-to-one relationship.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid BreweryPostId { get; set; }
|
public Guid BreweryPostId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The primary street address line.
|
/// The primary street address line.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string AddressLine1 { get; set; } = string.Empty;
|
public string AddressLine1 { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An optional secondary address line (e.g., suite or unit number).
|
/// An optional secondary address line (e.g., suite or unit number).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? AddressLine2 { get; set; }
|
public string? AddressLine2 { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The postal/ZIP code of the location.
|
/// The postal/ZIP code of the location.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string PostalCode { get; set; } = string.Empty;
|
public string PostalCode { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Foreign key referencing the city in which the brewery is located. Maps to <c>CityID</c>.
|
/// Foreign key referencing the city in which the brewery is located. Maps to <c>CityID</c>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid CityId { get; set; }
|
public Guid CityId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Serialized SQL Server <c>GEOGRAPHY</c> value representing the geographic coordinates of the location, or
|
/// Serialized SQL Server <c>GEOGRAPHY</c> value representing the geographic coordinates of the location, or
|
||||||
/// <c>null</c> if not set.
|
/// <c>null</c> if not set.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public byte[]? Coordinates { get; set; }
|
public byte[]? Coordinates { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// SQL Server <c>ROWVERSION</c> concurrency token used to detect concurrent updates. <c>null</c> until the row has
|
/// SQL Server <c>ROWVERSION</c> concurrency token used to detect concurrent updates. <c>null</c> until the row has
|
||||||
/// been read from the database.
|
/// been read from the database.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public byte[]? Timer { get; set; }
|
public byte[]? Timer { get; set; }
|
||||||
}
|
}
|
||||||
@@ -7,49 +7,49 @@ namespace Domain.Entities;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class UserAccount
|
public class UserAccount
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Primary key identifying this user account. Maps to <c>UserAccountID</c>.
|
/// Primary key identifying this user account. Maps to <c>UserAccountID</c>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid UserAccountId { get; set; }
|
public Guid UserAccountId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The user's unique username, used for login and display. Enforced unique at the database level.
|
/// The user's unique username, used for login and display. Enforced unique at the database level.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Username { get; set; } = string.Empty;
|
public string Username { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The user's first name.
|
/// The user's first name.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string FirstName { get; set; } = string.Empty;
|
public string FirstName { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The user's last name.
|
/// The user's last name.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string LastName { get; set; } = string.Empty;
|
public string LastName { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The user's email address. Enforced unique at the database level.
|
/// The user's email address. Enforced unique at the database level.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Email { get; set; } = string.Empty;
|
public string Email { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The date and time the account was created.
|
/// The date and time the account was created.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime CreatedAt { get; set; }
|
public DateTime CreatedAt { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The date and time the account was last updated, or <c>null</c> if it has never been updated.
|
/// The date and time the account was last updated, or <c>null</c> if it has never been updated.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime? UpdatedAt { get; set; }
|
public DateTime? UpdatedAt { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The user's date of birth.
|
/// The user's date of birth.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime DateOfBirth { get; set; }
|
public DateTime DateOfBirth { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// SQL Server <c>ROWVERSION</c> concurrency token used to detect concurrent updates. <c>null</c> until the row has
|
/// SQL Server <c>ROWVERSION</c> concurrency token used to detect concurrent updates. <c>null</c> until the row has
|
||||||
/// been read from the database.
|
/// been read from the database.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public byte[]? Timer { get; set; }
|
public byte[]? Timer { get; set; }
|
||||||
}
|
}
|
||||||
@@ -7,34 +7,34 @@ namespace Domain.Entities;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class UserCredential
|
public class UserCredential
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Primary key identifying this credential. Maps to <c>UserCredentialID</c>.
|
/// Primary key identifying this credential. Maps to <c>UserCredentialID</c>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid UserCredentialId { get; set; }
|
public Guid UserCredentialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Foreign key referencing the owning <see cref="UserAccount" />. Maps to <c>UserAccountID</c>.
|
/// Foreign key referencing the owning <see cref="UserAccount" />. Maps to <c>UserAccountID</c>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid UserAccountId { get; set; }
|
public Guid UserAccountId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The date and time the credential was issued.
|
/// The date and time the credential was issued.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime CreatedAt { get; set; }
|
public DateTime CreatedAt { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The date and time after which the credential is no longer valid.
|
/// The date and time after which the credential is no longer valid.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime Expiry { get; set; }
|
public DateTime Expiry { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The Argon2 hash of the credential's secret value. The plaintext secret is never persisted.
|
/// The Argon2 hash of the credential's secret value. The plaintext secret is never persisted.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Hash { get; set; } = string.Empty;
|
public string Hash { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// SQL Server <c>ROWVERSION</c> concurrency token used to detect concurrent updates. <c>null</c> until the row has
|
/// SQL Server <c>ROWVERSION</c> concurrency token used to detect concurrent updates. <c>null</c> until the row has
|
||||||
/// been read from the database.
|
/// been read from the database.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public byte[]? Timer { get; set; }
|
public byte[]? Timer { get; set; }
|
||||||
}
|
}
|
||||||
@@ -7,25 +7,25 @@ namespace Domain.Entities;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class UserVerification
|
public class UserVerification
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Primary key identifying this verification record. Maps to <c>UserVerificationID</c>.
|
/// Primary key identifying this verification record. Maps to <c>UserVerificationID</c>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid UserVerificationId { get; set; }
|
public Guid UserVerificationId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Foreign key referencing the verified <see cref="UserAccount" />. Maps to <c>UserAccountID</c>; unique, enforcing a
|
/// Foreign key referencing the verified <see cref="UserAccount" />. Maps to <c>UserAccountID</c>; unique, enforcing a
|
||||||
/// one-to-one relationship.
|
/// one-to-one relationship.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid UserAccountId { get; set; }
|
public Guid UserAccountId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The date and time at which the user account was verified.
|
/// The date and time at which the user account was verified.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime VerificationDateTime { get; set; }
|
public DateTime VerificationDateTime { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// SQL Server <c>ROWVERSION</c> concurrency token used to detect concurrent updates. <c>null</c> until the row has
|
/// SQL Server <c>ROWVERSION</c> concurrency token used to detect concurrent updates. <c>null</c> until the row has
|
||||||
/// been read from the database.
|
/// been read from the database.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public byte[]? Timer { get; set; }
|
public byte[]? Timer { get; set; }
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user