| 表 | 关键字段 | 说明 |
|---|
org | id, uid, name, type(platform/oem/dealer/enterprise), parent_id, org_path, level, status, brand_json, plan_code, expire_at | 组织树 |
org_brand | org_id, logo, primary_color, domain, company_name, icp | 贴牌商品牌包 |
user | id, org_id, name, mobile, email, password_hash, status, dept | 账号 |
user_session | user_id, token_hash, ip, ua, expires_at | 登录态 |
role | id, code, name, scope(platform/oem/dealer/enterprise) | 角色 |
permission | id, code, name, module, action | 权限点 |
role_permission | role_id, permission_id | 映射 |
user_role | user_id, role_id | 映射 |
| 表 | 关键字段 |
|---|
product | id, org_id, product_code, model_no, name, name_en, category_path, spec_json, test_standard, status |
product_cert | product_id, cert_type, cert_no, issuer, valid_from, valid_to, file_url, verify_url |
kb_doc | org_id, title, type, file_url, size, status, sensitive_level |
kb_chunk | doc_id, seq, content, token_count, embedding_id, meta_json |
keyword | org_id, word, type, lang, search_vol, ai_cite_rate, content_count, inquiry_count |
content | org_id, product_id, type, title, body, lang, status, keywords, ai_score, quality_flags |
content_version | content_id, version, body, editor, diff_json |
review_record | content_id, reviewer_id, checklist_json, content_hash, signature_url, signed_at, result |
template | org_id(0=平台), type, name, config_json, preview_url |
landing_page | org_id, name, template_id, domain, path, html_url, jsonld_json, status, index_status |
publish_task | org_id, content_id, channel(website/b2b/manual), platform, account_id, status, scheduled_at, result_url, error_code |
publish_event | task_id, from_status, to_status, operator, reason, cost_ms |
inquiry | org_id, landing_id, source, utm_json, contact, content_id, keyword, status, amount |
attribution | org_id, inquiry_id, model(last/linear), touchpoints_json, channel_credits_json |
report_snapshot | org_id, date, brand_search, direct_uv, inquiries, indexed_pages, ai_citations |
| 表 | 关键字段 |
|---|
upstream_channel | id, owner_org_id, provider, base_url, api_key_enc, models_json, cost_in, cost_out, weight, priority, status |
model_catalog | code, display_name, alias, capability, default_channel_id, visible_level |
model_price | model_code, level, in_price, out_price, effective_from, effective_to |
api_key | id, org_id, key_hash, key_prefix, status, model_whitelist, qps_limit, rpm_limit, daily_limit, concurrency, allowed_ips, expire_at |
api_key_policy | key_id, policy_json |
llm_call_log | id, request_id, key_id, org_id, channel_id, model, prompt_tokens, completion_tokens, cost, revenue, latency_ms, status, err_code, is_partial |
channel_health | channel_id, window_ts, success_rate, p95_latency, circuit_state |
route_rule | model_code, channel_ids, strategy, fallback_json |
| 表 | 关键字段 |
|---|
quota_account | org_id, total_granted, total_reclaimed, allocated_out, frozen, held, used, available, monthly_limit, month_used, version |
quota_ledger | id, org_id, biz_type, amount(带符号), balance_after, biz_no, ref_id, remark, operator |
quota_hold_task | request_id, org_id, est_amount, expire_at, status |
quota_month_snapshot | org_id, month, used, granted, transferred_out |
| 表 | 关键字段 |
|---|
compute_node | id, org_id, name, type, spec_json, status, last_heartbeat, fingerprint, region, health_score |
compute_task | id, type, org_id, payload_ref, status, assigned_node, timeout_at, retry_count |
compute_task_log | task_id, node_id, started_at, finished_at, cu, success, proof_hash |
compute_output_daily | org_id, node_id, date, cu_total, cu_valid, success_rate |
compute_reward | org_id, period, cu, amount, rule_id, status, frozen_until |
compute_wallet | org_id, total, frozen, withdrawn, exchanged, available |
compute_package | code, name, cu_quota, price, period, target_level |
| 表 | 关键字段 |
|---|
order | order_no, type, org_id, buyer_id, amount, pay_amount, status, plan_code, paid_at |
order_item | order_id, sku, qty, unit_price, amount |
payment_record | order_id, channel, trade_no, amount, status, raw |
refund_record | order_id, amount, reason, approver_id, status |
invoice_record | order_id, type, title, tax_no, file_url, status |
license_key / license_batch | key_hash, batch_id, plan_code, status, org_id, activated_at, expire_at |
| 表 | 关键字段 |
|---|
project_report | org_id(dealer), customer_name, credit_code, contact_json, amount_est, status, protect_start, protect_end, extend_count |
report_dispute | report_id, complainant_org, evidence_json, verdict, judged_by, judged_at |
commission_rule | org_id, order_type, level, rate, max_total_rate, effective_from |
commission_record | org_id, order_no, base_amount, rate, amount, status, frozen_until, reversed |
commission_settle | org_id, period, accrued, released, withdrawn, reversed |
withdraw_record | org_id, type(commission/compute), amount, fee, status, approver, trade_no |
| 表 | 关键字段 |
|---|
audit_log | trace_id, actor_json, action, target_json, before, after, result, ip, ts |
alert_rule | code, condition_json, level, receivers_json, channels |
alert_event | rule_code, level, payload, status, acked_by |
risk_config | group, key, value_json, version, updated_by |