Record project continuation changes
This commit is contained in:
@@ -14,12 +14,13 @@ const (
|
||||
)
|
||||
|
||||
type User struct {
|
||||
ID string
|
||||
Email string
|
||||
PasswordHash string
|
||||
MFAEnabled bool
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
ID string `json:"id"`
|
||||
Email string `json:"email"`
|
||||
PasswordHash string `json:"-"`
|
||||
MFAEnabled bool `json:"mfa_enabled"`
|
||||
PlatformRole string `json:"platform_role"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
type Device struct {
|
||||
@@ -40,7 +41,7 @@ type AuthSession struct {
|
||||
ID string
|
||||
UserID string
|
||||
DeviceID string
|
||||
RefreshTokenHash string
|
||||
RefreshTokenHash string `json:"-"`
|
||||
RefreshExpiresAt time.Time
|
||||
LastSeenAt *time.Time
|
||||
LastRotatedAt *time.Time
|
||||
@@ -69,6 +70,13 @@ type BootstrapOwnerCommand struct {
|
||||
ActivationSignature string `json:"activation_signature"`
|
||||
}
|
||||
|
||||
type CreateUserCommand struct {
|
||||
ActorUserID string `json:"actor_user_id"`
|
||||
Email string `json:"email"`
|
||||
Password string `json:"password"`
|
||||
PlatformRole string `json:"platform_role"`
|
||||
}
|
||||
|
||||
type RevokeAuthSessionCommand struct {
|
||||
UserID string `json:"user_id"`
|
||||
AuthSessionID string `json:"auth_session_id"`
|
||||
|
||||
Reference in New Issue
Block a user