== Admin opens dashboard == === Actors === Admin === Scenario === 1. The admin clicks on the button with their username [[Image(clickAdmin.png)]] 2. A dashboard with their information, favorited builds and their own builds is displayed. {{{ SELECT username, email FROM users WHERE id = $userId LIMIT 1; }}} {{{ SELECT id, user_id, name, created_at, total_price FROM build WHERE is_approved = false ORDER BY created_at DESC; }}} {{{ SELECT id, user_id, name, created_at, total_price FROM build WHERE user_id = $userId ORDER BY created_at DESC; }}} {{{ SELECT * FROM suggestions WHERE status = 'pending' ORDER BY id DESC; }}} [[Image(adminDashboard.png)]]