todi-api-2025

Tables (3)

follow (친구)

  • follower_id (팔로우 하는 유저 아이디) — bigint — Primary key — NOT NULL
  • following_id (팔로우 당한 유저 아이디) — bigint
  • user_id (유저 아이디) — bigint — Foreign key → user.user_id — NOT NULL

todo (할 일)

  • todo_id (할 일 아이디) — bigint — Primary key — NOT NULL
  • todo_content (할 일 내용) — varchar(200)
  • todo_is_checked (할 일 체크 여부) — tinyint(1)
  • user_id (유저 아이디) — bigint — Foreign key → user.user_id — NOT NULL

user (유저)

  • user_id (유저 아이디) — bigint — Primary key — NOT NULL
  • user_email (유저 이메일) — varchar(30)
  • user_password (유저 비밀번호) — varchar(30)
  • user_name (유저 닉네임) — varchar(10)
  • follower_id (팔로우 하는 유저 아이디) — bigint — Foreign key → follow.follower_id — NOT NULL