user_id and spend_date and calculate the total amount spent on mobile and desktop for each user on each date.spend_date and platform categories.spend_date and platform.spend_date and platform and calculate the total amount spent (total_amount) and the total number of users (total_users) for each combination.spend_date, platform, total_amount, and total_users.
erDiagram
Spending {
int user_id
date spend_date
enum platform
int amount
}