TILER

Tables (5)

comment (댓글)

  • commentId (댓글 식별키) — int — Primary key — NOT NULL
  • contents (내용) — longtext — NOT NULL
  • userId (유저 식별 키) — int — Foreign key → user.userId — NOT NULL
  • postId (게시물 식별 키) — int — Foreign key → post.postId — NOT NULL

follow (팔로잉 정보)

  • followId (팔로우 데이터 식별키) — int — Primary key — NOT NULL
  • following (팔로우 당하는 유저 식별키) — int — Foreign key → user.userId — NOT NULL
  • follower (팔로우 하는 유저 식별키) — int — Foreign key → user.userId — NOT NULL

like (좋아요)

  • userId (유저 식별 키) — int — Foreign key → user.userId — NOT NULL
  • postId (게시물 식별 키) — int — Foreign key → post.postId — NOT NULL

post (게시글)

  • postId (게시물 식별 키) — int — Primary key — NOT NULL
  • userId (유저 식별 키) — int — Foreign key → user.userId — NOT NULL
  • title (제목) — varchar(50) — NOT NULL
  • contents (내용) — longtext — NOT NULL
  • mainImg (메인 이미지) — varchar(50)
  • tags (태그) — varchar(225) — NOT NULL
  • createdAt (작성일) — varchar(100) — NOT NULL

user (유저)

  • userId (유저 식별 키) — int — Primary key — NOT NULL
  • username (유저 아이디) — varchar(30) — NOT NULL
  • password (유저 비밀번호) — varchar(200) — NOT NULL
  • statusMsg (상태 메세지) — varchar(50)
  • email (이메일) — varchar(50) — NOT NULL
  • profileImg (프로필 이미지) — varchar(50) — NOT NULL
  • statusMsg (상태메세지) — varchar(50)