mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-09 03:21:23 +00:00
report how many usages there have been
This commit is contained in:
1 parent
362e18b7d0
commit
a09f63537e
1 file changed
+18
@@ -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 )
|
||||
|
||||
Reference in new issue
Block a user