Im building podcast app and I've question what is the best solution for counting streams? in postgres database should I just save array of people who streamed?
{ userId: String, streamedAt: Date}
{ userId: String, streamedAt: Date}
that comes in my mind as solution and is there any better way? (also that content must has analytics, dashboard and etc)