sellermakers

Tables (12)

chat (챗)

  • id (아이디) — uuid — Primary key — NOT NULL
  • order_id (주문서 아이디) — int — Foreign key → order_sheet.id — NOT NULL
  • id (아이디2) — uuid — Foreign key → order_sheet.invoice_id — NOT NULL
  • id (아이디22) — uuid — Foreign key → order_sheet.manager_id — NOT NULL
  • id (아이디3) — uuid — Foreign key → order_sheet.user_id — NOT NULL
  • sender_name (보낸이 이름) — varchar
  • sender_role (보낸이 역할) — enum
  • message (내용) — text
  • is_read (읽음) — boolean
  • created_at (생성일) — date

cny_exchange_rate (환율)

  • Key — Primary key — NOT NULL
  • exchange (환율)

invoice (송장)

  • id (아이디) — uuid — Primary key — NOT NULL
  • user_id (유저 아이디) — uuid — Foreign key → user.id — NOT NULL
  • totalAmount (총 결제 금액) — number
  • memo (관리용 메모) — varchar
  • createdAt (주문일) — date
  • updatedAt (수정일) — date

message_reads (읽음 상태)

  • id (아이디) — uuid — Primary key — NOT NULL
  • Field

order_sheet (주문서)

  • id (아이디) — int — Primary key — NOT NULL
  • invoice_id (송장 아이디) — uuid — Foreign key → invoice.id — NOT NULL
  • manager_id (담당자 아이디) — uuid — Foreign key → invoice.user_id — NOT NULL
  • user_id (주문자 아이디) — uuid — Foreign key → user.id — NOT NULL
  • order_number (주문서 번호) — varchar
  • order_sheet_status (주문서 상태) — enum
  • save_status (저장상태) — enum
  • title (주문서 제목) — varchar
  • china_inland_freight (중국 내륙 운임) — float
  • company_name (업체명) — varchar
  • company_phone_number (업체전화번호) — varchar
  • company_url (업체 URL) — varchar
  • warehouse_planned_date (창고입고 예정일) — date
  • warehouse_inbound_date (창고 입고일) — date
  • shipping_date (선적일) — date
  • order_date_time (주문일시) — date
  • customs_planned_date (통관 예정일) — date
  • create_at (생성일) — date
  • updated_at (수정일) — date
  • deleted_at (삭제일) — date
  • inquiry (문의사항) — varchar
  • admin_comment (관리자 의견) — varchar

outer_payment (외부_결제)

  • id (외부 결제 아이디) — uuid — Primary key — NOT NULL
  • method (결제 방식) — enum
  • status (결제 상태) — enum
  • amount (결제 금액) — int
  • description (설명) — varchar
  • pg_payment_id (PG사 결제 id) — string
  • created_at (생성일) — date
  • updated_at (수정일) — date

payment (결제)

  • id (내부 결제 아이디) — uuid — Primary key — NOT NULL
  • invoice_id (송장 아이디) — uuid — Foreign key → invoice.id — NOT NULL
  • id (아이디2) — uuid — Foreign key → user.id — NOT NULL
  • method (결제 방식) — enum
  • status (결제 상태) — enum
  • amount (결제 금액) — number
  • description (설명) — varchar
  • pg사 결제 id (Field2)
  • created_at (생성일) — date

product (주문상품)

  • id (아이디) — int — Primary key — NOT NULL
  • order_id (주문서 아이디) — int — Foreign key → order_sheet.id — NOT NULL
  • id (아이디2) — uuid — Foreign key → order_sheet.invoice_id — NOT NULL
  • id (아이디22) — uuid — Foreign key → order_sheet.manager_id — NOT NULL
  • id (아이디3) — uuid — Foreign key → order_sheet.user_id — NOT NULL
  • model_name (모델명) — varchar
  • model_name_ENG (모델명(영어)) — varchar
  • model_name_CN (모델명(중문)) — varchar
  • inspection_type (검품타입) — enum
  • box_unit_count (한 박스 수량) — int
  • box_count (박스 수량) — int
  • unit_amount_cny (단가) — float
  • total_amount_cny (현지 총액) — float
  • krw_amount (원화) — int
  • cbm (총 부피) — float
  • fee (수수료) — int
  • inland_freight (내륙운송료)
  • lobor_cost (작업비 등)
  • loading_cost (상하차비)
  • shipping_cost (해운비)
  • customs_rate (관세)
  • vat (부가세)
  • total_amount (총금액)
  • unit_amount_krw (개당금액)
  • created_at (생성일) — date
  • updated_at (수정일) — date
  • deleted_at (삭제일) — date

transaction (결제 기록)

  • id (결제 기록 아이디) — uuid — Primary key — NOT NULL
  • inner_payment_id (내부 결제 아이디) — uuid — Foreign key → payment.id — NOT NULL
  • wallet_id (예치금 계좌 아이디) — uuid — Foreign key → wallet.id — NOT NULL
  • user_id (결제한 유저 아이디) — uuid — Foreign key → user.id — NOT NULL
  • id (아이디2) — uuid — Foreign key → payment.id — NOT NULL
  • method (결제 방식) — enum
  • status (결제 상태) — enum
  • pg_transaction_id (PG사 transaction id) — varchar
  • admin_id (결제 상태 변경을 한 관리자) — uuid
  • approvedAt (결제 승인일) — date
  • created_at (기록 생성일) — date
  • beforeBalance (거래 전 금액) — number
  • afterBalance (거래 후 금액) — number

uploaded_file (업로드된 파일)

  • id (아이디) — int — Primary key — NOT NULL
  • key (파일 key) — varchar
  • url — varchar
  • originalname (파일 오리지날 명) — varchar
  • size (파일 사이즈) — number
  • mimetype (파일 MIME 타입) — varchar
  • related_type (파일이 연결된 entity 유형) — enum
  • related_id (파일이 연결된 entity id) — varchar
  • order (이미지 순서) — int
  • is_thumnail (대표 이미지 여부) — boolean
  • created_at (생성일) — date
  • updated_at (수정일) — date

user (유저)

  • id (아이디) — uuid — Primary key — NOT NULL
  • username (유저아이디) — varchar
  • password (비밀번호) — varchar
  • full_name (성명) — varchar
  • email (이메일) — varchar
  • phone (연락처) — varchar
  • post_code (우편번호) — varchar
  • base_address (기본주소) — varchar
  • detail_address (상세주소) — varchar
  • user_type (타입) — enum
  • company_name (상호명) — varchar
  • representative_name (대표자명) — varchar
  • role (역할) — enum
  • business_number (사업자번호) — varchar
  • business_license (사업자등록증) — varchar
  • approval_status (승인상태) — enum
  • created_at (가입일) — timestamp
  • upadated_at (수정일) — timestamp

wallet (예치금 계좌)

  • id (예치금 계좌 아이디) — uuid — Primary key — NOT NULL
  • id (user_id) — uuid — Foreign key → user.id — NOT NULL
  • balance (잔액) — number