AIE-week2

Tables (4)

Category (분야)

  • category_id (분야 아이디) — INT — Primary key — NOT NULL
  • categoryname (분야 이름) — INT
  • user_id (사용자 아이디) — INT — Foreign key → User.user_id — NOT NULL

Favorite (즐겨찾기)

  • favorite_id (즐겨찾기 아이디) — INT — Primary key — NOT NULL
  • user_id (사용자 아이디) — INT — Foreign key → User.user_id — NOT NULL
  • from_unit_id (시작 단위 아이디) — INT — Foreign key → Unit.unit_id — NOT NULL
  • to_unit_id (목표 단위 아이디) — INT — Foreign key → Unit.unit_id — NOT NULL

Unit (단위)

  • unit_id (단위 아이디) — INT — Primary key — NOT NULL
  • unitname (단위 이름) — INT
  • to_meter_ratio (미터 변환 비율) — INT
  • user_id (사용자 아이디) — INT — Foreign key → User.user_id — NOT NULL
  • category_id (분야 아이디) — INT — Foreign key → Category.category_id — NOT NULL

User (사용자 정보)

  • user_id (사용자 아이디) — INT — Primary key — NOT NULL
  • username (사용자 이름) — INT
  • email (이메일) — INT
  • password (비밀번호) — INT
  • created_at (로그인 시간) — INT