fleshout backend

This commit is contained in:
KS Jannette
2026-08-03 04:23:32 -04:00
parent a00282b1e6
commit 092ef17439
19 changed files with 500 additions and 52 deletions

View File

@@ -0,0 +1,13 @@
using System.ComponentModel.DataAnnotations;
namespace Backend.Controllers;
// Validation attributes must target the primary constructor parameters, not the
// generated properties; MVC rejects record types with property-level metadata.
public sealed record CreateUserRequest(
[Required][EmailAddress] string Email,
[Required][StringLength(100, MinimumLength = 1)] string DisplayName);
public sealed record UpdateUserRequest(
[Required][EmailAddress] string Email,
[Required][StringLength(100, MinimumLength = 1)] string DisplayName);