project

Tables (3)

Comment

  • comment_id (댓글 아이디) — BIGINT — Primary key — NOT NULL
  • content (댓글 내용) — VARCHAR — NOT NULL
  • created_at (댓글 생성 시간) — TIMESTAMP — NOT NULL
  • status (댓글 상태) — ENUM — NOT NULL
  • post_id (게시글 아이디) — BIGINT — Foreign key → Post.post_id — NOT NULL
  • user_id (유저 아이디) — BIGINT — Foreign key → User.user_id — NOT NULL

Post

  • post_id (게시글 아이디) — BIGINT — Primary key — NOT NULL
  • title (게시글 제목) — VARCHAR
  • content (게시글 내용) — VARCHAR
  • created_at (게시글 생성 시간) — TIMESTAMP
  • category (카테고리) — ENUM
  • filter (필터) — ENUM
  • tag (태그) — ENUM
  • status (게시글 상태) — ENUM
  • user_id (유저 아이디) — BIGINT — Foreign key → User.user_id — NOT NULL

User

  • user_id (유저 아이디) — BIGINT — Primary key — NOT NULL
  • email (이메일) — VARCHAR — NOT NULL
  • password (비밀번호) — VARCHAR — NOT NULL
  • name (이름) — VARCHAR — NOT NULL
  • role (역할) — ENUM — NOT NULL
  • status (유저 상태) — ENUM — NOT NULL
  • created_at (가입 시간) — TIMESTAMP — NOT NULL