feat: enums, schema and models for hado core

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BCrwHHnGCB5XH968Nxokqw
This commit is contained in:
nikita.hohlov
2026-09-04 06:05:34 -03:00
parent 8d01b7050d
commit 774e0bce1a
18 changed files with 447 additions and 123 deletions

18
core/config/hado.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
return [
'default_tz' => env('HADO_DEFAULT_TZ', 'UTC'),
'presence_timeout' => (int) env('HADO_PRESENCE_TIMEOUT', 2),
'presence_ttl' => 60,
'fallback_day_minutes' => (int) env('HADO_FALLBACK_DAY', 30),
'fallback_hour_minutes' => (int) env('HADO_FALLBACK_HOUR', 10),
'fallback_hours' => array_map('intval', explode(',', env('HADO_FALLBACK_HOURS', '9,14,20'))),
'retention_days' => (int) env('HADO_RETENTION_DAYS', 90),
'telegram' => [
'token' => env('TELEGRAM_BOT_TOKEN', ''),
'username' => env('TELEGRAM_BOT_USERNAME', ''),
'webhook_secret' => env('TELEGRAM_WEBHOOK_SECRET', ''),
'seen_ttl' => 600,
],
'web_heartbeat_ttl' => 90,
];