ee21f512a9
Phone becomes the required, unique login identifier; email and name turn optional. Login now accepts either via a single identifier field, refresh re-checks tenant membership, and the dev seed provides phone numbers. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
16 lines
249 B
Go
16 lines
249 B
Go
package domain
|
|
|
|
import "time"
|
|
|
|
type User struct {
|
|
ID int64
|
|
Email *string
|
|
Phone string
|
|
PasswordHash string
|
|
Name *string
|
|
AvatarURL *string
|
|
Status string
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|