Files
makemd/docs/01_Architecture/03_Domain_Model.md
wurenzhi eafa1bbe94 feat: 添加货币和汇率管理功能
refactor: 重构前端路由和登录逻辑

docs: 更新业务闭环、任务和架构文档

style: 调整代码格式和文件结构

chore: 更新依赖项和配置文件
2026-03-19 19:08:15 +08:00

2.8 KiB
Raw Blame History

DOMAIN_MODEL领域模型

核心实体

Merchant商户

  • id
  • name
  • statuspending / active / inactive
  • created_at
  • updated_at
  • contact_person
  • contact_email
  • contact_phone
  • address
  • business_typeB2B / B2C

User用户

  • id
  • merchant_id
  • roleadmin / operator / viewer
  • status
  • username
  • email
  • password_hash
  • created_at
  • updated_at

Store店铺

  • id
  • merchant_id
  • name
  • platform
  • platform_shop_id
  • description
  • status
  • created_at
  • updated_at

Feature功能

  • code
  • name
  • price_typefree / paid
  • price_value
  • description

PlatformIntegration平台集成

  • id
  • merchant_id
  • platform_nameSellbrite / Shoplazza / SaleSmartly
  • api_key
  • api_secret
  • access_token
  • refresh_token
  • status
  • created_at
  • updated_at

CrossBorderProduct跨境商品

  • id
  • product_id
  • hs_code
  • tariff_rate
  • compliance_status
  • country_of_origin
  • weight
  • dimensions
  • created_at
  • updated_at

CustomsDocument清关文件

  • id
  • order_id
  • document_type
  • document_url
  • status
  • created_at
  • updated_at

CrossBorderOrder跨境订单

  • id
  • order_id
  • customs_status
  • shipping_status
  • tracking_number
  • logistics_provider
  • estimated_delivery
  • created_at
  • updated_at
  • category

MerchantFeature商户功能

  • id
  • merchant_id
  • feature_code
  • statusinactive / pending_payment / active / expired
  • expire_at
  • created_at
  • updated_at

Order订单

  • id
  • user_id
  • merchant_id
  • total_amount
  • statuspending / paid / split / shipped / completed / refunded
  • created_at
  • updated_at
  • shipping_address
  • payment_method

SubOrder子订单

  • id
  • order_id
  • merchant_id
  • store_id
  • amount
  • status
  • created_at
  • updated_at

Product商品

  • id
  • merchant_id
  • store_id
  • name
  • sku
  • price
  • stock
  • status
  • created_at
  • updated_at

Inventory库存

  • id
  • product_id
  • merchant_id
  • warehouse_id
  • quantity
  • status
  • last_sync_at

Payment支付

  • id
  • merchant_id
  • amount
  • statuscreated / paid / failed
  • typefeature / order
  • payment_method
  • transaction_id
  • created_at
  • updated_at

Bill账单

  • id
  • merchant_id
  • typeincome / expense
  • amount
  • statuspending / confirmed / settled
  • source_typeorder / feature
  • source_id
  • created_at
  • updated_at

Permission权限

  • id
  • role
  • resource
  • action
  • created_at

Settlement结算

  • id
  • merchant_id
  • total_amount
  • platform_fee
  • net_amount
  • status
  • period_start
  • period_end
  • created_at
  • updated_at

Analytics数据分析

  • id
  • merchant_id
  • report_type
  • data
  • generated_at
  • period_start
  • period_end