django-project1

테이블 (5)

글 (Post)

  • id — not null — 기본 키 — NOT NULL
  • title — not null
  • content — not null
  • created_at — not null
  • updated_at — not null
  • user_id — not null — 외래 키 → 유저.id — NOT NULL

글검색 (Search)

  • post_id — not null — 외래 키 → 글.id — NOT NULL
  • hashtag_id — not null — 외래 키 → 해시태그.id — NOT NULL

댓글 (Comment)

  • id — not null — 기본 키 — NOT NULL
  • content — not null
  • created_at (created_at) — not null
  • updated_at — not null
  • user_id — not null — 외래 키 → 유저.id — NOT NULL
  • post_id — not null — 외래 키 → 글.id — NOT NULL

유저 (User)

  • id — not null — 기본 키 — NOT NULL
  • name — not null
  • email — not null
  • pw — not null
  • created_at — not null

해시태그 (Hashtag)

  • id — not null — 기본 키 — NOT NULL
  • content — not null