ERD
Tables (6)
Event_logs (이벤트 로그)
- Key — Foreign key → Users.Key — NOT NULL
- id (아이디) — INT
- user_id (사용자아이디) — INT
- event_type (이벤트종류) — String
- detected_at (이벤트시간) — DATETIME
- status (상태) — String
- confidence_score (정확도) — FLOAT
- message (메세지) — String
Routines (루틴)
- Key — Foreign key → Users.Key — NOT NULL
- id (아이디) — INT
- user_id (사용자아이디) — INT
- title (제목) — String
- description (설명) — String
- alarm_time (알람시간) — TIME
- repeat_type (종류) — String
- created_at (생성시간) — DATETIME
SystemStatus (시스템 상태)
- Key — Foreign key → Event_logs.Key — NOT NULL
- id (아이디) — INT
- event_id (로그아이디) — INT
- node_name (시스템이름) — String
- status (상태) — String
- timestamp (시간) — DATETIME
Users (사용자)
- Key — Primary key — NOT NULL
- id (아이디) — INT
- name (이름) — String
- phone (핸드폰번호) — String
- created_at (생성날짜) — DATETIME
- password (비밀번호) — String
- information (정보) — String
emergency_contacts (보호자 연락처)
- Key — Foreign key → Users.Key — NOT NULL
- id (아이디) — INT
- user_id (사용자아이디) — INT
- name (이름) — String
- phone (핸드폰번호) — String
- relation (관계) — String
stats (통계 조회)
- Key — Primary key — NOT NULL
- Date (날짜) — DATETIME
- Fall_event_count (쓰러진횟수) — INT
- average_confidence_score (정확도) — FLOAT
- routine_count (루틴횟수) — INT