umc-chap1

Tables (12)

Food (선호음식조사)

  • 고유번호 (id) — int — Primary key — NOT NULL
  • 음식이름 (name) — varchar(10)
  • 생성일 (createdAt) — datetime(6)
  • 수정일 (updatedAt) — datetime(6)

Question (1:1 문의)

  • 고유번호 (id) — Primary key — NOT NULL
  • 사용자 고유번호 (memberId) — int — Foreign key → member.고유번호 — NOT NULL
  • 제목 (title) — varchar(30)
  • 내용 (content) — text
  • 이미지 저장 경로 (imageUrl) — text

agree (사용자 동의 여부)

  • 고유번호 (id) — int — Primary key — NOT NULL
  • 사용자 고유번호 (memberId) — int — Foreign key → member.고유번호 — NOT NULL
  • 마케팅알림 (marketingAlert) — boolean
  • 리뷰 답변 알림 (reviewAlert) — boolean
  • 문의 답변 알림 (quesAlert) — boolean
  • 위치 정보 제공 (locateAlert) — boolean

alert (알림)

  • 고유번호 (id) — int — Primary key — NOT NULL
  • 사용자 고유번호 (memberId) — int — Foreign key → member.고유번호 — NOT NULL
  • 생성일 (createdAt) — datetime
  • 수정일 (updatedAt) — datetime(6)

answerAlarm (답변 알림)

  • 고유번호 (id) — Primary key — NOT NULL
  • 알림 고유번호 (alertId) — int — Foreign key → alert.고유번호 — NOT NULL
  • 사용자 고유번호 (memberId) — int — Foreign key → alert.사용자 고유번호 — NOT NULL
  • 제목 (title) — varchar(3)
  • 내용 (content) — text

marketing (마케팅 목적 이벤트 알림)

  • 고유번호 (id) — Primary key — NOT NULL
  • 알림 고유번호 (alertId) — int — Foreign key → alert.고유번호 — NOT NULL
  • 사용자 고유번호 (memberId) — int — Foreign key → alert.사용자 고유번호 — NOT NULL
  • 제목 (title) — varchar(3)
  • 내용 (content) — text

member (사용자)

  • 고유번호 (id) — int — Primary key — NOT NULL
  • 성별 (gender) — bool
  • 생일 (birth) — datetime
  • 주소 (address) — varchar(30)
  • 소셜 계정 (socialType) — enum
  • 소셜 액세스 토큰 (socialId) — varchar(30)
  • 위치정보제공 (locateAgree) — bool
  • 최종 포인트 점수 (point) — int
  • 전화번호 (phoneNum) — varchar(15)
  • 생성일 (createdAt) — datetime(6)
  • 수정일 (updatedAt) — datetime(6)
  • 계정 활성화 여부 (status) — enum
  • 비활성화 상태 날짜 (inactivateDate) — datetime
  • 이메일 (email) — varchar(30)
  • 닉네임 (nickname) — varchar(10)
  • 프로필 사진 저장 경로 (imageUrl) — text

memberFood (사용자의 선호음식)

  • 고유번호 (id) — int — Primary key — NOT NULL
  • 사용자 고유번호 (memberId) — int — Foreign key → member.고유번호 — NOT NULL
  • 음식 고유번호 (foodId) — int — Foreign key → Food.고유번호 — NOT NULL
  • 생성일 (createdAt) — datetime(6)
  • 수정일 (updatedAt)

memberMission (사용자의 미션)

  • Key — int — Primary key — NOT NULL
  • 사용자 고유번호 (memberId) — int — Foreign key → member.고유번호 — NOT NULL
  • 미션 고유번호 (missionId) — int — Foreign key → mission.고유번호 — NOT NULL
  • 가게 고유번호 (storeId) — int — Foreign key → mission.가게 고유번호 — NOT NULL
  • 완료여부 (isSuccess) — boolean
  • 생성일 (createdAt) — datetime(6)
  • 수정일 (updatedAt) — datetime(6)

mission (미션)

  • 고유번호 (id) — int — Primary key — NOT NULL
  • 가게 고유번호 (storeId) — int — Foreign key → store.고유번호 — NOT NULL
  • 포인트 (point) — int
  • 마감일 (dueDate) — datetime
  • 내용 (content) — text
  • 생성일 (createdAt) — datetime(6)
  • 수정일 (updatedAt) — datetime(6)

review (리뷰)

  • 고유번호 (id) — int — Primary key — NOT NULL
  • 점포 고유번호 (storeId) — int — Foreign key → store.고유번호 — NOT NULL
  • 사용자 고유번호 (memberId) — int — Foreign key → member.고유번호 — NOT NULL
  • 별점 (startRate) — int
  • 내용 (content) — text
  • 이미지 저장경로 (imageUrl) — text

store (점포)

  • 고유번호 (id) — int — Primary key — NOT NULL
  • 가게이름 (name) — varchar(30)
  • 업종 카테고리 (category) — enum
  • 주소 (address) — varchar(30)
  • 영업 여부 (status) — bool
  • 이미지 저장 경로 (imageUrl) — text
  • 사장님 구분 번호 (adminNum) — int
  • 생성일 (createdAt) — datetime(6)
  • 수정일 (updatedAt) — datetime(6)
  • 별점 (starRate) — int