Traffic table where the activity is 'login'.user_id and use the MIN function to find the earliest activity_date for each user, which represents their first login date.activity_date and count the number of users for each date to get the daily count of first-time logins.activity_date as login_date and the count as user_count.
erDiagram
Traffic {
int user_id
enum activity
date activity_date
}