Social Todo Backend ERD
Tables (7)
alarm_entity (알림)
- id (주키 아이디) — Primary key — NOT NULL
- alarm_receiver_user_id (알림 원인 제공 유저 주키 아이디) — Foreign key → user.id — NOT NULL
- alarm_sender_user_id (알림 받는 유저 주키 아이디) — NOT NULL
- number_of_people_related_to_alarm (알림 연관 유저 수) — NOT NULL
- related_public_todo_pk_id (알림 연관 공개 투두 주키 아이디) — NOT NULL
- alarm_type (알림 타입)
- alarm_content (알림 내용)
- created_at (생성일시)
- modified_at (수정일시)
follow_entity (팔로우 관계)
- id (주키 아이디) — Primary key — NOT NULL
- follow_sent_user_id (팔로우 보낸 유저) — Foreign key → user.id — NOT NULL
- follow_received_user_id (팔로우 대상 유저) — NOT NULL
- created_at (생성 일시)
nag_entity (잔소리 정보)
- id (주키 아이디) — Primary key — NOT NULL
- public_todo_pk_id (공개 투두 아이템 주키 아이디) — Foreign key → public_todo_entity.id — NOT NULL
- nag_sent_user_pk_id (잔소리 누른 유저 주키 아이디) — NOT NULL
- created_at (생성일시) — NOT NULL
private_todo_entity (프라이빗 투두)
- id (주키 아이디) — Primary key — NOT NULL
- author_user_id (글쓴이 유저 주키 아이디) — Foreign key → user.id — NOT NULL
- todo_content (할일 내용) — NOT NULL
- deadline_date (마감날짜) — NOT NULL
- is_finished (완료 여부) — NOT NULL
- created_at (생성일시)
- modified_at (수정일시)
public_todo_entity (공개 투두)
- id (주키 아이디) — Primary key — NOT NULL
- author_user_id (글쓴이 유저 주키 아이디) — Foreign key → user.id — NOT NULL
- author_nickname (글쓴이 유저 닉네임) — NOT NULL
- todo_content (할일 내용)
- deadline_date (마감날짜) — NOT NULL
- is_finished (완료 여부) — NOT NULL
- created_at (생성일시)
- modified_at (수정일시)
support_entity (응원 정보)
- id (주키 아이디) — Primary key — NOT NULL
- public_todo_pk_id (공개 투두 아이템 주키 아이디) — Foreign key → public_todo_entity.id — NOT NULL
- support_sent_user_pk_id (응원 누른 유저 주키 아이디) — NOT NULL
- created_at (생성일시) — NOT NULL
user (사용자)
- id (주키 아이디) — Primary key — NOT NULL
- nickname (닉네임) — NOT NULL
- password (비밀번호) — NOT NULL
- email (이메일) — NOT NULL
- created_at (가입일시)