dev

Tables (5)

Menu (Untitled4)

  • 메뉴번호 (id) — Integer(auto increment) — Primary key — NOT NULL
  • 상점번호 (storeId) — uuid — Foreign key → Store.상점번호 — NOT NULL
  • 메뉴명 (menuName) — VARCHAR(100)
  • 가격 (price) — Integer
  • 이미지 Url (imageUrl) — VARCHAR(500) (S3 저장 경로)
  • 생성 날짜 (createdAt) — Datetime
  • 상태 (status)

PostImages (Untitled5)

  • 사진번호 (id) — Integer(auto increment) — Primary key — NOT NULL
  • 이미지 Url (imageUrl) — VARCHAR(500) (S3 저장 경로)
  • 출력 순서 (imageOrder) — Integer
  • 생성 날짜 (createdAt) — DateTime
  • 게시글번호 (postId) — uuid

Posts (Untitled2)

  • 게시글번호 (id) — uuid — Primary key — NOT NULL
  • 회원번호 (userId) — uuid — Foreign key → Users.회원번호 — NOT NULL
  • 제목 (postTitle) — VARCHAR(200)
  • 내용 (postContent) — Text
  • 조회수 (postView) — Integer
  • 생성날짜 (createdAt) — Datetime
  • 업데이트날짜 (updatedAt) — Datetime
  • 게시판 유형 (type) — Enum

Store (Untitled3)

  • 상점번호 (id) — uuid — Primary key — NOT NULL
  • 상점 이름 (brandName) — VARCHAR(50)
  • 월평균 매출액 (monthlyAvgSales) — BIGINT
  • 매장수 (storeCount) — Integer
  • 생성날짜 (createdAt) — Datetime
  • 업데이트날짜 (updatedAt) — Datetime
  • 좋아요 수 (likeCount) — BIGINT
  • 상점 소개 (content) — VARCHAR(1000)

Users (Untitled)

  • 회원번호 (id) — uuid — Primary key — NOT NULL
  • 회원 아이디 (loginId) — VARCHAR(255)
  • 비밀번호 (password) — VARCHAR(255)
  • 닉네임 (nickname) — VARCHAR(50)
  • 가입일 (createdAt) — Datetime
  • 역할 (role) — Enum
  • 어드민여부 (isAdmin) — Boolean