time

Tables (7)

Category

  • 카테고리 고유번호 (id) — Int — Primary key — NOT NULL
  • 카테고리 (category) — String
  • 생성일자 (createdAt) — DateTime
  • 수정일자 (updatedAt) — DateTime
  • 게시글 고유번호 (postId) — Int — Foreign key → Post.게시글 고유번호 — NOT NULL

Like

  • 좋아요 고유번호 (id) — Int — Primary key — NOT NULL
  • 게시글 고유번호 (postId) — Int — Foreign key → Post.게시글 고유번호 — NOT NULL
  • 사용자 고유번호 (userId) — Int — Foreign key → Post.사용자 고유번호 — NOT NULL
  • Field (createdAt) — DateTime
  • Field (updatedAt) — DateTime

Post

  • 게시글 고유번호 (id) — Int — Primary key — NOT NULL
  • 사용자 고유번호 (userId) — Int — Foreign key → User.사용자 고유번호 — NOT NULL
  • 종류 (kind) — String
  • 상품명 (title) — String
  • 상세내용 (content) — String
  • 상품 사진 (images) — String
  • 비용 (cost) — Int
  • 단위 시간 (baseTime) — DateTime
  • 생성일자 (createdAt) — DateTime
  • 수정일자 (updatedAt)
  • 카테고리 고유번호 (cagoryId) — Int — Foreign key → Category.카테고리 고유번호 — NOT NULL

Untitled (Comment)

  • Key (id) — Int — Primary key — NOT NULL
  • 게시글 고유번호 (postId) — Int — Foreign key → Post.게시글 고유번호 — NOT NULL
  • 사용자 고유번호 (userId) — Int — Foreign key → Post.사용자 고유번호 — NOT NULL
  • Field (comment) — String
  • Field (createdAt) — DateTime
  • Field (updatedAt) — DateTime

Untitled (Room)

  • Key (id) — Int — Primary key — NOT NULL
  • 사용자 고유번호 (userId) — Int — Foreign key → User.사용자 고유번호 — NOT NULL
  • Field (createdAt) — DateTIme
  • Field (updatedAt) — DateTime

Untitled (Message)

  • Key (id) — Int — Primary key — NOT NULL
  • Key (roomId) — Int — Foreign key → Untitled.Key — NOT NULL
  • 사용자 고유번호 (userId) — Int — Foreign key → Untitled.사용자 고유번호 — NOT NULL
  • Field (createdAt) — DateTime
  • Field (updatedAt) — DateTime

User

  • 사용자 고유번호 (id) — Int — Primary key — NOT NULL
  • 이메일 (email) — String
  • 전화번호 (phoneNumber) — String
  • 사용자 이름 (username) — String
  • 지역 (location) — String
  • 포인트 (point) — Int
  • 쿠폰 (coupon) — Int
  • 생년월일 (birthday) — DateTime
  • 프로필 사진 (avatar) — String
  • 생성일자 (createdAt) — DateTime
  • 수정일자 (updatedAt)