mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-09 11:31:27 +00:00
analytics query
This commit is contained in:
1 parent
1789918913
commit
4146e922d8
1 file changed
+32
@@ -16,3 +16,35 @@ and m.is_intermediate_system_file = false
|
||||
and m.media_class = 'video'
|
||||
group by u.token
|
||||
order by video_count desc;
|
||||
|
||||
-- Without internal users
|
||||
select
|
||||
u.username,
|
||||
count(*) as video_count,
|
||||
u.maybe_source,
|
||||
u.created_at
|
||||
from media_files as m
|
||||
join users as u
|
||||
on m.maybe_creator_user_token = u.token
|
||||
where u.can_access_studio = true
|
||||
and m.created_at > (CURDATE() - INTERVAL 14 DAY)
|
||||
and m.is_intermediate_system_file = false
|
||||
and m.media_class = 'video'
|
||||
and u.username NOT IN (
|
||||
'bflat',
|
||||
'candyfoxxx',
|
||||
'crossproduct1',
|
||||
'echelon',
|
||||
'endtimes',
|
||||
'heart_ribbon',
|
||||
'kasisnu',
|
||||
'mechacosm',
|
||||
'moonchamp',
|
||||
'olivicmic',
|
||||
'printrman',
|
||||
'vegito1089',
|
||||
'wilwong',
|
||||
'yae_ph'
|
||||
)
|
||||
group by u.token
|
||||
order by created_at desc;
|
||||
Reference in new issue
Block a user