todo-api 2025
Tables (3)
Todo (할 일)
- todo_id (할 일 아이디) — bigint — Primary key — NOT NULL
- todo_content (할 일 내용) — varchar(200)
- todo_is_checked (할 일 체크 여부) — tinyint(1)
- user_id (유저 아이디) — bigint — Foreign key → User1.user_id — NOT NULL
User1 (유저1)
- user_id (유저 아이디) — bigint — Primary key — NOT NULL
- user_email (유저 이메일) — varchar(30)
- user_password (유저 비밀번호) — varchar(30)
friend (친구)
- friend_id (친구 아이디) — bigint — Primary key — NOT NULL
- user1_id (유저 아이디1) — bigint — Foreign key → User1.user_id — NOT NULL
- user2_id (유저 아이디2) — bigint — Foreign key → User1.user_id — NOT NULL
- friend_is_followed (팔로우 여부) — tinyint(1)