메일 알림 시스템 추가

This commit is contained in:
Yun Chan 2026-06-29 17:07:01 +09:00
parent ddf12a851c
commit 3bf38c50df
22 changed files with 1769 additions and 31 deletions

View file

@ -151,7 +151,30 @@ async def healthcheck() -> bool:
to_regclass('app.admin_engine_config') IS NOT NULL AS has_engine_config,
to_regclass('app.admin_health_event') IS NOT NULL AS has_admin_health_event,
to_regclass('app.admin_health_daily_rollup') IS NOT NULL AS has_admin_health_daily_rollup,
to_regclass('app.support_ticket') IS NOT NULL AS has_support_ticket
to_regclass('app.support_ticket') IS NOT NULL AS has_support_ticket,
to_regclass('app.notification_event') IS NOT NULL AS has_notification_event,
to_regclass('app.notification_delivery') IS NOT NULL AS has_notification_delivery,
to_regclass('app.sessions') IS NOT NULL AS has_sessions,
to_regclass('app.turns') IS NOT NULL AS has_turns,
to_regclass('app.session_review_status') IS NOT NULL AS has_session_review_status,
EXISTS (
SELECT 1 FROM information_schema.columns
WHERE table_schema = 'app'
AND table_name = 'turns'
AND column_name = 'provider_events'
) AS has_turn_provider_events,
EXISTS (
SELECT 1 FROM information_schema.columns
WHERE table_schema = 'app'
AND table_name = 'session_review_status'
AND column_name IN (
'worksheet_status',
'worksheet_note',
'worksheet_reviewed_at'
)
GROUP BY table_schema, table_name
HAVING count(*) = 3
) AS has_session_review_worksheet_columns
"""
)
return bool(
@ -163,6 +186,13 @@ async def healthcheck() -> bool:
and row["has_admin_health_event"]
and row["has_admin_health_daily_rollup"]
and row["has_support_ticket"]
and row["has_notification_event"]
and row["has_notification_delivery"]
and row["has_sessions"]
and row["has_turns"]
and row["has_session_review_status"]
and row["has_turn_provider_events"]
and row["has_session_review_worksheet_columns"]
)
except Exception:
return False