Notice Board

Tables (3)

Post (게시물)

  • id (게시물 고유 번호) — int — Primary key — NOT NULL
  • user_id (작성자 유저 번호) — int — Foreign key → User.id — NOT NULL
  • title (게시물제목) — str
  • content (게시물내용) — str
  • is_publisthed (임시저장/공개여부) — boolean
  • view_count (조회수) — int
  • created_at (작성날짜) — Date/DateTime
  • updated_at (수정날짜) — Date/DateTime
  • type (게시판타입) — str

User (사용자)

  • id (유저 고유 번호) — int — Primary key — NOT NULL
  • email (이메일) — str
  • name (이름) — str
  • profile_image (프로필사진) — str
  • oauth_id (OAuth아이디) — str
  • oauth_provider (OAuth제공도메인) — str
  • is_active (사용자활/비활성화) — boolean
  • is_admin (관리자) — boolean
  • created_at (회원가입날짜) — Date
  • updated_at (정보수정날짜) — Date
  • dept (부서) — str

comment (댓글)

  • id (댓글 고유 번호) — int — Primary key — NOT NULL
  • post_id (댓글 달린 게시물 고유 번호) — int — Foreign key → Post.id — NOT NULL
  • user_id (댓글 작성자 유저 고유번호) — int — Foreign key → Post.user_id — NOT NULL
  • id (유저 고유 번호) — int — Foreign key → User.id — NOT NULL
  • parent_id (대댓글용 자기 참조 번호) — int
  • content (댓글내용) — str
  • created_at (댓글생성날짜) — Date/DateTime
  • updated_at (댓글수정날짜) — Date
  • is_published (공개여부) — boolean
  • id (댓글 고유 번호2) — int — Foreign key → comment.id — NOT NULL
  • post_id (댓글 달린 게시물 고유 번호2) — int — Foreign key → comment.post_id — NOT NULL
  • user_id (댓글 작성자 유저 고유번호2) — int — Foreign key → comment.user_id — NOT NULL
  • id (유저 고유 번호2) — int — Foreign key → comment.id — NOT NULL