mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
25 lines
590 B
C#
25 lines
590 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
using System.Text.Json.Serialization;
|
||
|
|
|
||
|
|
namespace Marechai.Data.Models;
|
||
|
|
|
||
|
|
public sealed record CreateUserRequest
|
||
|
|
{
|
||
|
|
[Required]
|
||
|
|
[JsonPropertyName("userName")]
|
||
|
|
public string UserName { get; set; } = null!;
|
||
|
|
|
||
|
|
[Required]
|
||
|
|
[EmailAddress]
|
||
|
|
[JsonPropertyName("email")]
|
||
|
|
public string Email { get; set; } = null!;
|
||
|
|
|
||
|
|
[Required]
|
||
|
|
[MinLength(6)]
|
||
|
|
[JsonPropertyName("password")]
|
||
|
|
public string Password { get; set; } = null!;
|
||
|
|
|
||
|
|
[JsonPropertyName("phoneNumber")]
|
||
|
|
public string? PhoneNumber { get; set; }
|
||
|
|
}
|