TodoList
Tables (6)
Profile (사용자 프로필)
- id (Key) — Primary key — NOT NULL
- user_id (사용자 아이디) — Foreign key → User.id — NOT NULL
- nickname (닉네임)
- avator (사용자 프로필)
User (사용자)
- id (Key) — Primary key — NOT NULL
- password (비밀번호)
- username (아이디)
- first_name (이름)
- last_name (성)
- email (이메일)
- last_login (최근 로그인)
- is_staff (스태프 여부)
- is_active (계정 활성화 여부)
- date_join (가입일)
alarm (알림)
- id (Key) — Primary key — NOT NULL
- user_id (알림 받는 유저 아이디) — Foreign key → User.id — NOT NULL
- todo_id (알림 연관 투두 아이디) — Foreign key → todo.id — NOT NULL
- type (알림 타입)
- content (알림 내용)
follow (팔로우 관계)
- id (Key) — Primary key — NOT NULL
- send_user_id (팔로우 사용자 아이디) — Foreign key → User.id — NOT NULL
- received_profile_id (팔로우 받은 사용자 프로필 아이디)
- created_at (생성일시)
- updated_at (수정일시)
support_todo (응원)
- id (Key) — Primary key — NOT NULL
- send_user_id (응원을 보내는 사용자 아이디) — Foreign key → User.id — NOT NULL
- todo_id (응원하는 투두 아이디) — Foreign key → todo.id — NOT NULL
- is_support (Field)
todo (할일목록)
- id (Key) — Primary key — NOT NULL
- content (내용)
- deadline_date (마감일)
- is_finished (완료 여부)
- created_at (생성일)
- update_at (수정일)
- author_id (작성자 아이디) — Foreign key → User.id — NOT NULL