Улучшение безопасности и обработки ошибок. Этап 1. #8

This commit is contained in:
2026-04-29 11:00:14 +03:00
parent 3da4ee28d4
commit cfd2e38952
10 changed files with 219 additions and 116 deletions

View File

@@ -9,6 +9,7 @@
password_hash :: binary(),
role :: user | bot,
status :: active | frozen | deleted,
reason :: binary() | undefined,
created_at :: calendar:datetime(),
updated_at :: calendar:datetime()
}).
@@ -51,6 +52,7 @@
rating_avg :: float(),
rating_count :: non_neg_integer(),
status :: active | frozen | deleted,
reason :: binary() | undefined,
created_at :: calendar:datetime(),
updated_at :: calendar:datetime()
}).
@@ -85,6 +87,7 @@
capacity :: integer() | undefined,
online_link :: binary() | undefined,
status :: active | cancelled | completed,
reason :: binary() | undefined,
rating_avg :: float(),
rating_count :: non_neg_integer(),
created_at :: calendar:datetime(),
@@ -118,6 +121,7 @@
rating :: 1..5,
comment :: binary(),
status :: visible | hidden | deleted,
reason :: binary() | undefined,
created_at :: calendar:datetime(),
updated_at :: calendar:datetime()
}).