알림
테이블 (4)
alarm (알람)
- id (알람 아이디) — uuid — 기본 키 — NOT NULL
- sender_id (발신자 아이디) — uuid (user table foreign key)
- receiver_id (수신자 아이디) — uuid (user table foreign key)
- type (알림 받는 내용의 타입) — enum (CONDITION, AXCR, SORENESS, INJURY
- data (알림 받는 내용의 데이터) — string (1~4, 0.2, LEFT_ANKLE …) allow null
- is_checked (알림 확인 여부) — boolean
- created_at (데이터 생성 날짜) — date
- updated_at (데이터 수정 날짜) — date
- deleted_at (데이터 삭제 날짜) — date
alarm2 (알람 대안)
- id (알람 아이디) — uuid — 기본 키 — NOT NULL
- sender_id (발신자 아이디) — uuid (user table foreign key)
- receiver_id (수신자 아이디) — uuid (user table foreign key)
- type (알림 받는 내용의 타입) — enum (CONDITION, AXCR, SORENESS, INJURY
- data (알림 받는 내용의 데이터) — string (1~4, 0.2, LEFT_ANKLE …) allow null
- is_checked (알림 확인 여부) — boolean
- created_at (데이터 생성 날짜) — date
- updated_at (데이터 수정 날짜) — date
- deleted_at (데이터 삭제 날짜) — date
- isSendedToPlayer (선수에게 알림 보냈는지 여부) — boolean (allow null)
- team_id (받은 알람이 발생한 팀 아이디) — uuid (team table foreign key) allow null
alarm_for_coach (코치가 받는 알람)
- id (코치 알람 아이디) — uuid — 기본 키 — NOT NULL
- alarm_id (알람 아이디) — uuid — 외래 키 → alarm.id — NOT NULL
- isSendedToPlayer (선수에게 알림 보냈는지 여부) — boolean
alarm_for_player (선수가 받는 알람)
- id (선수 알람 아이디) — uuid — 기본 키 — NOT NULL
- alarm_id (알람 아이디) — uuid — 외래 키 → alarm.id — NOT NULL
- team_id (받은 알림이 발생한 팀 아이디) — uuid (team table foreign key)