ERD_MEALGEN_20201209

Tables (46)

Untitled

    account

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • method — enum('EMAIL', 'KAKAO', 'APPLE') — NOT NULL — 로그인 종류
    • signname — varchar(255) — NOT NULL — 아이디
    • password — varchar(255) — 비밀번호
    • name — varchar(255) — 이름
    • phone — varchar(255) — 전화번호
    • birth — date — 생일
    • gender — enum('M', 'F') — 성별
    • img — varchar(255) — 프로필 이미지
    • push_yn — tinyint(1) — NOT NULL — 푸시알림 동의 여부
    • sms_yn — tinyint(1) — NOT NULL — sms 수신 동의 여부
    • encrypt_loc — text — 주소
    • encrypt_loc_details — text
    • encrypt_lat — text — 위도
    • encrypt_lng — text — 경도
    • status — enum('DUMMY', 'PREPARE', 'READY', 'ACTIVE', 'LEAVE') — NOT NULL — 상태
    • nickname — varchar(255) — nickname
    • roles — text — 권한
    • beta — tinyint(1)
    • sign_in_sns — varchar(255)
    • privacy_yn — tinyint(4)
    • term_yn — tinyint(4)
    • mail_yn — tinyint(4)
    • tos_yn — tinyint(4)
    • deposit_account — text
    • retirement_account — text
    • last_login — datetime(0) — NOT NULL

    account_block

    • blocker_id — int(11) — Foreign key → account.id — NOT NULL — 차단한 유저
    • blocked_id — int(11) — Foreign key → account.id — NOT NULL — 차단당한 유저
    • created_at — datetime(0) — NOT NULL — 등록일
    • INDEX — `account_block_ibfk_2`(`blocked_id`)

    account_device

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • account_id — int(11) — Foreign key → account.id
    • name — varchar(255) — NOT NULL
    • fcm_token — varchar(255)
    • unique_id — varchar(255) — NOT NULL
    • platform — varchar(255)
    • app_name — varchar(255)
    • INDEX — `account_device_ibfk_1`(`account_id`)

    account_follow

    • follower_id — int(11) — Foreign key → account.id — NOT NULL — 팔로우한 유저 ID
    • followed_id — int(11) — Foreign key → account.id — NOT NULL — 팔로우된 유저 ID
    • created_at — datetime(0) — NOT NULL — 등록일
    • INDEX — `account_follow_ibfk_2`(`followed_id`)

    account_menu

    • menu_id — int(11) — Foreign key → menu.id — NOT NULL — 메뉴 ID
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 유저 ID
    • restaurant_id — int(11) — Foreign key → restaurant.id — NOT NULL
    • type — enum('LIKE', 'WISH', 'IGNOR', 'RATE') — NOT NULL — 메뉴-유저 관계 타입
    • rating — double — 별점
    • created_at — datetime(0) — NOT NULL — 등록일
    • INDEX — `account_id`(`account_id`)
    • INDEX — `account_menu_ibfk_3`(`restaurant_id`)
    • INDEX — `account_menu_ibfk_1`(`menu_id`)
    • INDEX — `account_menu_ix1`(`account_id`, `menu_id`)
    • INDEX — `account_menu_ix2`(`account_id`, `restaurant_id`)

    account_predict

    • account_id — int(11)
    • menu_id — int(11)
    • restaurant_id — int(11)
    • rating — double

    account_restaurant

    • restaurant_id — int(11) — Foreign key → restaurant.id — NOT NULL — 찜한 식당 ID
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 찜한 유저 ID
    • created_at — datetime(0) — NOT NULL — 등록일
    • INDEX — `ar_ix1`(`account_id`, `restaurant_id`)

    account_search

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • account_id — int(11) — Foreign key → account.id
    • keyword — varchar(255) — NOT NULL — 검색어
    • INDEX — `account_search_ibfk_1`(`account_id`)

    account_tag

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 검색한 유저 ID
    • tag_id — int(11) — NOT NULL — 태그 ID
    • INDEX — `account_id`(`account_id`)
    • INDEX — `tag_id`(`tag_id`)

    adjustment

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • restaurant_id — int(11) — Foreign key → restaurant.id — NOT NULL — 식당 ID
    • deposit_date — datetime(0) — 입금일
    • state — enum('SCHEDULED', 'COMPLETE', 'FEBRUARY') — NOT NULL — 정산 상태
    • service — varchar(255) — 이용서비스
    • transaction_amount — int(11) — NOT NULL — 거래금액
    • deposit_amount — int(11) — NOT NULL — 입금금액
    • order_amount — int(11) — NOT NULL — 주문금액
    • adjust_amount — int(11) — NOT NULL — 조정금액
    • delivery_fee — int(11) — 배달팁
    • payment_fee — int(11) — 카드 및 결제 수수료
    • INDEX — `restaurant_id`(`restaurant_id`)

    attach_file

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • server_path — varchar(255) — NOT NULL — 서버 경로
    • file_name — varchar(255) — NOT NULL — 파일명
    • extension — varchar(20) — NOT NULL — 확장자
    • content_type — varchar(250) — NOT NULL — 확장자
    • size — int(11) — NOT NULL — 파일사이즈
    • sha — varchar(250) — NOT NULL — SHA
    • md5 — varchar(250) — NOT NULL — MD5
    • INDEX — `ix_attach_file_1`(`sha`(191))
    • INDEX — `ix_attach_file_2`(`md5`(191))

    attach_file_usage

    • post_type — varchar(60) — Primary key — NOT NULL — 업로드 된 테이블
    • post_id — int(11) — Primary key — NOT NULL — 업로드 된 아이디
    • file_id — int(11) — Foreign key → attach_file.id — NOT NULL — 파일 아이디
    • created_at — datetime(0) — NOT NULL — 등록일
    • INDEX — `file_id`(`file_id`)

    category

    • id — int(11) — Primary key — NOT NULL — 고유키
    • name — varchar(255) — NOT NULL — 카테고리 이름
    • image — int(11)
    • visible_yn — tinyint(1) — NOT NULL — 카테고리 노출 여부
    • active — tinyint(1) — NOT NULL — 카테고리 사용 여부
    • order — int(11) — 순서
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일

    collection

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 컬렉션 생성한 유저 ID
    • title — varchar(255) — NOT NULL — 컬렉션 제목
    • content — text — NOT NULL — 컬렉션 설명
    • img — varchar(255) — 컬렉션 이미지
    • INDEX — `collection_ibfk_1`(`account_id`)

    collection_comment

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • collection_id — int(11) — Foreign key → collection.id — NOT NULL — 컬렉션 ID
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 댓글 작성자 ID
    • content — text — NOT NULL — 댓글 내용
    • INDEX — `collection_comment_ibfk_1`(`collection_id`)
    • INDEX — `collection_comment_ibfk_2`(`account_id`)

    collection_comment_like

    • collection_comment_id — int(11) — Foreign key → collection_comment.id — NOT NULL — 좋아요 관련 컬렉션 ID
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 좋아요한 유저 ID
    • created_at — datetime(0) — NOT NULL — 등록일
    • collection_id — int(11) — Foreign key → collection.id — NOT NULL — 좋아요 관련 컬렉션 ID
    • INDEX — `collection_comment_like_ibfk_3`(`account_id`)
    • INDEX — `collection_comment_like_ibfk_1`(`collection_id`)

    collection_like

    • collection_id — int(11) — Foreign key → collection.id — NOT NULL — 좋아요한 컬렉션 ID
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 좋아요한 유저 ID
    • created_at — datetime(0) — NOT NULL — 등록일
    • INDEX — `collection_like_ibfk_2`(`account_id`)

    collection_menu

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • collection_id — int(11) — Foreign key → collection.id — NOT NULL — 컬렉션 ID
    • menu_id — int(11) — Foreign key → menu.id — NOT NULL — 메뉴 ID
    • order — int(11) — NOT NULL — 메뉴 정렬 순서
    • INDEX — `menu_id`(`menu_id`)
    • INDEX — `collection_menu_ibfk_1`(`collection_id`)

    config

    • key — varchar(80) — Primary key — NOT NULL
    • value — varchar(255) — NOT NULL

    event

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • title — varchar(255) — NOT NULL — 이벤트 제목
    • img — int(11) — NOT NULL — 이벤트 배너 이미지
    • pinned_yn — tinyint(1) — NOT NULL — 상단고정 여부
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 작성자 ID
    • visible_yn — tinyint(1) — NOT NULL — 노출 여부
    • start_at — datetime(0) — NOT NULL — 이벤트 시작일시
    • end_at — datetime(0) — NOT NULL — 이벤트 종료일시
    • order — int(11) — NOT NULL — 정렬 순서
    • url — varchar(255) — 내용
    • main_img — int(11) — NOT NULL — 이벤트 배너 이미지
    • INDEX — `writer_id`(`account_id`)

    faq

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • title — varchar(255) — NOT NULL — faq 제목
    • content — text — NOT NULL — faq 내용
    • pinned_yn — tinyint(1) — NOT NULL — 상단고정 여부
    • visible_yn — tinyint(1) — NOT NULL — 노출 여부
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 작성자 ID
    • order — int(11) — NOT NULL — 정렬 순서
    • INDEX — `writer_id`(`account_id`)

    group_message

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • group_room_id — int(11) — Foreign key → group_room.id — NOT NULL — 방 ID
    • account_id — int(11) — Foreign key → account.id — 유저 ID
    • message — text — 메세지
    • INDEX — `group_message_ibfk_1`(`group_room_id`)
    • INDEX — `group_message_ibfk_2`(`account_id`)

    group_room

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • title — varchar(255) — 방이름 기본
    • imgs — text — 메뉴 이미지들
    • last_message — varchar(255) — 마지막 메세지
    • last_message_at — datetime(0) — 마지막 메세지 시간

    group_user

    • group_id — int(11) — Foreign key → group_room.id — NOT NULL
    • account_id — int(11) — Foreign key → account.id — NOT NULL
    • created_at — datetime(0) — NOT NULL — 등록일
    • title — varchar(255) — 방이름
    • star_yn — tinyint(1) — 즐찾여부
    • hide_at — datetime(0) — 이 시각 이전 추천메세지 가림
    • last_view_at — datetime(0)
    • unread — int(11) — NOT NULL
    • INDEX — `group_user_ibfk_2`(`account_id`)

    keyword_daily

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • tag_id — int(11) — 태그 ID
    • comment — varchar(255) — 태그에 대한 코멘트
    • show_main — tinyint(3) — NOT NULL
    • show_menu — tinyint(3) — NOT NULL
    • show_restaurant — tinyint(3) — NOT NULL
    • show_search — tinyint(3) — NOT NULL

    menu

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • restaurant_id — int(11) — Foreign key → restaurant.id — NOT NULL — 식당 ID
    • category_id — int(11) — Foreign key → category.id — 카테고리 ID
    • group_id — int(11) — NOT NULL — 메뉴 그룹 ID
    • name — varchar(255) — 메뉴 이름
    • description — text — 메뉴 설명
    • imgs — text — 메뉴 이미지들
    • price — int(11) — 메뉴 가격
    • type — varchar(255) — 메뉴 종류
    • sale_price — int(11) — 행사 가격
    • sale_where — varchar(255) — 할인 조건
    • visible_yn — tinyint(1) — NOT NULL — 표시 여부
    • sort_value — double(10, 5) — NOT NULL — 정렬 값관련
    • sort_rand — int(4) — NOT NULL — 랜덤정렬 값 관련
    • recomm_yn — tinyint(1) — NOT NULL — 추천 여부
    • point_size — int(10) — NOT NULL — 평가 갯수
    • review_size — int(10) — NOT NULL — 리뷰 갯수
    • avg — double(10, 5) — NOT NULL — 평균 평점
    • main_yn — tinyint(4) — NOT NULL
    • class_id — int(11)
    • sold_out_yn — tinyint(4) — 품절 여부
    • sort_index — int(11) — 정렬 순서
    • delivery_yn — tinyint(4) — 배달가능여부
    • takeout_yn — tinyint(4) — 포장가능 여부
    • popular_yn — tinyint(4) — 인기메뉴 여부
    • set_yn — tinyint(4)
    • INDEX — `restaurant_id`(`restaurant_id`)
    • INDEX — `category_id`(`category_id`)
    • INDEX — `group_id`(`group_id`)
    • INDEX — `ix_sortvalue`(`sort_value`)
    • INDEX — `ix_sortrand`(`sort_rand`)
    • INDEX — `ix_avg`(`avg`)
    • INDEX — `ix_sort_posts`(`review_size`, `point_size`)
    • INDEX — `ix_sort_values`(`sort_value`, `sort_rand`)
    • INDEX — `ix_menu_1`(`id`, `group_id`)
    • INDEX — `ix_menu_2`(`avg`, `sort_value`)
    • INDEX — `ix_menu_3`(`visible_yn`, `recomm_yn`, `restaurant_id`, `name`(191)
    • group_id) — USING

    menu_class

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • restaurant_id — int(11) — NOT NULL — 식당 ID
    • name — varchar(255) — NOT NULL — 메뉴 클래스명

    menu_name

    • menu_id — int(11) — Foreign key → order.id — NOT NULL
    • menuId — int(11) — Foreign key → menu.id — NOT NULL
    • createdAt — datetime(0) — NOT NULL
    • updatedAt — datetime(0) — NOT NULL
    • INDEX — `menuId`(`menuId`)

    menu_option

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • name — varchar(50) — NOT NULL — 메뉴 옵션명
    • items — text — NOT NULL — 옵션관련 데이터
    • is_required — tinyint(1) — NOT NULL — 필수옵션
    • is_multiple — tinyint(1) — NOT NULL — 중복 선택가능
    • multiple_size — int(11) — NOT NULL
    • menu_id — int(11) — NOT NULL
    • sold_out_yn — tinyint(4)

    menu_patch

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • name — varchar(255) — 패치명
    • sort_index — int(11) — 정렬 순서
    • menu_id — int(11) — Foreign key → menu.id
    • restaurant_id — int(11) — Foreign key → restaurant.id
    • INDEX — `menu_id`(`menu_id`)
    • INDEX — `restaurant_id`(`restaurant_id`)

    menu_tag

    • tag_id — int(11) — Primary key — NOT NULL
    • menu_id — int(11) — Foreign key → menu.id — NOT NULL
    • created_at — datetime(0) — NOT NULL — 등록일
    • INDEX — `tag_id`(`tag_id`)

    notice

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • title — varchar(255) — NOT NULL — 공지사항 제목
    • content — text — NOT NULL — 공지사항 내용
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 작성자 ID
    • pinned_yn — tinyint(1) — NOT NULL — 상단고정 여부
    • visible_yn — tinyint(1) — NOT NULL — 노출 여부
    • order — int(11) — NOT NULL — 정렬 순서
    • category — varchar(255) — NOT NULL — 공지사항 구분
    • INDEX — `writer_id`(`account_id`)

    notification

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • account_id — int(11) — 회원 FK
    • message — varchar(500) — 푸시 메세지
    • data — text — 푸시 당시 데이터
    • flag — enum('FOLLOW', 'NOTIFY')
    • img — int(11)

    order

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • restaurant_id — int(11) — Foreign key → restaurant.id — NOT NULL — 식당 ID
    • type — varchar(255) — NOT NULL — 주문 구분
    • method — varchar(255) — NOT NULL — 주문 매체
    • order_status — varchar(255) — NOT NULL — 주문 상태
    • order_reject_reason — varchar(255) — 주문 거부사유
    • order_cancel_reason — varchar(255)
    • order_amount — int(11) — NOT NULL — 총 주문 합계
    • discount_amount — int(11) — NOT NULL — 총 할인 금액
    • delivery_fee — int(11) — NOT NULL — 배달비
    • total_amount — int(11) — NOT NULL — 최종 결제 금액
    • cust_id — int(11) — Foreign key → account.id — NOT NULL — 주문자 ID
    • cust_name — varchar(255) — NOT NULL — 주문자 실명
    • cust_phone_number — varchar(255) — NOT NULL — 주문자 핸드폰 번호
    • land_address — varchar(255) — 지번 주소
    • land_address_detail — varchar(255) — 지번 주소 상세
    • road_address — varchar(255) — 도로명 주소
    • road_address_detail — varchar(255) — 도로명 주소 상세
    • cust_message_to_store — varchar(255) — 식당 요청메세지
    • cust_message_to_deliver — varchar(255) — 배달 요청메세지
    • is_prepaid — tinyint(1) — NOT NULL — 선후불 ID
    • pay_type — varchar(255) — NOT NULL — 결제 구분
    • pay_state — varchar(255) — NOT NULL — 결제 상태
    • receipt — varchar(255) — NOT NULL — 영수증
    • order_title — varchar(255) — NOT NULL — 메뉴 ID
    • order_items — text — NOT NULL
    • order_no — varchar(255) — NOT NULL
    • delivery_estimated_time — datetime(0)
    • packing_estimated_time — datetime(0)
    • reserve_yn — tinyint(4)
    • reserve_time — int(11)
    • pay_result — text
    • receipt_no — int(11)
    • INDEX — `restaurant_id`(`restaurant_id`)
    • INDEX — `cust_id`(`cust_id`)

    order_menus

    • order_id — int(11) — Foreign key → order.id — NOT NULL — 주문 ID
    • menu_id — int(11) — Foreign key → menu.id — NOT NULL — 메뉴 ID
    • menu_name — varchar(255) — NOT NULL — 메뉴명
    • INDEX — `menu_id`(`menu_id`)

    report

    • id — int(11) — Primary key — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 등록일
    • updated_at — datetime(0) — NOT NULL — 수정일
    • type — enum('REVIEW', 'REVIEW_COMMENT '신고 타입',' 'COLLECTION', 'COLLECTION_COMMENT '리뷰ID / 댓글 ID / 컬렉션 ID',') — NOT NULL — 신고 타입',' 'COLLECTION', 'COLLECTION_COMMENT '리뷰ID / 댓글 ID / 컬렉션 ID',') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci…
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 신고 사유
    • reason_type — enum('AD', 'IMPROPER') — NOT NULL — 신고 내용
    • content — text — NOT NULL — 고유키
    • INDEX — `report_ibfk_1`(`account_id`)

    restaurant

    • id — int(11) — Primary key — NOT NULL — 등록일
    • created_at — datetime(0) — NOT NULL — 수정일
    • updated_at — datetime(0) — NOT NULL — 카테고리 ID
    • category_id — int(11) — Foreign key → category.id — 식당 이름
    • name — varchar(255) — 식당 설명
    • description — text — 원산지 설명
    • description_origin — text — 메인 메뉴 이름
    • menu_main — varchar(255) — 식당 이미지
    • imgs — text — 식당 전화번호
    • tel — varchar(255) — 식당 위치
    • address — varchar(255) — 프랜차이즈 여부
    • franchise_yn — tinyint(1) — 주차가능 여부
    • parking_yn — tinyint(1) — 예약가능 여부
    • booking_yn — tinyint(1) — 배달가능 여부
    • delivery_yn — tinyint(1) — 배달 소요 시간
    • delivery_time — int(11) — 배달비
    • delivery_cost — int(11) — 위도
    • lat — double — 경도
    • lng — double — 주중 오픈시간
    • weekday_open_at — time(0) — 주중 마감시간
    • weekday_close_at — time(0) — 주말 오픈시간
    • weekend_open_at — time(0) — 주말 마감시간
    • weekend_close_at — time(0) — 쉬는시간
    • breaktime — varchar(255) — 대표명
    • business_ceo — varchar(255) — 사업자명
    • business_name — varchar(255) — 사업자주소
    • business_address — varchar(255) — 사업자번호
    • business_number — varchar(20) — 최소주문금액
    • min_order_price — int(11) — 추가정보
    • extra_info — text — 부가정보(리스트)
    • extra_list — text — 결제수단
    • pay_type — varchar(255) — 표시 여부
    • visible_yn — tinyint(1) — 플래그
    • flag — enum('READY', 'ACTIVE', 'UNKNOWN') — 사이트종류
    • sitetype — varchar(255) — 지역코드
    • postcode — varchar(255) — 우편번호
    • zipcode — varchar(10) — 평균평점
    • sort_value — double(20, 10)
    • avg — double(10, 5) — NOT NULL — 고유키
    • recomm_yn — tinyint(1) — NOT NULL
    • manager_id — int(11)
    • run_state — varchar(50)
    • open_state — varchar(50)
    • holiday_type — varchar(50)
    • delivery_open_time — time(0)
    • delivery_close_time — time(0)
    • delivery_range — longtext
    • delivery_minprice — int(20)
    • holiday_week — int(11)
    • holiday_day — int(11)
    • public_holiday — varchar(50)
    • takeout_yn — tinyint(4)
    • store_order_yn — tinyint(4)
    • takeout_start_time — datetime(0)
    • takeout_end_time — datetime(0)
    • store_pos — varchar(255)
    • logo_img — int(11)
    • receipt_no — int(11)
    • daligo_no — varchar(255)
    • run_notice — varchar(255)
    • … +8

    restaurant_category

    • restaurant_id — int(10) — Primary key — NOT NULL
    • category_id — int(10) — Primary key — NOT NULL
    • sort_index — int(10)

    restaurant_time

    • restaurant_id — int(10) — Primary key — NOT NULL
    • week — int(10) — Primary key — NOT NULL
    • created_at — datetime(0) — NOT NULL
    • updated_at — datetime(0) — NOT NULL
    • operating_start — datetime(0)
    • operating_end — datetime(0)
    • break_start — datetime(0)
    • break_end — datetime(0)
    • deadline — datetime(0)

    review

    • id — int(11) — Primary key — NOT NULL — 등록일
    • created_at — datetime(0) — NOT NULL — 수정일
    • updated_at — datetime(0) — NOT NULL — 레스토랑 ID
    • restaurant_id — int(11) — Foreign key → restaurant.id — 메뉴 ID
    • menu_id — int(11) — Foreign key → menu.id — NOT NULL — 작성자 ID
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 리뷰 타입
    • order_id — int(11) — Foreign key → order.id
    • type — enum('RATING', 'REVIEW', 'EXPECT') — NOT NULL — 별점
    • star — int(11) — 리뷰 내용
    • content — text — 표시 여부
    • visible_yn — tinyint(1) — NOT NULL — 고유키
    • INDEX — `restaurant_id`(`restaurant_id`)
    • INDEX — `menu_id`(`menu_id`)
    • INDEX — `review_ibfk_3`(`account_id`)
    • INDEX — `review_fk_order`(`order_id`)

    review_comment

    • id — int(11) — Primary key — NOT NULL — 등록일
    • created_at — datetime(0) — NOT NULL — 수정일
    • updated_at — datetime(0) — NOT NULL — 댓글단 리뷰 ID
    • review_id — int(11) — Foreign key → review.id — NOT NULL — 작성자 ID
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 댓글 내용
    • content — text — NOT NULL — 등록일
    • INDEX — `review_comment_ibfk_1`(`review_id`)
    • INDEX — `review_comment_ibfk_2`(`account_id`)

    review_comment_like

    • review_comment_id — int(11) — Foreign key → review_comment.id — NOT NULL — 좋아요한 유저 ID
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 등록일
    • created_at — datetime(0) — NOT NULL — 좋아요 관련 리뷰 ID
    • review_id — int(11) — Foreign key → review.id — NOT NULL — 좋아요 관련 리뷰 댓글 ID
    • INDEX — `review_comment_like_ibfk_1`(`review_id`)
    • INDEX — `review_comment_like_ibfk_3`(`account_id`)

    review_like

    • review_id — int(11) — Foreign key → review.id — NOT NULL — 좋아요한 유저 ID
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 고유키
    • created_at — datetime(0) — NOT NULL — 좋아요한 리뷰 ID
    • INDEX — `review_like_ibfk_2`(`account_id`)

    search_location

    • id — int(11) — Primary key — NOT NULL — 등록일
    • created_at — datetime(0) — NOT NULL — 수정일
    • updated_at — datetime(0) — NOT NULL — 유저 아이디
    • account_id — int(11) — Foreign key → account.id — NOT NULL — 지번주소
    • location — varchar(255) — 도로명주소
    • location_road — varchar(255) — 고유키
    • INDEX — `account_id`(`account_id`)

    sms

    • id — int(11) — NOT NULL — 등록일
    • created_at — datetime(0) — NOT NULL — 전화번호
    • phone — varchar(255) — NOT NULL — 인증코드
    • code — varchar(50) — NOT NULL — 인증한 여부
    • used — tinyint(1) — NOT NULL — 제한일
    • limit — datetime(0) — NOT NULL