report how many usages there have been

This commit is contained in:
Brandon Thomas committed 2022-07-11 04:58:56 -04:00
1 parent 362e18b7d0
commit a09f63537e
1 file changed
+18
+18
View File
@@ -0,0 +1,18 @@
-- noinspection SqlDialectInspectionForFile
-- noinspection SqlNoDataSourceInspectionForFile
-- noinspection SqlResolveForFile
--
-- Usage count in the past 24 hours
--
select count(*) as use_count
from tts_results
where created_at > ( CURDATE() - INTERVAL 1 DAY )
--
-- Usage count in the past week
--
select count(*) as use_count
from tts_results
where created_at > ( CURDATE() - INTERVAL 7 DAY )