use shared::models::User; #[test] fn test_user_model_serialization() { let user = User { id: uuid::Uuid::new_v4(), email: "test@example.com".to_string(), password_hash: Some("hash".to_string()), google_id: None, credits: 30, tier: "free".to_string(), created_at: chrono::Utc::now(), updated_at: chrono::Utc::now(), }; let json = serde_json::to_string(&user).unwrap(); assert!(json.contains("test@example.com")); }