앱 전환
테이블 (37)
고객 (Customer)
- 고객 번호 (id) — Integer — 기본 키 — NOT NULL
- 고유 번호 (base64_uuid) — String(11) — NOT NULL
- 다지점샵 번호 (master_shop_id) — Integer — 외래 키 → 마스터샵.다지점샵 번호
- 샵 번호 (shop_id) — String(32) — 외래 키 → 샵.샵 번호 — NOT NULL
- 이름 (name) — String(20) — NOT NULL
- 전화번호 (phone_number) — String(20) — NOT NULL
- 메모 (remark) — String(300)
- 방문 수 (visited_count) — Integer — NOT NULL
- 노쇼 수 (absent_count) — Integer — NOT NULL
- 취소 수 (cancelled_count) — Integer — NOT NULL
- 회원권 금액 (membership_amount) — Integer — NOT NULL
- 회원권 만료일 (membership_expired_date) — Date
근무 변경 사항 (ScheduleOverride)
- 시작 날짜 (day_start) — Date — 기본 키 — NOT NULL
- 종료 날짜 (day_end) — 기본 키 — NOT NULL
- 디자이너 번호 (designer_id) — Integer — 외래 키 → 디자이너.디자이너 번호 — NOT NULL
- 근무 시작 (work_start) — Integer
- 근무 시작 (work_end) — Integer
- 휴게 시작 (break_start) — Integer
- 휴게 종료 (break_end) — Integer
디자이너 (Designer)
- 디자이너 번호 (id) — Integer — 기본 키 — NOT NULL
- 고유 번호 (base64_uuid) — String(11) — NOT NULL
- 샵 번호 (shop_id) — Integer — 외래 키 → 샵.샵 번호 — NOT NULL — Index
- 닉네임 (nickname) — String(20) — NOT NULL
- Field (description) — String(100) — NOT NULL
- 고유 색상 (color) — String(20) — NOT NULL
- 순서 (order) — Integer — NOT NULL
- Field2 (layoff) — Boolean — NOT NULL
- Field (activation_code) — String(6) — For designer signup
디자이너 권한 (DesignerAuth)
- 디자이너 번호 (id) — Integer — 외래 키 → 디자이너.디자이너 번호 — NOT NULL
- Field (designer_id) — Integer — NOT NULL — Index
- Field (settings_auth) — Boolean — NOT NULL
- Field (customer_info_auth) — Boolean — NOT NULL
- Field2 (customer_remark_auth) — Boolean — NOT NULL
- Field3 (appointment_remark_auth) — Boolean — NOT NULL
- Field (appointment_update_auth) — Boolean — NOT NULL
- Field (appointment_create_auth) — Boolean — NOT NULL
- Field (appointment_confirm_cancel_auth) — Boolean — NOT NULL
- Field (sales_register_auth) — Boolean — NOT NULL
- Field (customer_membership_auth) — Boolean — NOT NULL
- Field (sales_check_auth) — Enum — NOT NULL — none, own, all
- Field (incentive_check_auth) — Enum — NOT NULL — none, own, all
디자이너 불가시술 (TreatmentNotAvailableDesigners)
- 디자이너 번호 (designer_id) — Integer — 외래 키 → 디자이너.디자이너 번호 — NOT NULL
- 사슐 번호 (treatment_id) — Integer — 외래 키 → 시술.사슐 번호 — NOT NULL
마스터샵 (MasterShop)
- 다지점샵 번호 (id) — Integer — 기본 키 — NOT NULL
- 다지점 공통 이름 (master) — String(20) — NOT NULL
샵 (Shop)
- 샵 번호 (id) — Integer — 기본 키 — NOT NULL
- 다지점샵 번호 (master_shop_id) — Integer — 외래 키 → 마스터샵.다지점샵 번호
- 다지점 번호 (shop_number_code) — String(30) — 다지점 샵 넘버 코드
- 도메인 (domain) — String(100) — NOT NULL
- 샵명 (name) — String(300) — NOT NULL — 관리자 설정
- 영문 이름 (english_name) — String(300)
- 소개 (description) — String(500)
- 주소 (address) — String(300) — NOT NULL — 관리자 설정
- 간단 주소 (simple_address) — String(100)
- 상세 주소 (address_detail) — String(300)
- 카카오톡 채널 링크 (kakaotalk_link) — String(300) — NOT NULL — 관리자 설정
- 예약 접수 (take_reservation) — Boolean — NOT NULL
- 승인 (approval) — Boolean — NOT NULL
- 프로필 사진 (profile_image) — String(500) — NOT NULL
- 배경 사진 (background_image) — String(500)
샵 보유 태그 (ShopHasTags)
- 샵 번호 (shop_id) — Integer — 외래 키 → 샵.샵 번호 — NOT NULL
- 태그 번호 (tag_id) — Integer — 외래 키 → 샵 태그.태그 번호 — NOT NULL
샵 타입 (ShopType)
- 샵 타입 번호 (id) — Integer — 기본 키 — NOT NULL
- 샵 타입 (type_name) — String(20) — NOT NULL
샵 타입별 시술 카테고리 (ShopTypeTreatmentCategory)
- 샵 타입 번호 (shop_type_id) — Integer — 외래 키 → 샵 타입.샵 타입 번호 — NOT NULL
- 사슐 카테고리 번호 (treatment_category_id) — int — 외래 키 → 시술 카테고리.사슐 카테고리 번호 — NOT NULL
샵 타입별 옵션 카테고리 (ShopTypeOptionCategory)
- 샵 타입 번호 (shop_type_id) — Integer — 외래 키 → 샵 타입.샵 타입 번호 — NOT NULL
- 옵션 카테고리 번호 (option_category_id) — int — 외래 키 → 옵션 카테고리.옵션 카테고리 번호 — NOT NULL
샵 태그 (ShopTags)
- 태그 번호 (id) — Integer — 기본 키 — NOT NULL
- 태그 (tag) — String(30) — NOT NULL
샵별 타입 (ShopMatchedType)
- 샵 번호 (id) — Integer — 외래 키 → 샵.샵 번호 — NOT NULL
- 샵 타입 번호 (id2) — Integer — 외래 키 → 샵 타입.샵 타입 번호 — NOT NULL
스타일 (Style)
- Key (id) — Integer — 기본 키 — NOT NULL
- 사슐 번호 (treatment_id) — Integer — 외래 키 → 시술.사슐 번호 — NOT NULL — Index
- 썸네일 (thumbnail) — String(500) — NOT NULL
- 삭제 (deleted) — Boolean — NOT NULL
- Best Design 순서 (monthly_pick_order) — Integer
시술 (Treatment)
- 사슐 번호 (id) — int — 기본 키 — NOT NULL — auto increment
- 사슐 카테고리 번호 (category_id) — int — 외래 키 → 시술 카테고리.사슐 카테고리 번호 — NOT NULL
- 이름 (name) — String(30) — NOT NULL
- 시술 사진 (thumbnail) — String(500)
- 최저가 (min_price) — int — NOT NULL
- 최고가 (max_price) — int
- 할일율 (discount) — int — NOT NULL
- 소요시간 (duration) — int — NOT NULL
- 시술 설명 (description) — String(300) — NOT NULL
- 짧은 예약 가능 기간 (short_reservation_days) — int
- 순서 (order) — Integer — NOT NULL
- 시술 숨김 (hidden) — Boolean — NOT NULL
- 시술 삭제 (deleted) — Boolean — NOT NULL
시술 기록 (TreatmentHistory)
- 사슐 기록 번호 (id) — int — 기본 키 — NOT NULL
- 사슐 번호 (treatment_id) — int — 외래 키 → 시술.사슐 번호 — NOT NULL
- 이름 (name) — String(30) — NOT NULL
- 시술 사진 (thumbnail) — String(500)
- 최저가 (min_price) — int — NOT NULL
- 최고가 (max_price) — int
- 할일율 (discount) — int — NOT NULL
- 소요시간 (duration) — int — NOT NULL
- 시술 설명 (description) — String(300) — NOT NULL
시술 카테고리 (TreatmentCategory)
- 사슐 카테고리 번호 (id) — int — 기본 키 — NOT NULL
- 이름 (name) — String(20) — NOT NULL
시술별 옵션 (TreatmentHasOptions)
- 사슐 번호 (service_id) — int — 외래 키 → 시술.사슐 번호 — NOT NULL — index
- 옵션 번호 (option_id) — int — 외래 키 → 옵션.옵션 번호 — NOT NULL
예약 (Appointment)
- 예약 번호 (id) — Integer — 기본 키 — NOT NULL
- 고유 번호 (base64_uuid) — String(11) — NOT NULL — Index, Unique
- 디자이너 번호 (designer_id) — String(32) — 외래 키 → 디자이너.디자이너 번호 — NOT NULL
- 고객 번호 (customer_id) — Integer — 외래 키 → 고객.고객 번호
- 지불금액 번호 (payment_amount_id) — Integer — 외래 키 → 지불금액.지불금액 번호
- Field (own_service) — String(50)
- 막기 (not_service) — String(50)
- 날짜 (date) — Date — NOT NULL
- 시작 시간 (start_time) — Integer — NOT NULL
- 총 소요 시간 (duration) — Integer — NOT NULL
- 상태 (status) — Enum — cancelled, visited, absent
- 확정 여부 (confirmed) — Boolean — NOT NULL
- 회원 여부 (membership) — Boolean — NOT NULL
- 메모 (customer_remark) — String(300)
- Field (appointment_remark) — String(300)
예약 시술 스타일 (AppointmentTreatmentStyle)
- 예약 시술 옵션 내역 번호 (id) — 기본 키 — NOT NULL
- 예약 번호 (appointment_id) — Integer — 외래 키 → 예약.예약 번호 — NOT NULL
- 스타일 번호 (style_id) — Integer — 외래 키 → 스타일.Key
- Best Design 유무 (is_monthly_pick) — NOT NULL
예약 시술 옵션 내역 (AppointmentTreatmentOptionHistory)
- 예약 시술 옵션 내역 번호 (id) — 기본 키 — NOT NULL
- 예약 번호 (appointment_id) — Integer — 외래 키 → 예약.예약 번호 — NOT NULL — Index
- 사슐 기록 번호 (treatment_history_id) — Integer — 외래 키 → 시술 기록.사슐 기록 번호 — NOT NULL
- 옵션 기록 번호 (option_history_id) — Integer — 외래 키 → 옵션 기록.옵션 기록 번호
옵션 (Option)
- 옵션 번호 (id) — int — 기본 키 — NOT NULL — auto increment
- 옵션 카테고리 번호 (option_category_id) — int — 외래 키 → 옵션 카테고리.옵션 카테고리 번호 — NOT NULL
- 이름 (name) — String(30) — NOT NULL
- 소요시간 (duration) — Integer — NOT NULL
- 설명 (description) — String(300) — NOT NULL
- 순서 (order) — Integer — NOT NULL
- 삭제 (deleted) — Boolean — NOT NULL
옵션 기록 (OptionHistory)
- 옵션 기록 번호 (id) — int — 기본 키 — NOT NULL — auto increment
- 옵션 번호 (option_id) — int — 외래 키 → 옵션.옵션 번호 — NOT NULL — auto increment
- 이름 (name) — String(30) — NOT NULL
- 소요시간 (duration) — Integer — NOT NULL
- 설명 (description) — String(300) — NOT NULL
옵션 카테고리 (OptionCategory)
- 옵션 카테고리 번호 (id) — int — 기본 키 — NOT NULL
- 이름 (name) — String(20) — NOT NULL
요청 사진 (AppointmentImages)
- Key (id) — Integer — 기본 키 — NOT NULL
- 예약 번호 (appointment_id) — Integer — 외래 키 → 예약.예약 번호 — NOT NULL
- Field (image) — String(500) — NOT NULL
유저 (User)
- 유저 번호 (id) — Integer — 기본 키 — NOT NULL
- 이메일 (email) — String(200) — NOT NULL
- 비밀번호 (hashed_password) — String(300) — NOT NULL
- 디자이너 번호 (designer_id) — Integer — 외래 키 → 디자이너.디자이너 번호 — NOT NULL
인센티브 (Incentive)
- Key (id) — Integer — 기본 키 — NOT NULL
- 디자이너 번호 (designer_id) — Integer — 외래 키 → 디자이너.디자이너 번호 — NOT NULL — Index
- 시술 이체 (service_transfer) — Float — NOT NULL
- 시술 현금 (service_cash) — Float — NOT NULL
- 시술 카드 (service_card) — Float — NOT NULL
- 시술 회원권 (service_membership) — Float — NOT NULL
- 제품 이체 (product_transfer) — Float — NOT NULL
- 제품 현금 (product_cash) — Float — NOT NULL
- 제품 카드 (product_card) — Float — NOT NULL
- 제품 회원권 (product_membership) — Float — NOT NULL
- 회원권 판매 이체 (membership_sell_transfer) — Float — NOT NULL
- 회원권 판매 현금 (membership_sell_cash) — Float — NOT NULL
- 회원권 판매 카드 (membership_sell_card) — Float — NOT NULL
- Field (absent_incentive) — Boolean — NOT NULL
- Field (cancelled_incentive) — Boolean — NOT NULL
정규 근무시간 (WorkSchedule)
- 날짜 (date) — Date — 기본 키 — NOT NULL
- 디자이너 번호 (designer_id) — Integer — 외래 키 → 디자이너.디자이너 번호 — NOT NULL
- 근무 시작 (work_start) — Integer
- 근무 종료 (work_end) — Integer
- 휴게 시작 (break_start) — Integer
- 휴게 종료 (break_end) — Integer
제품 판매 내역 (ProductSellHistory)
- 제품 판매 내역 번호 (id) — Integer — 기본 키 — NOT NULL
- 고유 번호 (base64_uuid) — String(11) — NOT NULL
- 디자이너 번호 (designer_id) — Integer — 외래 키 → 디자이너.디자이너 번호 — NOT NULL
- 고객 번호 (customer_id) — Integer — 외래 키 → 고객.고객 번호 — NOT NULL
- 지불금액 번호 (payment_amount_id) — Integer — 외래 키 → 지불금액.지불금액 번호 — NOT NULL
- 제품명 (name) — String(20) — NOT NULL
지불금액 (PaymentAmount)
- 지불금액 번호 (id) — Integer — 기본 키 — NOT NULL
- 카드 (card) — Integer — NOT NULL
- 현금 (cash) — Integer — NOT NULL
- 계좌 이체 (transfer) — Integer — NOT NULL
- 회원권 (membership) — Integer — NOT NULL
타임제 근무 변경 사항 (TimedScheduleOverride)
- id — Integer — 기본 키 — NOT NULL
- 디자이너 번호 (designer_id) — Integer — 외래 키 → 디자이너.디자이너 번호 — NOT NULL — Index
- 사유 (subject) — String(50) — NOT NULL
- 시작 날짜 (day_start) — Date — NOT NULL
- 종료 날짜 (day_end) — Date — NOT NULL
- 근무 시작 (work_start) — Integer
- 근무 시작 (work_end) — Integer
타임제 근무 변경 사항 개별시간 (TimedScheduleOverrideTimes)
- Key (id) — Integer — 기본 키 — NOT NULL
- id (timed_schedule_override_id) — Integer — 외래 키 → 타임제 근무 변경 사항.id — NOT NULL — Index
- Field (time) — Integer — NOT NULL
타임제 근무 변경 휴게 시간 (TimedOverrideBreakSchedule)
- Key (id) — Integer — 기본 키 — NOT NULL
- id (timed_override_id) — Integer — 외래 키 → 타임제 근무 변경 사항.id — NOT NULL — Index
- Field (break_start) — Integer — NOT NULL
- Field (break_end)
타임제 근무시간 (TimedWorkSchedule)
- Key (id) — Integer — 기본 키 — NOT NULL
- 디자이너 번호 (designer_id) — Integer — 외래 키 → 디자이너.디자이너 번호 — NOT NULL — Index
- 날짜 (day) — Enum — NOT NULL — DaysInWeek
- 근무 시작 (work_start) — Integer
- 근무 종료 (work_end) — Integer
타임제 근무시간 개별시간 (TimedWorkScheduleTimes)
- Key (id) — Integer — 기본 키 — NOT NULL
- Key (timed_work_schedule_id) — Integer — 외래 키 → 타임제 근무시간.Key — NOT NULL — Index
- Field (time) — Integer — NOT NULL
타임제 휴무시간 (TimedBreakSchedule)
- Key (id) — Integer — 기본 키 — NOT NULL
- Key (timed_work_schedule_id) — Integer — 외래 키 → 타임제 근무시간.Key — NOT NULL — Index
- Field (break_start) — Integer — NOT NULL
- Field (break_end) — Integer — NOT NULL
회원권 충전 내역 (MembershipHistory)
- 회원권 충전 내역 번호 (id) — Integer — 기본 키 — NOT NULL
- 고객 번호 (customer_id) — Integer — 외래 키 → 고객.고객 번호 — NOT NULL
- 디자이너 번호 (designer_id) — Integer — 외래 키 → 디자이너.디자이너 번호 — NOT NULL
- 지불금액 번호 (payment_amount_id) — Integer — 외래 키 → 지불금액.지불금액 번호 — NOT NULL
- 회원권 충전 금액 (membership_charge_amount) — Integer — NOT NULL
- 환불 (refund) — Boolean — NOT NULL
- Field (remark) — String(300)