Add display_name (unique) and email_confirmed_at columns plus matching getters, DTO fields, repo methods (findByDisplayName, update), and migration. Existing auth tests updated to construct User with the new params.
17 lines
360 B
PHP
17 lines
360 B
PHP
<?php
|
|
|
|
namespace App\User;
|
|
|
|
use App\Shared\ValueObject\EmailAddress;
|
|
use DateTimeImmutable;
|
|
|
|
readonly class CreateUserDto
|
|
{
|
|
public function __construct(
|
|
public EmailAddress $email,
|
|
public string $displayName,
|
|
public string $passwordHash,
|
|
public bool $isAdmin,
|
|
public ?DateTimeImmutable $emailConfirmedAt,
|
|
) {}
|
|
}
|