feat(users): Add optional fields to user schemas and update user avatar functionality
This commit is contained in:
@@ -47,13 +47,23 @@ mod auth_login_tests {
|
||||
id: crate::make_thing("app_users", &uuid::Uuid::new_v4().to_string()),
|
||||
email: email.to_string(),
|
||||
fullname: "Test User".to_string(),
|
||||
legal_name: None,
|
||||
password: hash_password(password).unwrap(),
|
||||
is_deleted: false,
|
||||
avatar: None,
|
||||
phone_number: "081234567890".to_string(),
|
||||
phone_for_verification: None,
|
||||
is_active,
|
||||
gender: None,
|
||||
birthdate: None,
|
||||
domicile: None,
|
||||
identity_document_url: None,
|
||||
bio: None,
|
||||
last_education: None,
|
||||
linkedin_url: None,
|
||||
github_url: None,
|
||||
cv_url: None,
|
||||
portfolio_url: None,
|
||||
role: crate::make_thing("app_roles", &role.id),
|
||||
mentor_id: None,
|
||||
created_at: imphnen_utils::get_iso_date(),
|
||||
|
||||
Reference in New Issue
Block a user