Сбор статистики через триггеры #16
This commit is contained in:
@@ -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()
|
||||
}).
|
||||
Reference in New Issue
Block a user