board-example

Tables (3)

comments (댓글)

  • id (아이디) — INTEGER — Primary key — NOT NULL
  • content (내용) — TEXT
  • created_at (생성 시간) — DATETIME
  • user_id (유저 아이디) — INTEGER — Foreign key → users.id — NOT NULL
  • post_id (게시글 아이디) — INTEGER — Foreign key → posts.id — NOT NULL

posts (게시글)

  • id (아이디) — INTEGER — Primary key — NOT NULL
  • title (제목) — TEXT
  • content (내용) — TEXT
  • created_at (생성 시간) — DATETIME
  • user_id (유저 아이디) — INTEGER — Foreign key → users.id — NOT NULL

users (유저)

  • id (아이디) — INTEGER — Primary key — NOT NULL
  • username (유저 이름) — TEXT
  • password (비밀번호) — TEXT
  • created_at (생성 시간) — DATETIME