Skip to content

Commit

Permalink
feat(Post): Add Customer Support Ticket ID property on Post entity
Browse files Browse the repository at this point in the history
This commit adds a new property called "CustomerSupportTicketId" to the Post model. This property is used to store the Customer Support ticket ID associated with a post. It can take a positive integer value up to 9 digits or be set as null if no ticket is associated. The purpose of this property is to allow WG staff to track and manage player reports.

Implements database requirements for #165.
  • Loading branch information
SakuraIsayeki committed Sep 1, 2024
1 parent 1dc88fb commit 3a8426a
Show file tree
Hide file tree
Showing 4 changed files with 648 additions and 3 deletions.
12 changes: 12 additions & 0 deletions WowsKarma.Api/Data/Models/Post.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@ public sealed record Post : ITimestamped, IDisposable
/// </summary>
public bool ModLocked { get; set; }

/// <summary>
/// The Customer Support ticket ID associated with this post.
/// </summary>
/// <remarks>
/// This is used by WG staff to track and manage player reports.
/// </remarks>
/// <value>
/// Set as <see langword="null"/> if no ticket is associated.
/// When present, takes form as a positive integer, up to 9 digits.
/// </value>
[Range(1, 999_999_999)]
public int? CustomerSupportTicketId { get; set; }

/// <inheritdoc />
public void Dispose()
Expand Down
Loading

0 comments on commit 3a8426a

Please sign in to comment.