pet

테이블 (9)

commerce (Untitled9)

  • Field

likes (Untitled6)

  • likes_id (like_id) — 기본 키 — NOT NULL
  • likes_count
  • post_id — 외래 키 → post.post_id — NOT NULL
  • user_id — string — 외래 키 → user.user_id — NOT NULL

pet_expense (note)

  • expense_id — 기본 키 — NOT NULL
  • expense_price
  • date
  • category
  • expense_type
  • pet_id (Key) — 외래 키 → petdetail.pet_id — NOT NULL
  • user_id — string — 외래 키 → petdetail.user_id — NOT NULL

petdetail (Untitled)

  • pet_id (Key) — 기본 키 — NOT NULL
  • user_id — string — 외래 키 → user.user_id — NOT NULL
  • pet_type
  • pet_name
  • pet_age

post (Untitled2)

  • post_id — 기본 키 — NOT NULL
  • text
  • user_id (user_id2) — string — 외래 키 → user.user_id — NOT NULL

statistics_month (Untitled7)

  • month
  • month_fixed_price
  • month_unfixed_price
  • user_id — string — 외래 키 → user.user_id — NOT NULL
  • pet_id (Key) — 외래 키 → petdetail.pet_id — NOT NULL
  • user_id (user_id2) — string — 외래 키 → petdetail.user_id — NOT NULL

statistics_year (Untitled8)

  • year
  • year_fixed_price
  • year_unfixed_price
  • user_id — string — 외래 키 → user.user_id — NOT NULL
  • pet_id (Key) — 외래 키 → petdetail.pet_id — NOT NULL
  • user_id (user_id2) — string — 외래 키 → petdetail.user_id — NOT NULL

user (Untitled4)

  • user_id — string — 기본 키 — NOT NULL
  • login_id — string
  • login_pw — string
  • user_nickname (nick_nickname)

답글 (Untitled3)

  • comment_id — 기본 키 — NOT NULL
  • comment_text — text
  • post_id — string — 외래 키 → post.post_id — NOT NULL
  • user_id — string — 외래 키 → user.user_id — NOT NULL