Сбор статистики через триггеры #16

This commit is contained in:
2026-05-04 20:56:27 +03:00
parent 574d0d2e43
commit af0a36185b
4 changed files with 151 additions and 1 deletions

View File

@@ -233,4 +233,12 @@
body :: binary(),
is_read :: boolean(),
created_at :: calendar:datetime()
}).
-record(stats, {
id :: binary(),
metric :: atom(),
entity_id :: binary(),
value :: integer() | {integer(), integer()},
timestamp :: calendar:datetime()
}).