turtlechain_devel
테이블 (26)
거래처 (provisioning_vendor_store)
- id — Integer(11) — 기본 키 — NOT NULL
- created_time (생성 시간) — datetime
- updated_time (수정 시간) — datetime
- created_by (생성 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- updated_by (수정 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- rt_store_id (소매 매장 ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
- ws_store_id (도매 매장 ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
- vendor_code (거래처 코드) — varchar(191)
- vendor_phone_id (대표 휴대번호) — Integer(11) — 외래 키 → 매장 휴대폰.id — NOT NULL
- vendor_account_id (대표 계좌번호) — Integer(11) — 외래 키 → 매장 계좌.id — NOT NULL
- vendor_name (거래처 명) — varchar(191)
- vendor_address (거래처 주소) — varchar(191)
- memo (메모) — varchar(500)
- is_vat_included (부가세 포함여부) — tinyint(1)
- owner (대표자 명) — varchar(191)
- biz_num (사업자 번호) — varchar(191)
- biz_name (사업자 명) — varchar(191)
- is_inactive (비활성 여부) — tinyint(1)
매입조정 (adjustment)
- id — integer(11) — 기본 키 — NOT NULL
- created_by (생성 유저 ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- created_time (생성 시간) — datetime
- is_inactive (비활성 여부) — tinyint(1)
- created_date (생성 일자) — date
- is_cleared (정산 여부) — tinyint(1)
- cleared_time (정산 시간) — datetime
- rt_store_id (소매 매장 ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
- ws_store_id (도매 매장 ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
- vendor_id (거래처 ID) — Integer(11) — 외래 키 → 거래처.id — NOT NULL
- product_id (상품 ID) — Integer(11) — 외래 키 → 상품.id — NOT NULL
- count (개수) — Integer(11)
- count_left (잔여 개수) — Integer(11)
- is_vat_included (부가세 포함 여부) — tinyint(11)
- type (타입) — varchar(20)
- memo (메모) — varchar(500)
- price (가격) — int(11)
매장 (provisioning_store)
- id — Integer(11) — 기본 키 — NOT NULL
- type (매장타입) — Int(11)
- is_deleted (삭제 여부) — tinyint(1)
- deleted_time (삭제 시간) — datetime(6)
- created_time (생성 시간) — datetime(6)
- updated_time (수정 시간) — datetime(6)
- name (매장 명) — varchar(191)
- phone (매장 전화번호) — varchar(191)
- building (매장 건물명) — varchar(191)
- floor (건물 층수) — varchar(191)
- col (열) — varchar(191)
- loc (위치) — varchar(191)
- ext (기타 주소) — varchar(191)
- is_closed (폐업 여부) — tinyint(1)
- memo (메모) — varchar(1000)
- Field
- created_by (생성 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- deleted_by (삭제 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- updated_by (수정 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- mall_url (매장 URL) — varchar(100)
- alimtalk_name (알림톡 명) — varchar(20)
- service_start_date (서비스 시작 일자) — date
- service_end_date (서비스 종료 일자) — date
- parser (엑셀 파서) — int(11)
- order_formats (오더 엑셀 파서) — int(11)
- sample_takeback_formats (샘플 반납 파서) — int(11)
- page_view (Field2) — int(11)
- api_key (Field3) — int(11)
- old_retailer_id (Field4) — int(11)
매장 계좌 (provisioning_store_account)
- id — Integer(11) — 기본 키 — NOT NULL
- is_deleted (삭제 여부) — tinyint(1)
- deleted_time (삭제 시간) — datetime(6)
- created_time (생성 시간) — datetime(6)
- updated_time (수정 시간) — datetime(6)
- account_number (계좌번호) — varchar(191)
- account_holder (예금주명) — varchar(191)
- bank (은행) — varchar(191)
- is_proxy (Field) — tinyint(1)
- created_by (생성 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- deleted_by (삭제 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- updated_by (수정 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- store_id (매장 ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
매장 정보 변경 요청 (provisioning_store_bucketlist)
- id — Integer(11) — 기본 키 — NOT NULL
- created_by (생성 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- ws_store_id (도매 매장ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
- name (도매명) — varchar(191)
- phone (매장번호) — varchar(191)
- store_phone (매장 휴대번호) — varchar(191)
- account (매장 계좌) — varchar(191)
- address (주소) — varchar(191)
- biz_num (사업자번호) — varchar(191)
- biz_name (사업자명) — varchar(191)
- biz_owner (사업주) — varchar(191)
- memo (메모) — varchar(500)
- type (타입) — varchar(191)
- Field
매장 휴대폰 (provisioning_store_phone)
- id — Integer(11) — 기본 키 — NOT NULL
- is_deleted (삭제 여부) — tinyint(1)
- deleted_time (삭제 시간) — datetime(6)
- created_time (생성 시간) — datetime(6)
- updated_time (수정 시간) — datetime(6)
- phone (휴대번호) — varchar(191)
- send_alimtalk (알림톡 발송여부) — tinyint(1)
- tag (태그) — varchar(191)
- created_by (생성 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- deleted_by (삭제 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- updated_by (수정 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- store_id (매장 ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
사업자 (provisioning_company)
- id — Integer(11) — 기본 키 — NOT NULL
- is_deleted (삭제여부) — tinyint(1)
- deleted_time (삭제일자) — datetime(6)
- created_time (생성일자) — datetime(6)
- updated_time (수정일자) — datetime(6)
- type (타입) — int(11)
- name (사업자 명) — varchar(191)
- owner (사업주) — varchar(191)
- biz_num (사업장번호) — varchar(191)
- address (주소) — varchar(191)
- tax_type (부가세 포함 여부) — varchar(191)
- is_closed (폐업 여부) — tinyint(1)
- memo (메모) — varchar(1000)
- created_by (생성 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- deleted_by (삭제 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- updated_by (수정 유저ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- company_group_id (사업장 그룹 ID) — Integer(11) — 외래 키 → 사업자 그룹.id — NOT NULL
- ws_page_authorized (Field) — tinyint(1)
- service_usage (Field2) — varchar(100)
- biz_type (Field3) — varchar(10)
- biz_license_file (사업자등록증) — varchar(500)
- pg_api_key (Field4) — varchar(100)
- old_org_id (Field5) — int(11)
사업자 그룹 (provisioning_group_company_relation)
- id — Integer(11) — 기본 키 — NOT NULL
사업자-매장 관계 (provisioning_company_store_relation)
- id — Integer(11) — 기본 키 — NOT NULL
- company_id (사업장ID) — Integer(11) — 외래 키 → 사업자.id — NOT NULL
- store_id (매장ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
상품 (provisioning_product)
- id — Integer(11) — 기본 키 — NOT NULL
- rt_store_id (소매 매장 ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
- vendor_id (거래처 ID) — Integer(11) — 외래 키 → 거래처.id — NOT NULL
- product_code (상품 바코드) — varchar(191)
- name (상품 명) — varchar(191)
- vendor_product_name (사입상품명) — varchar(191)
- price (공급가) — int(11)
- option (옵션) — varchar(191)
- image_url (상품 이미지 URL) — varchar(500)
- is_inactive (비활성 여부) — tinyint(1)
- created_time (생성 시간) — datetime
- updated_time (수정 시간) — datetime
- created_by (생성 유저 ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- updated_by (수정 유저 ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
유저 (user)
- id — Integer(11) — 기본 키 — NOT NULL
- password (비밀번호) — varchar(128)
- login_id (로그인ID) — varchar(150)
- name (이름) — varchar(150)
- first_name (이름중복) — varchar(150)
- last_name (성) — varchar(150)
- email (이메일) — varchar(254)
- mobile_phone (전화번호) — varchar(15)
- is_staff (스태프여부) — tinyint(1)
- is_superuser (슈퍼유저여부) — tinyint(1)
- is_active (활성여부) — tinyint(1)
- last_login (최종 로그인 기록) — datetime(6)
- date_joined (가입 일자) — datetime(6)
- type (타입) — varchar(2)
유저-권한 (user_user_permissions)
- id — Integer(11) — 기본 키 — NOT NULL
- user_id (유저id) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- permission_id (인증 권한 id) — Integer(11) — 외래 키 → 인증 권한.id — NOT NULL
유저그룹 (user_groups)
- id — Integer(11) — 기본 키 — NOT NULL
- user_id (유저 id) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- group_id (인증 그룹 id) — Integer(11) — 외래 키 → 인증 그룹.id — NOT NULL
유저그룹 권한 (auth_group_permissions)
- id — Integer(11) — 기본 키 — NOT NULL
- group_id (인증 그룹 id) — Integer(11) — 외래 키 → 인증 그룹.id — NOT NULL
- permission_id (인증 권한 id) — Integer(11) — 외래 키 → 인증 권한.id — NOT NULL
인증 권한 (auth_permission)
- id — Integer(11) — 기본 키 — NOT NULL
- content_type_id (컨텐츠 타입 id) — Integer(11) — 외래 키 → 장고 컨텐츠 타입.id — NOT NULL
- name (이름) — Varchar(255)
- codename (코드네임) — Varchar(100)
인증 그룹 (auth_group)
- id — Integer(11) — 기본 키 — NOT NULL
- name (이름) — Varchar(255)
입고 아이템 (warehousing_item)
- id — Integer(11) — 기본 키 — NOT NULL
- created_time (생성 시간) — datetime
- created_by (생성 유저 ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- is_inactive (비활성 여부) — tinyint(1)
- sheet_id (입고장 ID) — Integer(11) — 외래 키 → 입고장.id — NOT NULL
- rt_store_id (소매 매장 ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
- vendor_id (거래처 ID) — Integer(11) — 외래 키 → 거래처.id — NOT NULL
- product_id (상품 ID) — Integer(11) — 외래 키 → 상품.id — NOT NULL
- count (개수) — integer(11)
- price (입고 가격) — integer(11)
- is_vat_included (부가세 포함 여부) — tinyint(1)
입고장 (warehousing_sheet)
- id — Integer(11) — 기본 키 — NOT NULL
- created_time (생성 시간) — datetime
- created_by (생성 유저 ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- is_inactive (비활성 여부) — tinyint(1)
- created_date (생성 일자) — date
- rt_store_id (소매 매장 ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
- total_price (총 입고 액수) — Integer(11)
- tatal_row_count (총 입고 수량) — Integer(11)
- is_confirmed (마감 여부) — tinyint(1)
- did_settlement (정산 여부) — tinyint(1)
- total_store_count (총 도매 개수) — integer(11)
- total_item_count (총 물품 개수) — integer(11)
- clearing_sheet_id (정산장 ID) — integer(11)
장고 마이그레이션 (django_migrations)
- id — Integer(11) — 기본 키 — NOT NULL
- app (앱 이름) — varchar(255)
- name (마이그레이션 이름) — varchar(255)
- applied (생성 일자) — datetime(6)
장고 세션 (django_session)
- session_key — varchar(40) — 기본 키 — NOT NULL
- session_data — longtext
- expire_date (만료 일자) — datetime(6)
장고 어드민 로그 (django_admin_log)
- idi (id) — Integer(11) — 기본 키 — NOT NULL
- content_type_id (컨텐츠 타입 id) — Integer(11) — 외래 키 → 장고 컨텐츠 타입.id — NOT NULL
- user_id (유저 ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- action_time (접근 일자) — datetime(6)
- object_id (접근 유저 ID) — longtext
- object_repr (접근 모델) — varchar(200)
- admin_flag (Field) — smallint(5)
- change_message (변경 이력) — longtext
장고 컨텐츠 타입 (django_content_type)
- id — Integer(11) — 기본 키 — NOT NULL
- app_label (앱 라벨) — varchar(100)
- model (모델명) — varchar(100)
정산 아이템 (clearing_item)
- id — Integer(11) — 기본 키 — NOT NULL
- sheet_id (정산장 ID) — Integer(11) — 외래 키 → 정산장.id — NOT NULL
- created_by (생성 유저 ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- created_time (생성 시간) — datetime
- is_inactive (비활성 여부) — tinyint(1)
- type (타입) — varchar(20)
- adjustment_type (매입 조정 타입) — varchar(20)
- created_date (생성 일자) — date
- rt_store_id (소매 매장 ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
- rt_store_name (소매 매장 명) — varchar(191)
- vendor_id (거래처 ID) — Integer(11) — 외래 키 → 거래처.id — NOT NULL
- vendor_name (거래처 명) — varchar(191)
- recipient_print (받는분 통장내역) — varchar(10)
- is_vat_included (부가세 포함 여부) — tinyint(1)
- bank (은행) — varchar(20)
- account_number (계좌번호) — varchar(30)
- account_holder (예금주) — varchar(30)
- memo (메모) — varchar(500)
- total_price (총액) — int(11)
- deposit_price (보증금) — int(11)
- supply_price (공급가) — int(11)
- vat_price (부가세) — int(11)
- original_id (??) — int(11)
- adjustment_process_type (매입진행타입) — varchar(191)
- clearing_sheet_id (정산장ID) — int(11)
- vendor_address (거래처 주소) — varchar(191)
정산장 (clearing_sheet)
- id — Integer(11) — 기본 키 — NOT NULL
- created_by (생성 유저 ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- created_time (생성 시간) — datetime
- is_inactive (비활성 여부) — tinyint(1)
- status (상태) — varchar(10)
- rt_store_id (소매 매장 ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
- rt_store_name (소매 매장 명) — varchar(191)
- request_date (요청 일자) — date
- complete_date (완료 일자) — date
- total_price (정산 총액) — int(11)
- total_vat_price (부가세 총액) — int(11)
주문 아이템 (order_item)
- id — Integer(11) — 기본 키 — NOT NULL
- created_time (생성 시간) — datetime
- created_by (생성 유저 ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- is_inactive (비활성 여부) — tinyint(1)
- sheet_id (주문장 ID) — Integer(11) — 외래 키 → 주문장.id — NOT NULL
- rt_store_id (소매 매장 ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
- vendor_id (거래처 ID) — Integer(11) — 외래 키 → 거래처.id — NOT NULL
- product_id (상품 ID) — Integer(11) — 외래 키 → 상품.id — NOT NULL
- count (개수) — Integer(11)
- price (주문가격) — Integer(11)
- type (타입) — varchar(10)
- memo (메모) — varchar(500)
- image_url (이미지 URL) — varchar(500)
주문장 (order_sheet)
- id — Integer(11) — 기본 키 — NOT NULL
- created_time (생성 시간) — datetime
- created_date (생성 일자) — date
- created_by (생성 유저 ID) — Integer(11) — 외래 키 → 유저.id — NOT NULL
- rt_store_id (소매 매장 ID) — Integer(11) — 외래 키 → 매장.id — NOT NULL
- is_inactive (비활성 여부) — tinyint(1)
- status (상태) — varchar(10)
- type (타입) — varchar(10)
- excel_file_link (엑셀 파일 링크) — varchar(500)
- reserve_time (예약시간) — datetime
- order_case_count (주문 건수) — int(11)
- reserve_case_count (미송 건수) — int(11)
- takeback_case_count (반품 건수) — int(11)
- exchange_case_count (교환 건수) — int(11)
- sample_case_count (샘플 건수) — int(11)
- pickup_case_count (픽업 건수) — int(11)
- extra_case_count (기타 건수) — int(11)
- order_count (주문 개수) — int(11)
- reserve_count (미송 개수) — int(11)
- takeback_count (반품 개수) — int(11)
- exchange_count (교환 개수) — int(11)
- sample_count (샘플 개수) — int(11)
- pickup_count (픽업 개수) — int(11)
- extra_count (기타 개수) — int(11)
- order_price (주문 총액) — int(11)
- reserve_price (미송 총액) — int(11)
- takeback_price (반품 총액) — int(11)
- exchange_price (교환 총액) — int(11)
- sample_price (샘플 총액) — int(11)
- pickup_price (픽업 총액) — int(11)
- extra_price (기타 총액) — int(11)
- kakao (카카오톡 발송 횟수) — int(11)
- sms (메일 발송 횟수) — int(11)
- fail (발송 실패 횟수) — int(11)
- total_store_count (총 도매 개수) — int(11)
- total_item_count (총 주문 건수) — int(11)
- total_item_sub_count (주문 개수 총합) — int(11)
- total_price (총 주문 액수) — int(11)