CatchNow
Tables (24)
blacklist (스토어 고객 블랙리스트)
- index (인덱스) — serial — Primary key — NOT NULL
- customer_index (사용자 인덱스) — integer — Foreign key → user_customer.index — NOT NULL
- store_index (스토어 인덱스) — integer — Foreign key → store.index — NOT NULL
- created_at (등록일) — timestamp with time zone, not null, default current_timestamp
bookmark_location (위치 북마크)
- index (위치 인덱스) — serial — Primary key — NOT NULL
- customer_index (고객 인덱스) — integer — Foreign key → user_customer.index — NOT NULL
- alias (별칭) — varchar(20), not null
- address_number (우편번호) — varchar(10), not null
- detail_address (세부 주소) — text
- position_x (x좌표) — numeric, not null
- position_y (y좌표) — numeric, not null
- created_at (생성 일자 (추가한 시간)) — timestamp with time zone, not null, default current_timestamp
- district_index (행정구역 인덱스) — integer, not null — Foreign key → district.index — NOT NULL
bookmark_store (스토어 북마크)
- index (스토어 북마크 인덱스) — serial — Primary key — NOT NULL
- customer_index (고객 유저 인덱스) — integer — Foreign key → user_customer.index — NOT NULL
- store_index (스토어 인덱스) — integer — Foreign key → store.index — NOT NULL
- created_at (생성 일자 (추가한 시간)) — timestamp with time zone, not null, default current_timestamp
category (카테고리)
- index (카테고리 인덱스) — serial — Primary key — NOT NULL
- name (카테고리 이름) — varchar(10), not null
- ((hair, nail, waxing, skin))
district (행정구역(시/도/구))
- index (행정구역 인덱스) — serial — Primary key — NOT NULL
- si_do (시/도) — varchar(20)
- si_gun_gu (시군구) — varchar(20)
- code (행정번호 코드 (행정동 기준)) — varchar(5), not null
- is_open (지역 오픈 여부) — boolean, not null, default false
entrepreneur_info (캐치나우 사업자 정보)
- index (인덱스) — serial — Primary key — NOT NULL
- company_name (상호) — varchar(30)
- ceo (대표이사) — varchar(20)
- address (주소) — varchar(100)
- business_registration_number (사업자등록번호) — varchar(10)
- mail_order_business_report_number (통신판매업신고번호) — varchar(30)
- personal_info_management (개인정보관리책임자) — varchar(20)
- customer_service_email (고객센터 이메일) — varchar(30)
- ceo_phone_number (대표번호) — varchar(20)
file_bank_copy (통장사본 파일)
- index (통장사본 인덱스) — serial — Primary key — NOT NULL
- store_index (스토어 인덱스) — integer, not null — Foreign key → store.index — NOT NULL
- file_path (파일 경로) — varchar(255), not null
- created_at (생성 일자) — timestamp with time zone, not null, default current_timestamp
file_business_registration (사업자등록증 파일)
- index (파일 인덱스) — serial — Primary key — NOT NULL
- store_index (스토어 인덱스) — integer, not null — Foreign key → store.index — NOT NULL
- file_path (파일 경로) — varchar(255), not null
- created_at (생성 일자) — timestamp with time zone, not null, default current_timestamp
file_product_image (핫딜 이미지 파일)
- index (핫딜 이미지 인덱스) — serial — Primary key — NOT NULL
- product_index (핫딜 인덱스) — integer — Foreign key → product.index — NOT NULL
- file_path (파일 경로) — varchar(255), not null
- is_main_image (대표 이미지 여부) — boolean, not null, default = false
- created_at (생성 일자) — timestamp with time zone, not null, default current_timestamp
file_product_template_image (핫딜 템플릿 이미지 파일)
- index (파일 인덱스) — serial — Primary key — NOT NULL
- product_template_index (핫딜 템플릿 인덱스) — integer — Foreign key → product_template.index — NOT NULL
- file_path (파일 경로) — varchar(255), not null
- is_main_image (대표 이미지 여부) — boolean, not null, default = false
- created_at (생성 일자) — timestamp with time zone, not null, default current_timestamp
file_store_image (스토어 사진 파일)
- index (스토어 사진 인덱스) — serial — Primary key — NOT NULL
- store_index (스토어 인덱스) — integer, not null — Foreign key → store.index — NOT NULL
- file_path (파일 경로) — varchar(255), not null
- is_main_image (대표 이미지 여부) — boolean, not null, default = false
- created_at (생성 일자) — timestamp with time zone, not null, default current_timestamp
inapp_alert (앱 내 알림)
- index (알림 인덱스) — serial — Primary key — NOT NULL
- admin_index (작성 관리자 인덱스) — integer — Foreign key → user_admin.index — NOT NULL
- type_customer (고객 분류) — varchar(10), not null
- type_alert (알림 종류) — smallint, not null
- ((1 : 광고/ 마케팅, 2: 입점 안내, 3: 핫딜 안내))
- description (내용) — text
- created_at (생성 일자) — timestamp with time zone, not null, default current_timestamp
local_open_request (지역 오픈 요청 테이블)
- index (요청 인덱스) — serial — Primary key — NOT NULL
- category_index (카테고리 인덱스) — integer — Foreign key → category.index — NOT NULL
- district_index (행정구역 인덱스) — integer — Foreign key → district.index — NOT NULL
- created_at (요청 시각) — timestamp with time zone, not null, default current_timestamp
- customer_index (고객 인덱스) — integer — Foreign key → user_customer.index — NOT NULL
- is_canceled (취소 여부) — boolean, not null, default = false
notice_customer (사용자 공지사항)
- index (공지사항 인덱스) — serial — Primary key — NOT NULL
- admin_index (작성 관리자 인덱스) — integer — Foreign key → user_admin.index — NOT NULL
- title (제목 (128자 제한)) — varchar(384), not null
- url (링크) — text, not null
- created_at (작성 날짜) — timestamp with time zone, not null, default current_timestamp
notice_entrepreneur (사업가 공지사항)
- index (공지사항 인덱스) — serial — Primary key — NOT NULL
- admin_index (직성 관리자 인덱스) — integer — Foreign key → user_admin.index — NOT NULL
- title (제목 (128자 제한)) — varchar(384), not null
- url (링크) — text, not null
- created_at (작성 날짜) — timestamp with time zone, not null, default current_timestamp
policy (정책)
- term (이용 약관) — text
- personal_info (개인정보 처리 방침 내용) — text
- payment_refund (결제 및 환불 정책) — text
product (상품(핫딜))
- index (핫딜 인덱스) — serial — Primary key — NOT NULL
- category_index (카테고리 인덱스) — integer — Foreign key → category.index — NOT NULL
- store_index (스토어 인덱스) — integer — Foreign key → store.index — NOT NULL
- name (상품명) — varchar(50), not null
- price (상품 금액) — integer, not null
- available_time_start (이용 가능 시작 시간) — time
- available_time_end (이용 가능 마감 시간) — time
- average_close_time ((※ 삭제 예정) 평균 마감 시간 (분 단위)) — integer
- created_at (상품 등록 일시) — timestamp with time zone, not null, default current_timestamp
- status (상품 상태) — varchar(10), not null, default = 'on_sale'
- ((on_sale, sold_out, cancel, refund)) — (판매중, 판매완료, 예약취소, 판매취소, 환불)
- (-) — 예약 취소 = 환불임을 고려하여 추후 환불을 제거
- end_at (상품 마감 일시) — timestamp with time zone
- ((예약 혹은 사업자의 취소 등으로 마감된 일시))
- service_description (서비스 내용) — text, not null
- customer_index (예약 고객 인덱스) — integer — Foreign key → user_customer.index — NOT NULL
- reserved_at (예약 결제 날짜) — timestamp with time zone
- deposit (예약 금액) — integer, default = 10000
- payment_method (결제 방법) — varchar(20)
- color ((※ 삭제 예정) 색상) — varchar(10)
- payment_key (tosspayments 결제 상품 key) — varchar(100)
- order_id (tosspayments 주문번호) — varchar(30)
product_template (스토어 핫딜 템플릿)
- index (템플릿 인덱스) — serial — Primary key — NOT NULL
- store_index (스토어 인덱스) — integer — Foreign key → store.index — NOT NULL
- category_index (카테고리 인덱스) — integer — Foreign key → category.index — NOT NULL
- name (상품명) — varchar(50), not null
- available_time_start (이용 가능 시작 시간) — time
- available_time_end (이용 가능 마감 시간) — time
- service_description (서비스 내용) — text, not null
- price (상품 금액) — integer, not null
- color (템플릿 색상 (※ 미정)) — varchar(10)
- created_at (생성 일자) — timestamp with time zone, not null, default current_timestamp
store (상점)
- index (스토어 인덱스) — serial — Primary key — NOT NULL
- category_index (카테고리 인덱스) — integer — Foreign key → category.index — NOT NULL
- entrepreneur_index (비즈오너 사업자 인덱스) — integer — Foreign key → user_entrepreneur.index — NOT NULL
- store_name (상점명) — varchar(30), not null
- represent_name (대표자명) — varchar(20), not null
- cellphone_number (휴대전화 번호 (XXX-XXXX-XXXX)) — varchar(20), not null
- store_phone_number (스토어 전화번호 (XXX-XXXX-XXXX)) — varchar(20), not null
- district_index (행정구역 인덱스) — integer, not null — Foreign key → district.index — NOT NULL
- address_number (우편 번호) — varchar(10), not null
- detail_address (상세주소) — text
- visit_path (오시는 길 (요약 주소)) — text
- parkable (주차 가능 여부) — boolean, default = false
- open_hour (운영 시작 시간) — time
- close_hour (운영 종료 시간) — time
- business_registration_number (사업자등록번호) — varchar(10)
- entry_status (입점 상태) — varchar(30), not null
- ((complete, wait_approval, wait_open_local,) — (정상, 승인대기중, 지역오픈 대기중,
- (rejected, forbidden)) — 승인거절, 이용정지)
- bank_name (은행명) — varchar(20)
- settlement_account (정산 계좌) — varchar(20)
- account_holder (예금주) — varchar(20)
- is_deleted (삭제여부) — boolean, default = false
- settlement_status ((삭제예정) 정산 상태 (before, complete)) — varchar(10), not null, default = before
- fee_rate (수수료율 (※미정)) — smallint
- created_at (상점 생성 일자) — timestamp with time zone, not null, default current_timestamp
- position_x (x좌표 (경도)) — numeric, not null
- position_y (y좌표 (위도)) — numeric, not null
store_business_manager (스토어 비즈매니저)
- index (스토어 비즈 매니저 인덱스) — serial — Primary key — NOT NULL
- store_index (스토어 인덱스) — integer — Foreign key → store.index — NOT NULL
- entrepreneur_index (비즈매니저 사업자 인덱스) — integer — Foreign key → user_entrepreneur.index — NOT NULL
- status (비즈 매니저 상태) — varchar(10), not null
- ((wait, approval, rejected)) — (대기, 승인, 반려)
- created_at (임명 일자) — timestamp with time zone, not null, default current_timestamp
store_monthly_settlement (스토어 월별 정산)
- index (정산 인덱스) — serial — Primary key — NOT NULL
- store_index (스토어 인덱스) — integer — Foreign key → store.index — NOT NULL
- year (년도) — integer, not null
- month (월 (1~12)) — integer, not null
- total_deposit (예약금 합계) — integer, not null
- fee (수수료 (※ 미정)) — integer, not null
- created_at (생성 일자) — timestamp with time zone, not null, default current_timestamp
user_admin (관리자 유저)
- index (관리자 인덱스) — serial — Primary key — NOT NULL
- id (아이디) — varchar(50), not null
- pw (비밀번호) — varchar(255), not null
- created_at (생성 일자) — timestamp with time zone, not null, default current_timestamp
user_customer (고객 유저)
- index (유저 인덱스) — serial — Primary key — NOT NULL
- name (유저 이름) — varchar(20), not null
- phone_number (전화번호 (XXX-XXXX-XXXX)) — varchar(20), not null
- platform (로그인 플랫폼) — varchar(20), not null
- ((phone, kakao, apple))
- sns_identifier (소셜로그인 식별자) — varchar(100)
- sns_account (소셜로그인 계정) — varchar(100)
- certification (본인 인증 여부) — boolean, not null, default = false
- left_status (회원 탈퇴 상태) — varchar(20), not null, default = 'none'
- ((none, withdrawal, deleted))
- created_at (계정 생성일 (가입일자)) — timestamp with time zone, not null, default current_timestamp
- admin_memo (관리자 메모) — text
- customer_key (토스페이먼츠 고객 키) — varchar(30)
- device_token (푸시 알림 토큰) — varchar(200)
user_entrepreneur (사업자 유저)
- index (사업자 유저 인덱스) — serial — Primary key — NOT NULL
- name (사업자 유저 이름) — varchar(20), not null
- phone_number (전화번호 (XXX-XXXX-XXXX)) — varchar(20), not null
- platform (로그인 플랫폼) — varchar(20), not null
- ((phone, kakao, apple))
- sns_identifier (소셜로그인 식별자) — varchar(100)
- certification (본인 인증 여부) — boolean, not null, default = false
- left_status (회원 탈퇴 상태) — varchar(20), not null, default = 'none'
- ((none, withdrawal, deleted))
- created_at (계정 생성일 (가입일자)) — timestamp with time zone, not null, default current_timestamp
- email (이메일 (※확정 안됨)) — varchar(50)
- admin_memo (관리자 메모) — text
- device_token (푸시 토큰) — varchar(200)