atlas

Tables (3)

Comment

  • ID — int — Primary key — NOT NULL — 기본키
  • created_at (생성일자) — date — 생성일자
  • updated_at (수정일자) — date — 수정일자
  • deleted_at (삭제일자) — date, null — null일 경우 해당 레코드가 삭제되지 않은 상태
  • content (내용) — string
  • userID (작성자 ID) — int — Foreign key → User.ID — NOT NULL — 외래키
  • postID (작성 Post ID) — int — Foreign key → Post.ID — NOT NULL — 외래키

Post

  • ID — int — Primary key — NOT NULL — 기본키
  • created_at (생성일자) — date — 생성일자
  • updated_at (수정일자) — date — 수정일자
  • deleted_at (삭제일자) — date, null — null일 경우 해당 레코드가 삭제되지 않은 상태
  • title (제목) — string
  • content (내용) — string
  • userID (작성자 ID) — int — Foreign key → User.ID — NOT NULL — 외래키

User

  • ID — int — Primary key — NOT NULL — 기본키
  • created_at (생성일자) — date — 생성일자
  • updated_at (수정일자) — date — 수정일자
  • deleted_at (삭제일자) — date, null — null일 경우 해당 레코드가 삭제되지 않은 상태
  • email (이메일) — string — 중복 불가
  • password (비밀번호) — string