Skip to content

当前数据库结构说明 ​

  • 文档性质:参考资料 / 实库结构快照
  • 生成时间:2026-09-18 16:30:39 +08:00
  • 数据来源:Laravel 默认连接 mysql 直连 MySQL information_schema 与业务库 idc_test
  • 数据库:idc_test
  • MySQL 版本:5.7.26
  • 当前表数量:75
  • 字段数量:1051
  • 索引数量:359
  • 外键约束数量:103
  • CHECK 约束数量:0
  • 说明:
    • 本文只导出表结构元数据,不包含任何业务行数据。
    • 行数来自 information_schema.TABLES.TABLE_ROWS,InnoDB 下仅作估算。
    • 字段、索引、外键与约束均来自当前实库,不以迁移文件或历史快照推断。
    • 需要更新时在项目根目录执行:php backend/scripts/export_database_structure.php。

自动生成:请优先通过脚本重刷本文档,避免手工维护结构信息产生漂移。

1. 结构概览 ​

1.1 表清单 ​

表名类型引擎估算行数数据大小索引大小自增值排序规则表注释
account_transactionsBASE TABLEInnoDB816 KB96 KB1,758utf8mb4_unicode_ci账户流水表,记录现金账户、授信账户、推荐奖励账户的每一次余额变化
activity_logsBASE TABLEInnoDB416240 KB96 KB1,036,441utf8mb4_unicode_ci—
admin_usersBASE TABLEInnoDB21080 KB48 KB588utf8mb4_unicode_ci—
admin_user_rolesBASE TABLEInnoDB116 KB32 KB210utf8mb4_unicode_ci—
agent_applicationsBASE TABLEInnoDB016 KB32 KB1utf8mb4_unicode_ci—
agent_groupsBASE TABLEInnoDB116 KB16 KB6utf8mb4_unicode_ci—
agent_group_discountsBASE TABLEInnoDB116 KB32 KB5utf8mb4_unicode_ci—
api_keysBASE TABLEInnoDB016 KB48 KB2utf8mb4_unicode_ci—
api_key_usage_logsBASE TABLEInnoDB2516 KB48 KB32utf8mb4_unicode_ci—
archive_audit_logsBASE TABLEInnoDB016 KB32 KB2utf8mb4_unicode_ci—
automation_logsBASE TABLEInnoDB016 KB48 KB1,290utf8mb4_unicode_ci—
content_articlesBASE TABLEInnoDB816 KB96 KB45utf8mb4_unicode_ci—
content_categoriesBASE TABLEInnoDB616 KB48 KB19utf8mb4_unicode_ci—
couponsBASE TABLEInnoDB1416 KB48 KB106utf8mb4_unicode_ci—
coupon_campaignsBASE TABLEInnoDB316 KB48 KB19utf8mb4_unicode_ci—
failed_jobsBASE TABLEInnoDB016 KB16 KB277utf8mb4_unicode_ci—
first_product_groupsBASE TABLEInnoDB3616 KB32 KB110utf8mb4_unicode_ci—
gateway_logsBASE TABLEInnoDB016 KB112 KB1,000,078utf8mb4_unicode_ci—
integration_pluginsBASE TABLEInnoDB616 KB48 KB57utf8mb4_unicode_ci—
integration_plugin_bindingsBASE TABLEInnoDB116 KB80 KB3utf8mb4_unicode_ci—
integration_plugin_configsBASE TABLEInnoDB116 KB16 KB39utf8mb4_unicode_ci—
integration_plugin_runtime_logsBASE TABLEInnoDB216 KB80 KB1,014,091utf8mb4_unicode_ci—
invoicesBASE TABLEInnoDB4416 KB208 KB3,068utf8mb4_unicode_ci账单主表,所有购买、续费、充值、扣款和退款流程以账单为财务入口
invoice_itemsBASE TABLEInnoDB116 KB16 KB2,799utf8mb4_unicode_ci账单明细表,记录账单内每个收费项目和快照信息
jobsBASE TABLEInnoDB016 KB16 KB4,002utf8mb4_unicode_ci—
media_filesBASE TABLEInnoDB016 KB48 KB68utf8mb4_unicode_ci—
member_levelsBASE TABLEInnoDB016 KB48 KB12utf8mb4_unicode_ci—
message_logsBASE TABLEInnoDB216 KB112 KB2,616utf8mb4_unicode_ci—
migrationsBASE TABLEInnoDB20948 KB0 B212utf8mb4_unicode_ci—
notice_readsBASE TABLEInnoDB216 KB32 KB175utf8mb4_unicode_ci—
notification_templatesBASE TABLEInnoDB016 KB32 KB1,013utf8mb4_unicode_ci—
operation_logsBASE TABLEInnoDB414208 KB80 KB166,202utf8mb4_unicode_ci—
ordersBASE TABLEInnoDB2616 KB176 KB3,114utf8mb4_unicode_ci—
password_reset_tokensBASE TABLEInnoDB016 KB0 B—utf8mb4_unicode_ci—
paymentsBASE TABLEInnoDB1916 KB160 KB387utf8mb4_unicode_ci第三方支付记录表,仅记录真实外部资金流入和退款状态,不记录余额/免费/手工开服
payment_callbacksBASE TABLEInnoDB216 KB96 KB490utf8mb4_unicode_ci支付回调审计表,保存第三方通知、查询、退款等回调验签结果
personal_access_tokensBASE TABLEInnoDB116 KB48 KB176utf8mb4_unicode_ci—
productsBASE TABLEInnoDB21080 KB48 KB636utf8mb4_unicode_ci商品表,记录可售卖产品的分类、定价、库存、上游绑定和开通策略
product_discount_groupsBASE TABLEInnoDB116 KB16 KB4utf8mb4_unicode_ci—
product_upstream_bindingsBASE TABLEInnoDB316 KB96 KB284utf8mb4_unicode_ci—
recharge_recordsBASE TABLEInnoDB016 KB144 KB1utf8mb4_unicode_ci—
referral_account_logsBASE TABLEInnoDB016 KB64 KB7utf8mb4_unicode_ci—
referral_rewardsBASE TABLEInnoDB016 KB96 KB13utf8mb4_unicode_ci—
referral_withdrawalsBASE TABLEInnoDB316 KB48 KB9utf8mb4_unicode_ci—
refundsBASE TABLEInnoDB016 KB96 KB1utf8mb4_unicode_ci—
rolesBASE TABLEInnoDB21864 KB16 KB686utf8mb4_unicode_ci—
schedule_run_logsBASE TABLEInnoDB416 KB48 KB151,570utf8mb4_unicode_ci—
schedule_task_runsBASE TABLEInnoDB016 KB96 KB3,359utf8mb4_unicode_ci—
schedule_ticksBASE TABLEInnoDB016 KB64 KB281utf8mb4_unicode_ci—
second_product_groupsBASE TABLEInnoDB11716 KB32 KB206utf8mb4_unicode_ci—
servicesBASE TABLEInnoDB4248 KB128 KB374utf8mb4_unicode_ci服务实例表,记录用户已购买产品的生命周期、计费、上游和续费状态
service_connection_snapshotsBASE TABLEInnoDB116 KB80 KB198utf8mb4_unicode_ci—
service_provision_attemptsBASE TABLEInnoDB016 KB80 KB431utf8mb4_unicode_ci—
service_runtime_snapshotsBASE TABLEInnoDB116 KB80 KB198utf8mb4_unicode_ci—
service_upstream_bindingsBASE TABLEInnoDB116 KB112 KB288utf8mb4_unicode_ci—
sessionsBASE TABLEInnoDB016 KB32 KB—utf8mb4_unicode_ci—
settingsBASE TABLEInnoDB1416 KB16 KB535utf8mb4_unicode_ci—
suppliersBASE TABLEInnoDB1516 KB32 KB132utf8mb4_unicode_ci—
supplier_balancesBASE TABLEMyISAM5456 B4 KB13utf8mb4_unicode_ci—
supplier_balance_logsBASE TABLEMyISAM00 B1 KB1utf8mb4_unicode_ci—
supplier_plugin_bindingsBASE TABLEInnoDB1316 KB80 KB133utf8mb4_unicode_ci—
third_product_groupsBASE TABLEInnoDB23364 KB32 KB302utf8mb4_unicode_ci—
ticketsBASE TABLEInnoDB3016 KB80 KB119utf8mb4_unicode_ci—
ticket_delivery_rulesBASE TABLEInnoDB016 KB48 KB3utf8mb4_unicode_ci—
ticket_delivery_rule_productsBASE TABLEInnoDB016 KB32 KB1utf8mb4_unicode_ci—
ticket_repliesBASE TABLEInnoDB6216 KB32 KB251utf8mb4_unicode_ci—
ticket_reply_deliveriesBASE TABLEInnoDB316 KB48 KB4utf8mb4_unicode_ci—
ticket_upstream_bindingsBASE TABLEInnoDB316 KB48 KB6utf8mb4_unicode_ci—
ticket_upstream_delivery_logsBASE TABLEInnoDB716 KB80 KB12utf8mb4_unicode_ci—
usersBASE TABLEInnoDB11964 KB176 KB988,257utf8mb4_unicode_ci—
user_accountsBASE TABLEInnoDB916 KB0 B—utf8mb4_unicode_ci用户账户余额源表,集中承载现金余额、授信和推荐奖励余额
user_couponsBASE TABLEInnoDB1016 KB64 KB100utf8mb4_unicode_ci—
user_notificationsBASE TABLEInnoDB1116 KB48 KB138utf8mb4_unicode_ci—
verification_historiesBASE TABLEInnoDB1016 KB48 KB109utf8mb4_unicode_ci—
zjmf_upstream_bindingsBASE TABLEMyISAM1148 B5 KB5utf8mb4_unicode_ci—

1.2 字段类型分布 ​

类型字段数
bigint223
char1
date1
decimal51
int45
json60
longtext10
mediumtext1
smallint3
text20
timestamp207
tinyint60
varchar369

1.3 JSON 字段 ​

  • activity_logs.context
  • api_keys.scopes
  • api_keys.ip_allowlist
  • automation_logs.meta
  • coupons.billing_cycles
  • coupons.product_ids
  • coupon_campaigns.weekdays
  • coupon_campaigns.billing_cycles
  • coupon_campaigns.product_ids
  • gateway_logs.request_data
  • gateway_logs.response_data
  • integration_plugins.capabilities_json
  • integration_plugins.config_schema_json
  • integration_plugin_bindings.config_json
  • integration_plugin_bindings.has_secret_json
  • integration_plugin_bindings.runtime_policy_json
  • integration_plugin_configs.config_json
  • integration_plugin_configs.has_secret_json
  • integration_plugin_runtime_logs.request_meta_json
  • integration_plugin_runtime_logs.response_meta_json
  • invoices.config_snapshot
  • invoices.config_pricing_snapshot
  • invoices.coupon_snapshot
  • invoice_items.meta_json
  • message_logs.params_json
  • notification_templates.variables_json
  • notification_templates.provider_variables_json
  • operation_logs.context
  • orders.config_snapshot
  • orders.config_pricing_snapshot
  • orders.coupon_snapshot
  • orders.service_snapshot
  • payments.callback_raw
  • payment_callbacks.payload_json
  • products.pricing
  • products.config_options
  • products.purchase_requires
  • product_upstream_bindings.upstream_product_snapshot_json
  • product_upstream_bindings.option_schema_json
  • product_upstream_bindings.provision_policy_json
  • roles.permissions
  • schedule_run_logs.summary
  • schedule_task_runs.summary
  • services.locked_pricing
  • services.provision_data
  • service_connection_snapshots.connection_json
  • service_connection_snapshots.has_secret_json
  • service_provision_attempts.request_meta_json
  • service_provision_attempts.response_meta_json
  • service_runtime_snapshots.resource_json
  • service_runtime_snapshots.metrics_json
  • service_runtime_snapshots.snapshot_json
  • service_upstream_bindings.runtime_snapshot_json
  • service_upstream_bindings.connection_snapshot_json
  • supplier_plugin_bindings.config_json
  • supplier_plugin_bindings.has_secret_json
  • ticket_replies.attachments
  • users.api_ip_allowlist
  • user_notifications.data
  • zjmf_upstream_bindings.payload

2. 表结构明细 ​

2.1 account_transactions ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:8
  • 数据大小:16 KB
  • 索引大小:96 KB
  • 自增值:1758
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:账户流水表,记录现金账户、授信账户、推荐奖励账户的每一次余额变化

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment——账户流水自增主键
2user_idbigint(20) unsigned否—MUL———所属用户ID
3account_typevarchar(30)否———utf8mb4utf8mb4_unicode_ci账户类型:cash/credit/referral 等
4event_typevarchar(30)否———utf8mb4utf8mb4_unicode_ci流水事件类型:recharge/consume/refund/adjust/reward_frozen/reward_released 等
5change_amountdecimal(12,2)否0.00————本次变动金额,收入为正、支出为负
6currencyvarchar(3)否CNY——utf8mb4utf8mb4_unicode_ci—
7balance_afterdecimal(12,2)否0.00————本次变动后的账户余额
8source_typevarchar(30)是NULLMUL—utf8mb4utf8mb4_unicode_ci业务来源类型,如 invoice/payment/referral_withdrawal
9source_idbigint(20) unsigned是NULL————业务来源ID
10origin_typevarchar(30)是NULLMUL—utf8mb4utf8mb4_unicode_ci原始触发对象类型,用于跨域追踪
11origin_idbigint(20) unsigned是NULL————原始触发对象ID
12remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci流水备注
13operatorvarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci操作人快照
14trace_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci链路追踪号
15created_attimestamp是NULLMUL———创建时间
16updated_attimestamp是NULL————更新时间

索引 ​

索引名唯一类型字段基数注释
account_transactions_created_at_idx否BTREEcreated_at4—
account_transactions_origin_idx否BTREEorigin_type, origin_id8—
account_transactions_source_idx否BTREEsource_type, source_id8—
account_transactions_trace_id_idx否BTREEtrace_id7—
account_transactions_user_account_created_idx否BTREEuser_id, account_type, created_at, id8—
account_transactions_user_event_created_idx否BTREEuser_id, event_type, created_at8—
PRIMARY是BTREEid8—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_account_transactions_user_iduser_idusersidRESTRICTRESTRICT

2.2 activity_logs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:416
  • 数据大小:240 KB
  • 索引大小:96 KB
  • 自增值:1036441
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2actor_typevarchar(20)否system——utf8mb4utf8mb4_unicode_ci操作者类型: admin, client, system, sub_account
3actor_idbigint(20) unsigned是NULLMUL———操作者ID
4actor_namevarchar(100)否空字符串——utf8mb4utf8mb4_unicode_ci操作者名称快照
5modulevarchar(50)否—MUL—utf8mb4utf8mb4_unicode_ci模块: invoice, order, service, user, product, ticket, coupon, system
6actionvarchar(100)否———utf8mb4utf8mb4_unicode_ci动作描述: create, pay, refund, suspend, terminate 等
7descriptiontext否———utf8mb4utf8mb4_unicode_ci可读描述
8subject_typevarchar(50)是NULLMUL—utf8mb4utf8mb4_unicode_ci关联对象类型: invoice, service, order, user, ticket
9subject_idbigint(20) unsigned是NULL————关联对象ID
10contextjson是NULL————附加结构化上下文
11ip_addressvarchar(45)是NULL——utf8mb4utf8mb4_unicode_ci—
12created_attimestamp是NULLMUL————
13updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
activity_logs_actor_id_index否BTREEactor_id206—
activity_logs_created_at_index否BTREEcreated_at93—
activity_logs_module_action_index否BTREEmodule, action196—
activity_logs_subject_type_subject_id_index否BTREEsubject_type, subject_id60—
PRIMARY是BTREEid406—

外键约束 ​

无数据库级外键约束。

2.3 admin_users ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:210
  • 数据大小:80 KB
  • 索引大小:48 KB
  • 自增值:588
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2usernamevarchar(50)否—UNI—utf8mb4utf8mb4_unicode_ci—
3passwordvarchar(255)否———utf8mb4utf8mb4_unicode_ci—
4role_idbigint(20) unsigned否—MUL————
5nicknamevarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci—
6statustinyint(4)否1————0=禁用 1=正常
7last_login_attimestamp是NULL—————
8last_login_ipvarchar(45)是NULL——utf8mb4utf8mb4_unicode_ci—
9created_attimestamp是NULL—————
10updated_attimestamp是NULL—————
11emailvarchar(100)是NULLMUL—utf8mb4utf8mb4_unicode_ci—

索引 ​

索引名唯一类型字段基数注释
admin_users_email_index否BTREEemail210—
admin_users_role_id_index否BTREErole_id210—
admin_users_username_unique是BTREEusername210—
PRIMARY是BTREEid210—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_admin_users_role_idrole_idrolesidRESTRICTRESTRICT

2.4 admin_user_roles ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:1
  • 数据大小:16 KB
  • 索引大小:32 KB
  • 自增值:210
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2admin_user_idbigint(20) unsigned否—MUL————
3role_idbigint(20) unsigned否—MUL————

索引 ​

索引名唯一类型字段基数注释
admin_user_roles_admin_role_unique是BTREEadmin_user_id, role_id1—
admin_user_roles_role_id_idx否BTREErole_id1—
PRIMARY是BTREEid1—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_admin_user_roles_admin_user_idadmin_user_idadmin_usersidRESTRICTCASCADE
fk_stage2_admin_user_roles_role_idrole_idrolesidRESTRICTRESTRICT

2.5 agent_applications ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:32 KB
  • 自增值:1
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2user_idbigint(20) unsigned否—MUL————
3contact_namevarchar(50)否空字符串——utf8mb4utf8mb4_unicode_ci联系人
4contact_phonevarchar(30)否空字符串——utf8mb4utf8mb4_unicode_ci联系手机
5contact_qqvarchar(30)否空字符串——utf8mb4utf8mb4_unicode_ciQQ号
6company_namevarchar(120)否空字符串——utf8mb4utf8mb4_unicode_ci公司名称
7reasonvarchar(500)否空字符串——utf8mb4utf8mb4_unicode_ci申请说明
8statusvarchar(20)否pendingMUL—utf8mb4utf8mb4_unicode_ci状态: pending/approved/rejected
9api_keyvarchar(64)是NULL——utf8mb4utf8mb4_unicode_ciAPI密钥
10admin_notevarchar(500)否空字符串——utf8mb4utf8mb4_unicode_ci管理员备注
11created_attimestamp是NULL—————
12updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
agent_applications_status_index否BTREEstatus0—
agent_applications_user_id_foreign否BTREEuser_id0—
PRIMARY是BTREEid0—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
agent_applications_user_id_foreignuser_idusersidRESTRICTCASCADE

2.6 agent_groups ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:1
  • 数据大小:16 KB
  • 索引大小:16 KB
  • 自增值:6
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2namevarchar(50)否———utf8mb4utf8mb4_unicode_ci—
3codevarchar(30)否—UNI—utf8mb4utf8mb4_unicode_ci—
4statustinyint(4)否1—————
5default_discount_ratedecimal(5,2)是NULL—————
6sort_orderint(11)否0—————
7remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
8created_attimestamp是NULL—————
9updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
agent_groups_code_unique是BTREEcode1—
PRIMARY是BTREEid1—

外键约束 ​

无数据库级外键约束。

2.7 agent_group_discounts ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:1
  • 数据大小:16 KB
  • 索引大小:32 KB
  • 自增值:5
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2agent_group_idbigint(20) unsigned否—MUL————
3product_discount_group_idbigint(20) unsigned否—MUL————
4discount_ratedecimal(5,2)否——————
5created_attimestamp是NULL—————
6updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
agent_group_discounts_product_discount_group_id_foreign否BTREEproduct_discount_group_id1—
agent_group_discount_unique是BTREEagent_group_id, product_discount_group_id1—
PRIMARY是BTREEid1—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
agent_group_discounts_agent_group_id_foreignagent_group_idagent_groupsidRESTRICTCASCADE
agent_group_discounts_product_discount_group_id_foreignproduct_discount_group_idproduct_discount_groupsidRESTRICTCASCADE

2.8 api_keys ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:2
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2user_idbigint(20) unsigned否—MUL————
3namevarchar(64)否空字符串——utf8mb4utf8mb4_unicode_ci—
4key_prefixvarchar(32)否—UNI—utf8mb4utf8mb4_unicode_ci—
5secret_hashvarchar(64)否—MUL—utf8mb4utf8mb4_unicode_ci—
6secret_last4varchar(4)否———utf8mb4utf8mb4_unicode_ci—
7scopesjson是NULL—————
8expires_attimestamp是NULL—————
9ip_allowlistjson是NULL—————
10statusvarchar(16)否enabled——utf8mb4utf8mb4_unicode_ci—
11last_used_attimestamp是NULL—————
12created_attimestamp是NULL—————
13updated_attimestamp是NULL—————
14deleted_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
api_keys_key_prefix_unique是BTREEkey_prefix0—
api_keys_secret_hash_index否BTREEsecret_hash0—
api_keys_user_id_index否BTREEuser_id0—
PRIMARY是BTREEid0—

外键约束 ​

无数据库级外键约束。

2.9 api_key_usage_logs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:25
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:32
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2api_key_idbigint(20) unsigned否—MUL————
3user_idbigint(20) unsigned否—MUL————
4channelvarchar(20)否open_api——utf8mb4utf8mb4_unicode_ci—
5methodvarchar(8)否空字符串——utf8mb4utf8mb4_unicode_ci—
6pathvarchar(255)否空字符串——utf8mb4utf8mb4_unicode_ci—
7status_codesmallint(5) unsigned否0—————
8ipvarchar(45)否空字符串——utf8mb4utf8mb4_unicode_ci—
9duration_msint(10) unsigned否0—————
10created_attimestamp否CURRENT_TIMESTAMPMULon update CURRENT_TIMESTAMP———

索引 ​

索引名唯一类型字段基数注释
api_key_usage_logs_api_key_id_index否BTREEapi_key_id1—
api_key_usage_logs_created_at_index否BTREEcreated_at16—
api_key_usage_logs_user_channel_idx否BTREEuser_id, channel, created_at25—
PRIMARY是BTREEid25—

外键约束 ​

无数据库级外键约束。

2.10 archive_audit_logs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:32 KB
  • 自增值:2
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2batch_idvarchar(64)否—MUL—utf8mb4utf8mb4_unicode_ci—
3table_namevarchar(64)否—MUL—utf8mb4utf8mb4_unicode_ci—
4modevarchar(30)否———utf8mb4utf8mb4_unicode_ci—
5row_countint(10) unsigned否0—————
6file_pathvarchar(500)是NULL——utf8mb4utf8mb4_unicode_ci—
7file_sizebigint(20) unsigned是NULL—————
8checksum_sha256char(64)是NULL——utf8mb4utf8mb4_unicode_ci—
9statusvarchar(30)否———utf8mb4utf8mb4_unicode_ci—
10error_messagevarchar(500)是NULL——utf8mb4utf8mb4_unicode_ci—
11started_attimestamp是NULL—————
12finished_attimestamp是NULL—————
13created_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
archive_batch_idx否BTREEbatch_id0—
archive_table_status_idx否BTREEtable_name, status, created_at0—
PRIMARY是BTREEid0—

外键约束 ​

无数据库级外键约束。

2.11 automation_logs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:1290
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2task_keyvarchar(80)否—MUL—utf8mb4utf8mb4_unicode_ci—
3actionvarchar(80)否———utf8mb4utf8mb4_unicode_ci—
4object_typevarchar(40)否—MUL—utf8mb4utf8mb4_unicode_ci—
5object_idbigint(20) unsigned否——————
6rule_keyvarchar(191)否空字符串——utf8mb4utf8mb4_unicode_ci—
7metajson是NULL—————
8executed_attimestamp是NULL—————
9created_attimestamp是NULL—————
10updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
automation_logs_object_idx否BTREEobject_type, object_id0—
automation_logs_task_key_index否BTREEtask_key0—
automation_logs_unique_rule是BTREEtask_key, action, object_type, object_id, rule_key0—
PRIMARY是BTREEid0—

外键约束 ​

无数据库级外键约束。

2.12 content_articles ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:8
  • 数据大小:16 KB
  • 索引大小:96 KB
  • 自增值:45
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2content_typevarchar(20)否—MUL—utf8mb4utf8mb4_unicode_cinotice|help
3category_idbigint(20) unsigned是NULLMUL————
4titlevarchar(200)否———utf8mb4utf8mb4_unicode_ci—
5slugvarchar(220)否—UNI—utf8mb4utf8mb4_unicode_ci—
6summaryvarchar(500)是NULL——utf8mb4utf8mb4_unicode_ci—
7contentlongtext否———utf8mb4utf8mb4_unicode_ci—
8category_namevarchar(60)是NULL——utf8mb4utf8mb4_unicode_ci—
9keywordsvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
10cover_imagevarchar(500)是NULL——utf8mb4utf8mb4_unicode_ci—
11statustinyint(4)否0————0=草稿 1=已发布 2=已下线
12is_pinnedtinyint(4)否0—————
13is_recommendedtinyint(4)否0—————
14sort_orderint(11)否0—————
15view_countint(10) unsigned否0—————
16require_reread_attimestamp是NULL—————
17publish_attimestamp是NULL—————
18last_published_attimestamp是NULL—————
19created_bybigint(20) unsigned是NULL—————
20updated_bybigint(20) unsigned是NULL—————
21operatorvarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci—
22remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
23trace_idvarchar(64)是NULL——utf8mb4utf8mb4_unicode_ci—
24created_attimestamp是NULL—————
25updated_attimestamp是NULL—————
26deleted_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
content_articles_slug_unique是BTREEslug8—
idx_article_category_published否BTREEcategory_id, status, publish_at7—
idx_content_article_type_category否BTREEcontent_type, category_id8—
idx_content_type_pin_sort否BTREEcontent_type, is_pinned, sort_order, id8—
idx_content_type_recommend否BTREEcontent_type, is_recommended, publish_at6—
idx_content_type_status_publish否BTREEcontent_type, status, publish_at6—
PRIMARY是BTREEid8—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_content_articles_category_idcategory_idcontent_categoriesidRESTRICTSET NULL

2.13 content_categories ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:6
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:19
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2content_typevarchar(20)否—MUL—utf8mb4utf8mb4_unicode_cinotice|help
3namevarchar(80)否———utf8mb4utf8mb4_unicode_ci—
4slugvarchar(120)否———utf8mb4utf8mb4_unicode_ci—
5descriptionvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
6statustinyint(4)否1————0=禁用 1=启用
7sort_orderint(11)否0—————
8created_bybigint(20) unsigned是NULL—————
9updated_bybigint(20) unsigned是NULL—————
10created_attimestamp是NULL—————
11updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
idx_content_category_type_status_sort否BTREEcontent_type, status, sort_order2—
PRIMARY是BTREEid6—
uniq_content_category_type_name是BTREEcontent_type, name6—
uniq_content_category_type_slug是BTREEcontent_type, slug6—

外键约束 ​

无数据库级外键约束。

2.14 coupons ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:14
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:106
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2coupon_campaign_idbigint(20) unsigned是NULLMUL————
3namevarchar(120)否———utf8mb4utf8mb4_unicode_ci—
4codevarchar(50)否—UNI—utf8mb4utf8mb4_unicode_ci—
5descriptionvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
6distribution_typevarchar(20)否public——utf8mb4utf8mb4_unicode_ci—
7discount_scopevarchar(20)否first_month——utf8mb4utf8mb4_unicode_ci—
8discount_typevarchar(20)否———utf8mb4utf8mb4_unicode_ci—
9discount_valuedecimal(12,2)否0.00—————
10min_amountdecimal(12,2)否0.00—————
11max_discount_amountdecimal(12,2)是NULL—————
12billing_cyclesjson是NULL—————
13product_idsjson是NULL—————
14first_order_onlytinyint(1)否0—————
15total_usage_limitint(10) unsigned是NULL—————
16per_user_limitint(10) unsigned是NULL—————
17used_countint(10) unsigned否0—————
18statustinyint(4)否1MUL———状态:0=禁用 1=启用
19sort_orderint(10) unsigned否0—————
20starts_attimestamp是NULL—————
21expires_attimestamp是NULL—————
22remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
23operatorvarchar(100)是NULL——utf8mb4utf8mb4_unicode_ci—
24trace_idvarchar(100)是NULL——utf8mb4utf8mb4_unicode_ci—
25created_attimestamp是NULL—————
26updated_attimestamp是NULL—————
27allow_agenttinyint(1)否1—————

索引 ​

索引名唯一类型字段基数注释
coupons_campaign_status_idx否BTREEcoupon_campaign_id, status4—
coupons_code_unique是BTREEcode14—
coupons_status_sort_idx否BTREEstatus, sort_order2—
PRIMARY是BTREEid14—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_coupons_coupon_campaign_idcoupon_campaign_idcoupon_campaignsidRESTRICTSET NULL

2.15 coupon_campaigns ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:3
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:19
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2namevarchar(120)否———utf8mb4utf8mb4_unicode_ci—
3descriptionvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
4weekdaysjson是NULL—————
5trigger_timevarchar(8)否—MUL—utf8mb4utf8mb4_unicode_ci—
6issue_quantityint(10) unsigned否1—————
7valid_duration_hoursint(10) unsigned是NULL—————
8discount_scopevarchar(20)否first_month——utf8mb4utf8mb4_unicode_ci—
9discount_typevarchar(20)否———utf8mb4utf8mb4_unicode_ci—
10discount_valuedecimal(12,2)否0.00—————
11min_amountdecimal(12,2)否0.00—————
12max_discount_amountdecimal(12,2)是NULL—————
13billing_cyclesjson是NULL—————
14product_idsjson是NULL—————
15first_order_onlytinyint(1)否0—————
16per_user_limitint(10) unsigned是NULL—————
17statustinyint(4)否1MUL———状态:0=禁用 1=启用
18sort_orderint(10) unsigned否0—————
19last_dispatched_attimestamp是NULL—————
20last_coupon_idbigint(20) unsigned是NULLMUL————
21remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
22operatorvarchar(100)是NULL——utf8mb4utf8mb4_unicode_ci—
23trace_idvarchar(100)是NULL——utf8mb4utf8mb4_unicode_ci—
24created_attimestamp是NULL—————
25updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
coupon_campaigns_status_sort_idx否BTREEstatus, sort_order1—
coupon_campaigns_trigger_status_idx否BTREEtrigger_time, status2—
idx_stage2_coupon_campaigns_last_coupon_id否BTREElast_coupon_id3—
PRIMARY是BTREEid3—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_coupon_campaigns_last_coupon_idlast_coupon_idcouponsidRESTRICTSET NULL

2.16 failed_jobs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:16 KB
  • 自增值:277
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2uuidvarchar(255)否—UNI—utf8mb4utf8mb4_unicode_ci—
3connectiontext否———utf8mb4utf8mb4_unicode_ci—
4queuetext否———utf8mb4utf8mb4_unicode_ci—
5payloadlongtext否———utf8mb4utf8mb4_unicode_ci—
6exceptionlongtext否———utf8mb4utf8mb4_unicode_ci—
7failed_attimestamp否CURRENT_TIMESTAMP—————

索引 ​

索引名唯一类型字段基数注释
failed_jobs_uuid_unique是BTREEuuid0—
PRIMARY是BTREEid0—

外键约束 ​

无数据库级外键约束。

2.17 first_product_groups ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:36
  • 数据大小:16 KB
  • 索引大小:32 KB
  • 自增值:110
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2codevarchar(50)是NULLUNI—utf8mb4utf8mb4_unicode_ci业务编码:vps/dedicated/domain/…
3product_typevarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci商品类型:cloud_server/game_cloud/…
4namevarchar(100)否———utf8mb4utf8mb4_unicode_ci名称
5slugvarchar(100)是NULLUNI—utf8mb4utf8mb4_unicode_ciURL标识
6descriptionvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci分组说明
7iconvarchar(100)是NULL——utf8mb4utf8mb4_unicode_ci图标
8banner_imagevarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci横幅图
9sort_orderint(11)否0————排序
10is_visibletinyint(3) unsigned否1————前台可见
11is_systemtinyint(3) unsigned否0————系统内置
12created_attimestamp是NULL—————
13updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
first_product_groups_code_unique是BTREEcode36—
first_product_groups_slug_unique是BTREEslug36—
PRIMARY是BTREEid36—

外键约束 ​

无数据库级外键约束。

2.18 gateway_logs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:112 KB
  • 自增值:1000078
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2plugin_idbigint(20) unsigned是NULLMUL————
3gateway_keyvarchar(120)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
4gatewayvarchar(50)否—MUL—utf8mb4utf8mb4_unicode_ci网关标识: alipay_f2f, wechat_native 等
5actionvarchar(50)否———utf8mb4utf8mb4_unicode_ci操作: precreate, notify, query, refund
6out_trade_novarchar(128)是NULLMUL—utf8mb4utf8mb4_unicode_ci商户订单号
7trade_novarchar(128)是NULL——utf8mb4utf8mb4_unicode_ci第三方交易号
8invoice_idbigint(20) unsigned是NULLMUL———关联账单ID
9trace_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
10request_datajson是NULL————请求数据(脱敏后)
11response_datajson是NULL————响应数据
12result_statusvarchar(20)否unknown——utf8mb4utf8mb4_unicode_ci结果: success, failed, pending, unknown
13error_msgtext是NULL——utf8mb4utf8mb4_unicode_ci错误信息
14ip_addressvarchar(45)是NULL——utf8mb4utf8mb4_unicode_ci—
15created_attimestamp是NULLMUL————
16updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
gateway_logs_created_at_index否BTREEcreated_at0—
gateway_logs_gateway_action_index否BTREEgateway, action0—
gateway_logs_gateway_key_idx否BTREEgateway_key, created_at0—
gateway_logs_invoice_id_index否BTREEinvoice_id0—
gateway_logs_out_trade_no_index否BTREEout_trade_no0—
gateway_logs_plugin_created_idx否BTREEplugin_id, created_at0—
gateway_logs_trace_idx否BTREEtrace_id0—
PRIMARY是BTREEid0—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_gateway_logs_invoice_idinvoice_idinvoicesidRESTRICTSET NULL
gateway_logs_plugin_fkplugin_idintegration_pluginsidRESTRICTSET NULL

2.19 integration_plugins ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:6
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:57
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2domainvarchar(32)否—MUL—utf8mb4utf8mb4_unicode_ci—
3slugvarchar(120)否———utf8mb4utf8mb4_unicode_ci—
4plugin_keyvarchar(120)否———utf8mb4utf8mb4_unicode_ci—
5namevarchar(120)否———utf8mb4utf8mb4_unicode_ci—
6versionvarchar(32)否1.0.0——utf8mb4utf8mb4_unicode_ci—
7manifest_hashvarchar(64)是NULL——utf8mb4utf8mb4_unicode_ci—
8provider_classvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
9entry_classvarchar(255)否———utf8mb4utf8mb4_unicode_ci—
10capabilities_jsonjson是NULL—————
11config_schema_jsonjson是NULL—————
12statustinyint(3) unsigned否0—————
13installed_attimestamp是NULL—————
14enabled_attimestamp是NULL—————
15disabled_attimestamp是NULL—————
16installed_bybigint(20) unsigned是NULL—————
17enabled_bybigint(20) unsigned是NULL—————
18source_hashvarchar(128)是NULL——utf8mb4utf8mb4_unicode_ci—
19created_attimestamp是NULL—————
20updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
integration_plugins_domain_key_unique是BTREEdomain, plugin_key6—
integration_plugins_domain_slug_unique是BTREEdomain, slug6—
integration_plugins_domain_status_index否BTREEdomain, status2—
PRIMARY是BTREEid6—

外键约束 ​

无数据库级外键约束。

2.20 integration_plugin_bindings ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:1
  • 数据大小:16 KB
  • 索引大小:80 KB
  • 自增值:3
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2domainvarchar(32)否—MUL—utf8mb4utf8mb4_unicode_ci—
3plugin_idbigint(20) unsigned否—MUL————
4binding_typevarchar(50)否———utf8mb4utf8mb4_unicode_ciglobal/supplier/product/service/payment/notification/custom
5bindable_typevarchar(120)否globalMUL—utf8mb4utf8mb4_unicode_ci—
6bindable_idbigint(20) unsigned否0—————
7binding_keyvarchar(120)否———utf8mb4utf8mb4_unicode_ci同一对象下的绑定名
8provider_keyvarchar(120)是NULL——utf8mb4utf8mb4_unicode_ci外部协议标识快照
9priorityint(11)否0—————
10statustinyint(3) unsigned否1—————
11config_jsonjson是NULL—————
12secret_jsonlongtext是NULL——utf8mb4utf8mb4_unicode_ci—
13has_secret_jsonjson是NULL—————
14runtime_policy_jsonjson是NULL—————
15created_bybigint(20) unsigned是NULL—————
16updated_bybigint(20) unsigned是NULL—————
17backfill_batch_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
18created_attimestamp是NULL—————
19updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
plugin_bindings_backfill_batch_idx否BTREEbackfill_batch_id1—
plugin_bindings_bindable_idx否BTREEbindable_type, bindable_id, domain1—
plugin_bindings_domain_provider_status_idx否BTREEdomain, provider_key, status1—
plugin_bindings_plugin_status_idx否BTREEplugin_id, status1—
plugin_bindings_unique是BTREEdomain, binding_type, bindable_type, bindable_id, binding_key1—
PRIMARY是BTREEid1—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
integration_plugin_bindings_plugin_id_foreignplugin_idintegration_pluginsidRESTRICTRESTRICT

2.21 integration_plugin_configs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:1
  • 数据大小:16 KB
  • 索引大小:16 KB
  • 自增值:39
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2plugin_idbigint(20) unsigned否—UNI————
3config_jsonjson是NULL—————
4secret_jsonlongtext是NULL——utf8mb4utf8mb4_unicode_ci—
5has_secret_jsonjson是NULL—————
6updated_bybigint(20) unsigned是NULL—————
7created_attimestamp是NULL—————
8updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
integration_plugin_configs_plugin_unique是BTREEplugin_id1—
PRIMARY是BTREEid1—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
integration_plugin_configs_plugin_id_foreignplugin_idintegration_pluginsidRESTRICTCASCADE

2.22 integration_plugin_runtime_logs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:2
  • 数据大小:16 KB
  • 索引大小:80 KB
  • 自增值:1014091
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2trace_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
3domainvarchar(32)否—MUL—utf8mb4utf8mb4_unicode_ci—
4plugin_idbigint(20) unsigned是NULLMUL————
5plugin_keyvarchar(120)否———utf8mb4utf8mb4_unicode_ci—
6slugvarchar(120)否———utf8mb4utf8mb4_unicode_ci—
7actionvarchar(120)否———utf8mb4utf8mb4_unicode_ci—
8binding_idbigint(20) unsigned是NULL—————
9bindable_typevarchar(120)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
10bindable_idbigint(20) unsigned是NULL—————
11actor_typevarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci—
12actor_idbigint(20) unsigned是NULL—————
13statusvarchar(30)否—MUL—utf8mb4utf8mb4_unicode_ci—
14duration_msint(10) unsigned是NULL—————
15error_codevarchar(80)是NULL——utf8mb4utf8mb4_unicode_ci—
16error_messagevarchar(500)是NULL——utf8mb4utf8mb4_unicode_ci—
17request_meta_jsonjson是NULL—————
18response_meta_jsonjson是NULL—————
19created_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
plugin_runtime_bindable_idx否BTREEbindable_type, bindable_id, created_at1—
plugin_runtime_domain_action_created_idx否BTREEdomain, action, created_at2—
plugin_runtime_plugin_created_idx否BTREEplugin_id, created_at1—
plugin_runtime_status_created_idx否BTREEstatus, created_at1—
plugin_runtime_trace_idx否BTREEtrace_id2—
PRIMARY是BTREEid2—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
integration_plugin_runtime_logs_plugin_id_foreignplugin_idintegration_pluginsidRESTRICTSET NULL

2.23 invoices ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:44
  • 数据大小:16 KB
  • 索引大小:208 KB
  • 自增值:3068
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:账单主表,所有购买、续费、充值、扣款和退款流程以账单为财务入口

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment——账单自增主键
2invoice_novarchar(32)否—UNI—utf8mb4utf8mb4_unicode_ci业务账单号,对外展示和支付关联使用
3user_idbigint(20) unsigned否—MUL———所属用户ID
4order_idbigint(20) unsigned是NULLMUL———内部订单/开通投影ID,仅用于流程追踪
5origin_invoice_idbigint(20) unsigned是NULLMUL————
6product_idbigint(20) unsigned是NULLMUL———关联商品ID,手工账单可为空
7product_spec_snapshotvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci账单生成时的商品规格展示快照
8product_type_snapshotvarchar(100)是NULL——utf8mb4utf8mb4_unicode_ci账单生成时的商品类型快照
9service_idbigint(20) unsigned是NULLMUL———关联服务实例ID
10coupon_idbigint(20) unsigned是NULLMUL———使用的优惠券模板ID
11user_coupon_idbigint(20) unsigned是NULLMUL———使用的用户优惠券ID
12coupon_codevarchar(100)是NULL——utf8mb4utf8mb4_unicode_ci使用的优惠码快照
13typevarchar(20)否normal——utf8mb4utf8mb4_unicode_ci账单类型:normal/new/renew/recharge/deduction/referral_credit/manual/upgrade
14amountdecimal(12,2)否—————账单应收金额
15currencyvarchar(3)否CNY——utf8mb4utf8mb4_unicode_ci—
16discountdecimal(12,2)否0.00————账单优惠抵扣金额
17billing_cyclevarchar(30)是NULL——utf8mb4utf8mb4_unicode_ci计费周期:monthly/quarterly/annually/onetime 等
18quantityint(10) unsigned否1————购买数量或计费数量
19config_snapshotjson是NULL————下单配置快照 JSON
20config_pricing_snapshotjson是NULL————配置项计价快照 JSON
21coupon_snapshotjson是NULL————优惠券使用快照 JSON
22paid_amountdecimal(12,2)否0.00————已支付入账金额
23statustinyint(4)否0MUL———账单状态:0未付 1已付 2已取消 3逾期 5已退款 6部分退款
24due_datedate是NULL—————
25paid_attimestamp是NULL————账单支付完成时间
26deleted_attimestamp是NULL—————
27refund_trace_idvarchar(64)是NULL——utf8mb4utf8mb4_unicode_ci退款链路追踪号
28refund_methodvarchar(32)是NULL——utf8mb4utf8mb4_unicode_ci退款方式
29refund_amountdecimal(12,2)是NULL————退款金额
30refunded_attimestamp是NULL————退款完成时间
31created_attimestamp是NULL————创建时间
32updated_attimestamp是NULL————更新时间
33remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci账单备注
34operatorvarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci操作人快照
35trace_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci链路追踪号
36idempotency_keyvarchar(64)是NULL——utf8mb4utf8mb4_unicode_ci开放 API 下单幂等键,同一用户内唯一;站内下单为 NULL

索引 ​

索引名唯一类型字段基数注释
fk_invoices_user_coupon_id否BTREEuser_coupon_id6—
idx_stage2_invoices_coupon_id否BTREEcoupon_id6—
invoices_invoice_no_unique是BTREEinvoice_no44—
invoices_order_id_idx否BTREEorder_id24—
invoices_origin_invoice_id_foreign否BTREEorigin_invoice_id1—
invoices_product_id_idx否BTREEproduct_id22—
invoices_service_id_idx否BTREEservice_id8—
invoices_status_due_date_index否BTREEstatus, due_date6—
invoices_status_paid_at_idx否BTREEstatus, paid_at23—
invoices_trace_id_idx否BTREEtrace_id44—
invoices_user_idempotency_key_unique是BTREEuser_id, idempotency_key37—
invoices_user_status_created_idx否BTREEuser_id, status, created_at39—
invoices_user_status_id_idx否BTREEuser_id, status, id44—
PRIMARY是BTREEid44—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_invoices_order_idorder_idordersidRESTRICTSET NULL
fk_invoices_product_idproduct_idproductsidRESTRICTRESTRICT
fk_invoices_user_coupon_iduser_coupon_iduser_couponsidRESTRICTSET NULL
fk_invoices_user_iduser_idusersidRESTRICTRESTRICT
fk_stage2_invoices_coupon_idcoupon_idcouponsidRESTRICTSET NULL
fk_stage2_invoices_service_idservice_idservicesidRESTRICTSET NULL
invoices_origin_invoice_id_foreignorigin_invoice_idinvoicesidRESTRICTSET NULL

2.24 invoice_items ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:1
  • 数据大小:16 KB
  • 索引大小:16 KB
  • 自增值:2799
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:账单明细表,记录账单内每个收费项目和快照信息

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment——账单明细自增主键
2invoice_idbigint(20) unsigned否—MUL———所属账单ID
3item_namevarchar(200)否———utf8mb4utf8mb4_unicode_ci明细名称
4item_typevarchar(30)否normal——utf8mb4utf8mb4_unicode_ci明细类型:normal/config/addon/discount/refund 等
5quantityint(10) unsigned否1————明细数量
6unit_pricedecimal(12,2)否0.00————明细单价
7discount_amountdecimal(12,2)否0.00————明细优惠金额
8line_amountdecimal(12,2)否0.00————明细小计金额
9meta_jsonjson是NULL————明细扩展快照 JSON
10created_attimestamp是NULL————创建时间
11updated_attimestamp是NULL————更新时间

索引 ​

索引名唯一类型字段基数注释
invoice_items_invoice_id_index否BTREEinvoice_id1—
PRIMARY是BTREEid1—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_invoice_items_invoice_idinvoice_idinvoicesidRESTRICTCASCADE

2.25 jobs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:16 KB
  • 自增值:4002
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2queuevarchar(255)否—MUL—utf8mb4utf8mb4_unicode_ci—
3payloadlongtext否———utf8mb4utf8mb4_unicode_ci—
4attemptstinyint(3) unsigned否——————
5reserved_atint(10) unsigned是NULL—————
6available_atint(10) unsigned否——————
7created_atint(10) unsigned否——————

索引 ​

索引名唯一类型字段基数注释
jobs_queue_index否BTREEqueue0—
PRIMARY是BTREEid0—

外键约束 ​

无数据库级外键约束。

2.26 media_files ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:68
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2filenamevarchar(255)否———utf8mb4utf8mb4_unicode_ci—
3pathvarchar(500)否———utf8mb4utf8mb4_unicode_ci相对路径,如 /uploads/content/20260419/cover_xxx.jpg
4urlvarchar(500)否———utf8mb4utf8mb4_unicode_ci完整访问 URL
5mime_typevarchar(100)是NULL——utf8mb4utf8mb4_unicode_ci—
6sizebigint(20) unsigned否0————文件大小(字节)
7widthint(10) unsigned是NULL————图片宽度
8heightint(10) unsigned是NULL————图片高度
9groupvarchar(50)否contentMUL—utf8mb4utf8mb4_unicode_ci分组: content, avatar, brand 等
10uploaded_bybigint(20) unsigned否0MUL———上传管理员ID
11created_attimestamp是NULLMUL————
12updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
media_files_created_at_index否BTREEcreated_at0—
media_files_group_index否BTREEgroup0—
media_files_uploaded_by_index否BTREEuploaded_by0—
PRIMARY是BTREEid0—

外键约束 ​

无数据库级外键约束。

2.27 member_levels ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:12
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2namevarchar(50)否———utf8mb4utf8mb4_unicode_ci—
3codevarchar(30)否—UNI—utf8mb4utf8mb4_unicode_ci—
4sales_amount_mindecimal(12,2)否0.00MUL————
5sales_amount_maxdecimal(12,2)是NULL—————
6reward_ratedecimal(5,2)否0.00—————
7statustinyint(4)否1MUL———0=禁用 1=启用
8sort_orderint(11)否0—————
9remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
10created_attimestamp是NULL—————
11updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
idx_member_level_sales_range否BTREEsales_amount_min, sales_amount_max0—
idx_member_level_status_sort否BTREEstatus, sort_order0—
member_levels_code_unique是BTREEcode0—
PRIMARY是BTREEid0—

外键约束 ​

无数据库级外键约束。

2.28 message_logs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:2
  • 数据大小:16 KB
  • 索引大小:112 KB
  • 自增值:2616
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment——消息日志ID
2plugin_idbigint(20) unsigned是NULLMUL———插件ID
3driver_keyvarchar(120)是NULLMUL—utf8mb4utf8mb4_unicode_ci驱动标识
4trace_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci链路追踪ID
5channelvarchar(20)否—MUL—utf8mb4utf8mb4_unicode_ci消息渠道:email/sms
6recipientvarchar(255)否—MUL—utf8mb4utf8mb4_unicode_ci接收人邮箱或手机号
7template_codevarchar(120)是NULL——utf8mb4utf8mb4_unicode_ci业务模板编码或供应商模板ID
8subjectvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci邮件主题
9contentmediumtext否———utf8mb4utf8mb4_unicode_ci发送内容快照
10params_jsonjson是NULL————渲染参数快照
11providervarchar(120)是NULL——utf8mb4utf8mb4_unicode_ci供应商或驱动
12request_idvarchar(100)是NULLMUL—utf8mb4utf8mb4_unicode_ci供应商请求ID
13statusvarchar(20)否pending——utf8mb4utf8mb4_unicode_ci发送状态
14error_msgtext是NULL——utf8mb4utf8mb4_unicode_ci失败原因
15sent_attimestamp是NULL————发送完成时间
16origin_typevarchar(50)是NULLMUL—utf8mb4utf8mb4_unicode_ci来源类型快照
17origin_idbigint(20) unsigned是NULL————来源ID快照
18created_attimestamp是NULL—————
19updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
message_logs_channel_driver_idx否BTREEchannel, driver_key, created_at2—
message_logs_driver_created_idx否BTREEdriver_key, created_at2—
message_logs_origin_idx否BTREEorigin_type, origin_id2—
message_logs_plugin_created_idx否BTREEplugin_id, created_at1—
message_logs_recipient_created_at_idx否BTREErecipient, created_at2—
message_logs_request_id_idx否BTREErequest_id2—
message_logs_trace_idx否BTREEtrace_id2—
PRIMARY是BTREEid2—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
message_logs_plugin_fkplugin_idintegration_pluginsidRESTRICTSET NULL

2.29 migrations ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:209
  • 数据大小:48 KB
  • 索引大小:0 B
  • 自增值:212
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idint(10) unsigned否—PRIauto_increment———
2migrationvarchar(255)否———utf8mb4utf8mb4_unicode_ci—
3batchint(11)否——————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid209—

外键约束 ​

无数据库级外键约束。

2.30 notice_reads ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:2
  • 数据大小:16 KB
  • 索引大小:32 KB
  • 自增值:175
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2user_idbigint(20) unsigned否—MUL————
3article_idbigint(20) unsigned否—MUL————
4read_attimestamp否CURRENT_TIMESTAMP—on update CURRENT_TIMESTAMP———
5created_attimestamp否CURRENT_TIMESTAMP—————

索引 ​

索引名唯一类型字段基数注释
notice_reads_article_id_index否BTREEarticle_id2—
notice_reads_user_id_article_id_unique是BTREEuser_id, article_id2—
PRIMARY是BTREEid2—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_notice_reads_article_idarticle_idcontent_articlesidRESTRICTCASCADE
fk_stage2_notice_reads_user_iduser_idusersidRESTRICTCASCADE

2.31 notification_templates ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:32 KB
  • 自增值:1013
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2channelvarchar(20)否—MUL—utf8mb4utf8mb4_unicode_ci—
3codevarchar(64)否———utf8mb4utf8mb4_unicode_ci—
4namevarchar(120)否———utf8mb4utf8mb4_unicode_ci—
5descriptionvarchar(500)否空字符串——utf8mb4utf8mb4_unicode_ci—
6audiencevarchar(20)否user——utf8mb4utf8mb4_unicode_ci—
7subjectvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
8contentlongtext否———utf8mb4utf8mb4_unicode_ci—
9variables_jsonjson是NULL—————
10provider_variables_jsonjson是NULL—————
11provider_template_idvarchar(120)是NULL——utf8mb4utf8mb4_unicode_ci—
12is_enabledtinyint(1)否1—————
13is_customtinyint(1)否0—————
14sort_orderint(10) unsigned否0—————
15created_attimestamp是NULL—————
16updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
notification_templates_channel_audience_enabled_index否BTREEchannel, audience, is_enabled0—
notification_templates_channel_code_unique是BTREEchannel, code0—
PRIMARY是BTREEid0—

外键约束 ​

无数据库级外键约束。

2.32 operation_logs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:414
  • 数据大小:208 KB
  • 索引大小:80 KB
  • 自增值:166202
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2user_idbigint(20) unsigned是NULLMUL————
3user_typevarchar(10)是NULL——utf8mb4utf8mb4_unicode_ciadmin|client
4actionvarchar(100)否———utf8mb4utf8mb4_unicode_ci—
5modulevarchar(50)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
6subject_idbigint(20) unsigned是NULL—————
7contextjson是NULL—————
8ip_addressvarchar(45)是NULL——utf8mb4utf8mb4_unicode_ci—
9created_attimestamp否CURRENT_TIMESTAMPMUL————

索引 ​

索引名唯一类型字段基数注释
operation_logs_created_at_idx否BTREEcreated_at98—
operation_logs_module_created_at_index否BTREEmodule, created_at149—
operation_logs_module_subject_created_idx否BTREEmodule, subject_id, created_at, id414—
operation_logs_user_created_at_idx否BTREEuser_id, created_at240—
operation_logs_user_type_created_at_idx否BTREEuser_id, user_type, created_at240—
PRIMARY是BTREEid414—

外键约束 ​

无数据库级外键约束。

2.33 orders ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:26
  • 数据大小:16 KB
  • 索引大小:176 KB
  • 自增值:3114
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2order_novarchar(32)否—UNI—utf8mb4utf8mb4_unicode_ci—
3user_idbigint(20) unsigned否—MUL————
4product_idbigint(20) unsigned是NULLMUL————
5product_spec_snapshotvarchar(200)是NULL——utf8mb4utf8mb4_unicode_ci—
6product_type_snapshotvarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci—
7service_idbigint(20) unsigned是NULLMUL————
8typevarchar(20)否———utf8mb4utf8mb4_unicode_cinew|renew|upgrade|downgrade
9coupon_idbigint(20) unsigned是NULLMUL————
10user_coupon_idbigint(20) unsigned是NULLMUL————
11coupon_codevarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci—
12amountdecimal(12,2)否——————
13currencyvarchar(3)否CNY——utf8mb4utf8mb4_unicode_ci—
14discountdecimal(12,2)否0.00—————
15paid_amountdecimal(12,2)否0.00—————
16billing_cyclevarchar(20)是NULL——utf8mb4utf8mb4_unicode_ci—
17quantityint(10) unsigned否1—————
18config_snapshotjson是NULL—————
19config_pricing_snapshotjson是NULL—————
20coupon_snapshotjson是NULL—————
21service_snapshotjson是NULL————服务实例快照:
22statustinyint(4)否0MUL———0=待付款 1=已付款 2=开通中 3=已完成 4=已取消 5=已退款
23paid_attimestamp是NULL—————
24deleted_attimestamp是NULL—————
25created_attimestamp是NULLMUL————
26updated_attimestamp是NULL—————
27remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci备注
28operatorvarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci操作人
29trace_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci链路追踪号
30projection_typevarchar(32)否provisioningMUL—utf8mb4utf8mb4_unicode_ci内部投影类型:provisioning=开通投影

索引 ​

索引名唯一类型字段基数注释
orders_coupon_id_idx否BTREEcoupon_id1—
orders_created_at_idx否BTREEcreated_at15—
orders_order_no_unique是BTREEorder_no26—
orders_product_id_idx否BTREEproduct_id23—
orders_projection_type_idx否BTREEprojection_type1—
orders_service_status_id_idx否BTREEservice_id, status, id26—
orders_status_type_created_at_idx否BTREEstatus, type, created_at, id26—
orders_trace_id_idx否BTREEtrace_id11—
orders_user_coupon_id_idx否BTREEuser_coupon_id1—
orders_user_id_index否BTREEuser_id23—
orders_user_status_id_idx否BTREEuser_id, status, id26—
PRIMARY是BTREEid26—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_orders_coupon_idcoupon_idcouponsidRESTRICTSET NULL
fk_stage2_orders_product_idproduct_idproductsidRESTRICTRESTRICT
fk_stage2_orders_service_idservice_idservicesidRESTRICTSET NULL
fk_stage2_orders_user_coupon_iduser_coupon_iduser_couponsidRESTRICTSET NULL
fk_stage2_orders_user_iduser_idusersidRESTRICTRESTRICT

2.34 password_reset_tokens ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:0 B
  • 自增值:—
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1emailvarchar(255)否—PRI—utf8mb4utf8mb4_unicode_ci—
2tokenvarchar(255)否———utf8mb4utf8mb4_unicode_ci—
3created_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEemail0—

外键约束 ​

无数据库级外键约束。

2.35 payments ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:19
  • 数据大小:16 KB
  • 索引大小:160 KB
  • 自增值:387
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:第三方支付记录表,仅记录真实外部资金流入和退款状态,不记录余额/免费/手工开服

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment——支付记录自增主键
2payment_novarchar(32)否—UNI—utf8mb4utf8mb4_unicode_ci内部支付单号
3user_idbigint(20) unsigned否—MUL———支付用户ID
4order_idbigint(20) unsigned是NULLMUL———内部订单/开通投影ID,仅用于流程追踪
5invoice_idbigint(20) unsigned是NULLMUL———关联账单ID
6plugin_idbigint(20) unsigned是NULLMUL————
7gateway_keyvarchar(120)是NULL——utf8mb4utf8mb4_unicode_ci—
8trade_novarchar(100)是NULLMUL—utf8mb4utf8mb4_unicode_ci第三方交易号
9amountdecimal(12,2)否—————第三方支付金额
10currencyvarchar(3)否CNY——utf8mb4utf8mb4_unicode_ci—
11statustinyint(4)否0MUL———支付状态:0待支付 1成功 2失败 3已退款 4已取消
12callback_rawjson是NULL————最近一次回调原始载荷 JSON
13paid_attimestamp是NULL————第三方确认支付时间
14deleted_attimestamp是NULL—————
15created_attimestamp是NULL————创建时间
16updated_attimestamp是NULL————更新时间
17remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci支付备注
18operatorvarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci操作人快照
19trace_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci链路追踪号

索引 ​

索引名唯一类型字段基数注释
payments_invoice_gateway_status_id_idx否BTREEinvoice_id, status, id19—
payments_invoice_status_created_at_idx否BTREEinvoice_id, status, created_at, id19—
payments_order_status_idx否BTREEorder_id, status16—
payments_payment_no_unique是BTREEpayment_no19—
payments_plugin_status_paid_idx否BTREEplugin_id, status, paid_at9—
payments_plugin_trade_unique是BTREEplugin_id, gateway_key, trade_no19—
payments_status_paid_at_idx否BTREEstatus, paid_at9—
payments_trace_id_idx否BTREEtrace_id19—
payments_trade_no_index否BTREEtrade_no19—
payments_user_status_created_idx否BTREEuser_id, status, created_at19—
PRIMARY是BTREEid19—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_payments_invoice_idinvoice_idinvoicesidRESTRICTRESTRICT
fk_payments_user_iduser_idusersidRESTRICTRESTRICT
fk_stage2_payments_order_idorder_idordersidRESTRICTSET NULL
payments_plugin_fkplugin_idintegration_pluginsidRESTRICTSET NULL

2.36 payment_callbacks ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:2
  • 数据大小:16 KB
  • 索引大小:96 KB
  • 自增值:490
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:支付回调审计表,保存第三方通知、查询、退款等回调验签结果

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment——支付回调自增主键
2payment_idbigint(20) unsigned否—MUL———关联支付记录ID
3plugin_idbigint(20) unsigned是NULLMUL————
4gateway_keyvarchar(120)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
5callback_typevarchar(20)否———utf8mb4utf8mb4_unicode_ci回调类型:notify/query/refund 等
6gateway_trade_novarchar(100)是NULLMUL—utf8mb4utf8mb4_unicode_ci第三方交易号
7payload_jsonjson是NULL————回调载荷 JSON
8is_verifiedtinyint(4)否0MUL———验签结果:0未通过/未验签 1已通过
9received_attimestamp是NULL————收到回调时间
10remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci回调备注或处理说明
11operatorvarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci操作人快照
12trace_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci链路追踪号
13created_attimestamp是NULL————创建时间
14updated_attimestamp是NULL————更新时间

索引 ​

索引名唯一类型字段基数注释
payment_callbacks_gateway_key_idx否BTREEgateway_key, received_at2—
payment_callbacks_gateway_trade_no_idx否BTREEgateway_trade_no2—
payment_callbacks_payment_type_unique是BTREEpayment_id, callback_type2—
payment_callbacks_plugin_received_idx否BTREEplugin_id, received_at2—
payment_callbacks_trace_id_idx否BTREEtrace_id2—
payment_callbacks_verified_received_idx否BTREEis_verified, received_at2—
PRIMARY是BTREEid2—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_payment_callbacks_payment_idpayment_idpaymentsidRESTRICTCASCADE
payment_callbacks_plugin_fkplugin_idintegration_pluginsidRESTRICTSET NULL

2.37 personal_access_tokens ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:1
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:176
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2tokenable_typevarchar(255)否—MUL—utf8mb4utf8mb4_unicode_ci—
3tokenable_idbigint(20) unsigned否——————
4nametext否———utf8mb4utf8mb4_unicode_ci—
5tokenvarchar(64)否—UNI—utf8mb4utf8mb4_unicode_ci—
6abilitiestext是NULL——utf8mb4utf8mb4_unicode_ci—
7last_used_attimestamp是NULL—————
8expires_attimestamp是NULLMUL————
9created_attimestamp是NULL—————
10updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
personal_access_tokens_expires_at_index否BTREEexpires_at1—
personal_access_tokens_tokenable_type_tokenable_id_index否BTREEtokenable_type, tokenable_id1—
personal_access_tokens_token_unique是BTREEtoken1—
PRIMARY是BTREEid1—

外键约束 ​

无数据库级外键约束。

2.38 products ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:210
  • 数据大小:80 KB
  • 索引大小:48 KB
  • 自增值:636
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:商品表,记录可售卖产品的分类、定价、库存、上游绑定和开通策略

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment——商品自增主键
2product_group_idbigint(20) unsigned是NULLMUL———当前所属商品分组ID
3service_type_codevarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci服务类型代码,用于前后端能力分流
4product_typevarchar(30)否—MUL—utf8mb4utf8mb4_unicode_ci商品类型:vps/dedicated/hosting/domain/other
5console_templatevarchar(32)否compute——utf8mb4utf8mb4_unicode_ci用户控制台模板:compute 或 port_mapping
6custom_display_namevarchar(190)是NULL——utf8mb4utf8mb4_unicode_ci自定义展示名称
7remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci商品备注
8pricingjson否—————周期价格 JSON,如 monthly/quarterly/annually
9cpu_modelvarchar(120)是NULL——utf8mb4utf8mb4_unicode_ciCPU 型号(分组批量设置,展示优先级高于目录绑定)
10cpu_turbovarchar(40)是NULL——utf8mb4utf8mb4_unicode_ciCPU 睿频(如 3.8GHz)
11setup_feedecimal(12,2)否0.00————初装费
12config_optionsjson是NULL————可选配置项 JSON
13purchase_requiresjson是NULL————购买限制 JSON,如实名认证、手机号要求
14stockint(11)否-1————库存数量,-1 表示不限
15stock_synced_attimestamp是NULLMUL———上游库存最近同步时间,为空表示从未同步
16statustinyint(4)否1————商品状态:0下架 1上架
17sort_orderint(11)否0————排序值,越小越靠前
18auto_setuptinyint(4)否0————是否自动开通:0手动 1自动
19created_attimestamp是NULL————创建时间
20updated_attimestamp是NULL————更新时间
21deleted_attimestamp是NULL————软删除时间
22product_discount_group_idbigint(20) unsigned是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid208—
products_group_status_sort_id_idx否BTREEproduct_group_id, status, sort_order, id208—
products_stock_synced_at_index否BTREEstock_synced_at1—
products_type_status_index否BTREEproduct_type, status11—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
products_product_group_fkproduct_group_idthird_product_groupsidRESTRICTRESTRICT

2.39 product_discount_groups ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:1
  • 数据大小:16 KB
  • 索引大小:16 KB
  • 自增值:4
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2namevarchar(50)否———utf8mb4utf8mb4_unicode_ci—
3codevarchar(30)否—UNI—utf8mb4utf8mb4_unicode_ci—
4min_discount_ratedecimal(5,2)否100.00—————
5cost_ratedecimal(5,2)否0.00—————
6statustinyint(4)否1—————
7sort_orderint(11)否0—————
8remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
9created_attimestamp是NULL—————
10updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid1—
product_discount_groups_code_unique是BTREEcode1—

外键约束 ​

无数据库级外键约束。

2.40 product_upstream_bindings ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:3
  • 数据大小:16 KB
  • 索引大小:96 KB
  • 自增值:284
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2product_idbigint(20) unsigned否—MUL————
3supplier_plugin_binding_idbigint(20) unsigned否—MUL————
4plugin_idbigint(20) unsigned否—MUL————
5provider_keyvarchar(120)否—MUL—utf8mb4utf8mb4_unicode_ci—
6upstream_product_idvarchar(120)否———utf8mb4utf8mb4_unicode_ci—
7upstream_product_snapshot_jsonjson是NULL—————
8option_schema_jsonjson是NULL—————
9provision_policy_jsonjson是NULL—————
10auto_setuptinyint(1)否0—————
11statustinyint(3) unsigned否1—————
12last_synced_attimestamp是NULL—————
13last_sync_errorvarchar(500)是NULL——utf8mb4utf8mb4_unicode_ci—
14backfill_batch_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
15created_attimestamp是NULL—————
16updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid3—
product_upstream_backfill_batch_idx否BTREEbackfill_batch_id1—
product_upstream_bindings_supplier_plugin_binding_id_foreign否BTREEsupplier_plugin_binding_id3—
product_upstream_plugin_status_idx否BTREEplugin_id, status1—
product_upstream_product_status_idx否BTREEproduct_id, status3—
product_upstream_provider_status_idx否BTREEprovider_key, status1—
product_upstream_unique是BTREEproduct_id, supplier_plugin_binding_id, upstream_product_id3—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
product_upstream_bindings_plugin_id_foreignplugin_idintegration_pluginsidRESTRICTRESTRICT
product_upstream_bindings_product_id_foreignproduct_idproductsidRESTRICTRESTRICT
product_upstream_bindings_supplier_plugin_binding_id_foreignsupplier_plugin_binding_idsupplier_plugin_bindingsidRESTRICTRESTRICT

2.41 recharge_records ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:144 KB
  • 自增值:1
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2record_novarchar(32)否—UNI—utf8mb4utf8mb4_unicode_ci—
3user_idbigint(20) unsigned否—MUL————
4order_idbigint(20) unsigned是NULLMUL————
5invoice_idbigint(20) unsigned是NULLMUL————
6payment_idbigint(20) unsigned是NULLUNI————
7account_transaction_idbigint(20) unsigned是NULLUNI————
8refund_idbigint(20) unsigned是NULLMUL————
9origin_recharge_record_idbigint(20) unsigned是NULLMUL————
10scenevarchar(30)否———utf8mb4utf8mb4_unicode_ci业务场景:recharge=支付充值 admin_recharge=管理员充值 refund=退款 等
11directionvarchar(8)否———utf8mb4utf8mb4_unicode_ci资金方向:in=入账 out=出账
12amountdecimal(12,2)否——————
13currencyvarchar(3)否CNY——utf8mb4utf8mb4_unicode_ci—
14entry_typevarchar(30)否———utf8mb4utf8mb4_unicode_ci入账类型:third_party_payment/manual_recharge/account_recharge/refund_offset
15remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
16operator_typevarchar(30)是NULL——utf8mb4utf8mb4_unicode_ci—
17operator_idbigint(20) unsigned是NULL—————
18operator_namevarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci—
19trace_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
20created_attimestamp是NULL—————
21updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid0—
recharge_records_account_transaction_id_unique是BTREEaccount_transaction_id0—
recharge_records_invoice_id_id_index否BTREEinvoice_id, id0—
recharge_records_order_id_id_index否BTREEorder_id, id0—
recharge_records_origin_recharge_record_id_id_index否BTREEorigin_recharge_record_id, id0—
recharge_records_payment_id_unique是BTREEpayment_id0—
recharge_records_record_no_unique是BTREErecord_no0—
recharge_records_refund_id_foreign否BTREErefund_id0—
recharge_records_trace_id_index否BTREEtrace_id0—
recharge_records_user_id_created_at_index否BTREEuser_id, created_at0—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
recharge_records_account_transaction_id_foreignaccount_transaction_idaccount_transactionsidRESTRICTSET NULL
recharge_records_invoice_id_foreigninvoice_idinvoicesidRESTRICTSET NULL
recharge_records_order_id_foreignorder_idordersidRESTRICTSET NULL
recharge_records_origin_recharge_record_id_foreignorigin_recharge_record_idrecharge_recordsidRESTRICTSET NULL
recharge_records_payment_id_foreignpayment_idpaymentsidRESTRICTSET NULL
recharge_records_refund_id_foreignrefund_idrefundsidRESTRICTSET NULL
recharge_records_user_id_foreignuser_idusersidRESTRICTRESTRICT

2.42 referral_account_logs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:64 KB
  • 自增值:7
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2user_idbigint(20) unsigned否—MUL————
3event_typevarchar(30)否———utf8mb4utf8mb4_unicode_cireward_frozen|reward_released|withdraw_apply|withdraw_approved|withdraw_rejected
4change_amountdecimal(12,2)否—————正=增加 负=减少
5frozen_balancedecimal(12,2)否0.00—————
6available_balancedecimal(12,2)否0.00—————
7pending_withdrawal_balancedecimal(12,2)否0.00—————
8withdrawn_balancedecimal(12,2)否0.00—————
9remarkvarchar(255)否空字符串——utf8mb4utf8mb4_unicode_ci—
10reference_idbigint(20) unsigned是NULL—————
11reference_typevarchar(30)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
12operatorvarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci—
13trace_idvarchar(64)是NULL——utf8mb4utf8mb4_unicode_ci—
14created_attimestamp否CURRENT_TIMESTAMPMUL————

索引 ​

索引名唯一类型字段基数注释
idx_referral_account_related否BTREEreference_type, reference_id0—
idx_referral_account_user_created_idx否BTREEuser_id, created_at, id0—
idx_referral_account_user_type否BTREEuser_id, event_type0—
PRIMARY是BTREEid0—
referral_account_logs_created_at_index否BTREEcreated_at0—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_referral_account_logs_user_iduser_idusersidRESTRICTRESTRICT

2.43 referral_rewards ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:96 KB
  • 自增值:13
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2referrer_user_idbigint(20) unsigned否—MUL————
3referred_user_idbigint(20) unsigned否—MUL————
4order_idbigint(20) unsigned是NULLUNI————
5invoice_idbigint(20) unsigned是NULLMUL————
6product_idbigint(20) unsigned是NULLMUL————
7order_amountdecimal(12,2)否0.00—————
8reward_ratedecimal(5,2)否0.00—————
9reward_amountdecimal(12,2)否0.00—————
10available_attimestamp是NULL—————
11released_attimestamp是NULL—————
12statustinyint(4)否0————0=冻结中 1=已发放 2=已回退
13operatorvarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci—
14remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
15trace_idvarchar(64)是NULL——utf8mb4utf8mb4_unicode_ci—
16rewarded_attimestamp是NULLMUL————
17created_attimestamp是NULL—————
18updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
idx_referral_reward_referred_status否BTREEreferred_user_id, status0—
idx_referral_reward_referrer_status否BTREEreferrer_user_id, status0—
PRIMARY是BTREEid0—
referral_rewards_invoice_id_idx否BTREEinvoice_id0—
referral_rewards_order_id_unique是BTREEorder_id0—
referral_rewards_product_id_index否BTREEproduct_id0—
referral_rewards_rewarded_at_index否BTREErewarded_at0—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_referral_rewards_invoice_idinvoice_idinvoicesidRESTRICTSET NULL
fk_stage2_referral_rewards_order_idorder_idordersidRESTRICTRESTRICT
fk_stage2_referral_rewards_product_idproduct_idproductsidRESTRICTSET NULL
fk_stage2_referral_rewards_referred_user_idreferred_user_idusersidRESTRICTRESTRICT
fk_stage2_referral_rewards_referrer_user_idreferrer_user_idusersidRESTRICTRESTRICT

2.44 referral_withdrawals ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:3
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:9
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2user_idbigint(20) unsigned否—MUL————
3amountdecimal(12,2)否0.00—————
4methodvarchar(20)否alipay——utf8mb4utf8mb4_unicode_cibalance|alipay
5account_namevarchar(80)否空字符串——utf8mb4utf8mb4_unicode_ci—
6account_novarchar(120)否空字符串——utf8mb4utf8mb4_unicode_ci—
7statustinyint(4)否0MUL———0=待处理 1=已通过 2=已拒绝
8payment_novarchar(120)是NULL——utf8mb4utf8mb4_unicode_ci—
9remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
10operatorvarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci—
11paid_attimestamp是NULL—————
12trace_idvarchar(64)否—UNI—utf8mb4utf8mb4_unicode_ci—
13processed_attimestamp是NULL—————
14created_attimestamp是NULL—————
15updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
idx_referral_withdraw_status_created否BTREEstatus, created_at3—
idx_referral_withdraw_user_status否BTREEuser_id, status3—
PRIMARY是BTREEid3—
referral_withdrawals_trace_id_unique是BTREEtrace_id3—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_referral_withdrawals_user_iduser_idusersidRESTRICTRESTRICT

2.45 refunds ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:96 KB
  • 自增值:1
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2refund_novarchar(32)否—UNI—utf8mb4utf8mb4_unicode_ci—
3user_idbigint(20) unsigned否—MUL————
4invoice_idbigint(20) unsigned否—MUL————
5refund_invoice_idbigint(20) unsigned是NULLMUL————
6payment_idbigint(20) unsigned是NULLMUL————
7amountdecimal(12,2)否——————
8statustinyint(3) unsigned否1————退款状态:1=已完成
9refund_methodvarchar(32)否balance——utf8mb4utf8mb4_unicode_ci—
10currencyvarchar(3)否CNY——utf8mb4utf8mb4_unicode_ci—
11reasonvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
12gateway_refund_novarchar(100)是NULL——utf8mb4utf8mb4_unicode_ci—
13operator_typevarchar(30)是NULL——utf8mb4utf8mb4_unicode_ci—
14operator_idbigint(20) unsigned是NULL—————
15operator_namevarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci—
16trace_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
17refunded_attimestamp是NULL—————
18created_attimestamp是NULL—————
19updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid0—
refunds_invoice_id_status_id_index否BTREEinvoice_id, status, id0—
refunds_payment_id_foreign否BTREEpayment_id0—
refunds_refund_invoice_id_foreign否BTREErefund_invoice_id0—
refunds_refund_no_unique是BTREErefund_no0—
refunds_trace_id_index否BTREEtrace_id0—
refunds_user_id_created_at_index否BTREEuser_id, created_at0—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
refunds_invoice_id_foreigninvoice_idinvoicesidRESTRICTRESTRICT
refunds_payment_id_foreignpayment_idpaymentsidRESTRICTSET NULL
refunds_refund_invoice_id_foreignrefund_invoice_idinvoicesidRESTRICTSET NULL
refunds_user_id_foreignuser_idusersidRESTRICTRESTRICT

2.46 roles ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:218
  • 数据大小:64 KB
  • 索引大小:16 KB
  • 自增值:686
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2namevarchar(50)否—UNI—utf8mb4utf8mb4_unicode_ci—
3labelvarchar(100)是NULL——utf8mb4utf8mb4_unicode_ci—
4permissionsjson否—————权限标识数组
5created_attimestamp是NULL—————
6updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid218—
roles_name_unique是BTREEname218—

外键约束 ​

无数据库级外键约束。

2.47 schedule_run_logs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:4
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:151570
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2task_namevarchar(100)否—MUL—utf8mb4utf8mb4_unicode_ci任务名称
3statusvarchar(20)否successMUL—utf8mb4utf8mb4_unicode_ci执行状态: success, failed, skipped
4duration_msint(10) unsigned否0————执行耗时(毫秒)
5summaryjson是NULL————执行摘要数据
6error_msgtext是NULL——utf8mb4utf8mb4_unicode_ci错误信息
7started_attimestamp是NULL————开始时间
8finished_attimestamp是NULL————结束时间
9created_attimestamp是NULLMUL————
10updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid4—
schedule_run_logs_created_at_index否BTREEcreated_at1—
schedule_run_logs_status_created_at_index否BTREEstatus, created_at2—
schedule_run_logs_task_name_created_at_index否BTREEtask_name, created_at4—

外键约束 ​

无数据库级外键约束。

2.48 schedule_task_runs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:96 KB
  • 自增值:3359
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2parent_run_idbigint(20) unsigned是NULLMUL————
3schedule_tick_idbigint(20) unsigned是NULLMUL————
4task_keyvarchar(120)否—MUL—utf8mb4utf8mb4_unicode_ci—
5task_namevarchar(160)否———utf8mb4utf8mb4_unicode_ci—
6rule_descriptionvarchar(160)是NULL——utf8mb4utf8mb4_unicode_ci—
7sourcevarchar(40)否heartbeatMUL—utf8mb4utf8mb4_unicode_ci—
8queuevarchar(80)是NULL——utf8mb4utf8mb4_unicode_ci—
9statusvarchar(30)否queuedMUL—utf8mb4utf8mb4_unicode_ci—
10attemptsmallint(5) unsigned否1—————
11duration_msint(10) unsigned是NULL—————
12summaryjson是NULL—————
13error_msgtext是NULL——utf8mb4utf8mb4_unicode_ci—
14queued_attimestamp是NULL—————
15started_attimestamp是NULL—————
16finished_attimestamp是NULL—————
17manual_retry_attimestamp是NULL—————
18manual_retry_bybigint(20) unsigned是NULL—————
19created_attimestamp是NULL—————
20updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid0—
schedule_task_runs_active_lookup_index否BTREEtask_key, status, queued_at0—
schedule_task_runs_parent_created_at_index否BTREEparent_run_id, created_at0—
schedule_task_runs_source_created_at_index否BTREEsource, created_at0—
schedule_task_runs_status_created_at_index否BTREEstatus, created_at0—
schedule_task_runs_task_key_created_at_index否BTREEtask_key, created_at0—
schedule_task_runs_tick_task_source_unique是BTREEschedule_tick_id, task_key, source0—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
schedule_task_runs_schedule_tick_id_foreignschedule_tick_idschedule_ticksidRESTRICTSET NULL

2.49 schedule_ticks ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:64 KB
  • 自增值:281
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2slot_started_attimestamp否CURRENT_TIMESTAMPUNIon update CURRENT_TIMESTAMP———
3global_numberbigint(20) unsigned否—UNI————
4daily_indextinyint(3) unsigned否—MUL————
5triggered_attimestamp是NULLMUL————
6created_attimestamp是NULL—————
7updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid0—
schedule_ticks_daily_index_index否BTREEdaily_index0—
schedule_ticks_global_number_unique是BTREEglobal_number0—
schedule_ticks_slot_started_at_unique是BTREEslot_started_at0—
schedule_ticks_triggered_at_index否BTREEtriggered_at0—

外键约束 ​

无数据库级外键约束。

2.50 second_product_groups ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:117
  • 数据大小:16 KB
  • 索引大小:32 KB
  • 自增值:206
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2first_product_group_idbigint(20) unsigned否—MUL———→ first_product_groups.id
3namevarchar(100)否———utf8mb4utf8mb4_unicode_ci名称
4slugvarchar(100)是NULL——utf8mb4utf8mb4_unicode_ciURL标识
5descriptionvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci分组说明
6banner_imagevarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci横幅图
7sort_orderint(11)否0————排序
8is_visibletinyint(3) unsigned否1————前台可见
9created_attimestamp是NULL—————
10updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
idx_second_first_visible_sort否BTREEfirst_product_group_id, is_visible, sort_order115—
PRIMARY是BTREEid117—
uq_second_first_slug是BTREEfirst_product_group_id, slug117—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_second_first_groupfirst_product_group_idfirst_product_groupsidRESTRICTRESTRICT

2.51 services ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:42
  • 数据大小:48 KB
  • 索引大小:128 KB
  • 自增值:374
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:服务实例表,记录用户已购买产品的生命周期、计费、上游和续费状态

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment——服务实例自增主键
2user_idbigint(20) unsigned否—MUL———所属用户ID
3product_idbigint(20) unsigned否—MUL———关联商品ID
4order_idbigint(20) unsigned是NULLMUL———内部订单/开通投影ID,仅用于流程追踪
5invoice_idbigint(20) unsigned是NULLMUL———最近一次关联账单ID
6namevarchar(200)否空字符串——utf8mb4utf8mb4_unicode_ci服务自定义名称
7domainvarchar(200)否空字符串——utf8mb4utf8mb4_unicode_ci服务域名或主机名
8billing_cyclevarchar(20)否———utf8mb4utf8mb4_unicode_ci计费周期
9amountdecimal(12,2)否—————服务续费/购买金额
10locked_pricingjson是NULL————锁定续费定价 JSON,null 表示跟随商品定价
11statustinyint(4)否0MUL———服务状态:0待开通 1运行中 2已暂停 3已到期 4已取消
12provision_datajson是NULL————开通和上游实例数据 JSON
13expires_attimestamp是NULLMUL———服务到期时间
14auto_renewtinyint(4)否0————是否自动续费:0关闭 1开启
15suspended_reasonvarchar(200)是NULL——utf8mb4utf8mb4_unicode_ci暂停原因
16created_attimestamp是NULL————创建时间
17updated_attimestamp是NULL————更新时间
18deleted_attimestamp是NULL—————
19remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci服务备注
20operatorvarchar(50)是NULL——utf8mb4utf8mb4_unicode_ci操作人快照
21trace_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci链路追踪号

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid39—
services_expires_at_index否BTREEexpires_at26—
services_invoice_id_idx否BTREEinvoice_id24—
services_order_id_idx否BTREEorder_id20—
services_product_id_idx否BTREEproduct_id39—
services_status_expires_at_id_idx否BTREEstatus, expires_at, id39—
services_trace_id_idx否BTREEtrace_id39—
services_user_id_index否BTREEuser_id39—
services_user_status_id_idx否BTREEuser_id, status, id39—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_services_invoice_idinvoice_idinvoicesidRESTRICTSET NULL
fk_services_product_idproduct_idproductsidRESTRICTRESTRICT
fk_services_user_iduser_idusersidRESTRICTRESTRICT
fk_stage2_services_order_idorder_idordersidRESTRICTSET NULL

2.52 service_connection_snapshots ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:1
  • 数据大小:16 KB
  • 索引大小:80 KB
  • 自增值:198
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2service_idbigint(20) unsigned否—MUL————
3service_upstream_binding_idbigint(20) unsigned是NULLMUL————
4plugin_idbigint(20) unsigned是NULLMUL————
5provider_keyvarchar(120)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
6connection_typevarchar(60)否default——utf8mb4utf8mb4_unicode_ci—
7hostnamevarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
8ip_addressvarchar(120)是NULL——utf8mb4utf8mb4_unicode_ci—
9portint(10) unsigned是NULL—————
10connection_jsonjson是NULL—————
11secret_jsonlongtext是NULL——utf8mb4utf8mb4_unicode_ci—
12has_secret_jsonjson是NULL—————
13checked_attimestamp是NULL—————
14backfill_batch_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
15created_attimestamp是NULL—————
16updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid1—
service_connection_backfill_batch_idx否BTREEbackfill_batch_id1—
service_connection_plugin_checked_idx否BTREEplugin_id, checked_at1—
service_connection_provider_type_idx否BTREEprovider_key, connection_type1—
service_connection_service_type_unique是BTREEservice_id, connection_type1—
service_connection_snapshots_service_upstream_binding_id_foreign否BTREEservice_upstream_binding_id1—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
service_connection_snapshots_plugin_id_foreignplugin_idintegration_pluginsidRESTRICTSET NULL
service_connection_snapshots_service_id_foreignservice_idservicesidRESTRICTCASCADE
service_connection_snapshots_service_upstream_binding_id_foreignservice_upstream_binding_idservice_upstream_bindingsidRESTRICTSET NULL

2.53 service_provision_attempts ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:80 KB
  • 自增值:431
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2service_idbigint(20) unsigned是NULLMUL————
3service_upstream_binding_idbigint(20) unsigned是NULLMUL————
4plugin_idbigint(20) unsigned是NULLMUL————
5provider_keyvarchar(120)是NULL——utf8mb4utf8mb4_unicode_ci—
6actionvarchar(80)否———utf8mb4utf8mb4_unicode_ci—
7attempt_statusvarchar(30)否———utf8mb4utf8mb4_unicode_ci—
8trace_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
9request_meta_jsonjson是NULL—————
10response_meta_jsonjson是NULL—————
11error_codevarchar(80)是NULL——utf8mb4utf8mb4_unicode_ci—
12error_messagevarchar(500)是NULL——utf8mb4utf8mb4_unicode_ci—
13attempted_attimestamp是NULL—————
14backfill_batch_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
15created_attimestamp是NULL—————
16updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid0—
service_attempt_backfill_batch_idx否BTREEbackfill_batch_id0—
service_attempt_plugin_status_idx否BTREEplugin_id, attempt_status, attempted_at0—
service_attempt_service_action_idx否BTREEservice_id, action, attempted_at0—
service_attempt_trace_idx否BTREEtrace_id0—
service_provision_attempts_service_upstream_binding_id_foreign否BTREEservice_upstream_binding_id0—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
service_provision_attempts_plugin_id_foreignplugin_idintegration_pluginsidRESTRICTSET NULL
service_provision_attempts_service_id_foreignservice_idservicesidRESTRICTSET NULL
service_provision_attempts_service_upstream_binding_id_foreignservice_upstream_binding_idservice_upstream_bindingsidRESTRICTSET NULL

2.54 service_runtime_snapshots ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:1
  • 数据大小:16 KB
  • 索引大小:80 KB
  • 自增值:198
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2service_idbigint(20) unsigned否—UNI————
3service_upstream_binding_idbigint(20) unsigned是NULLMUL————
4plugin_idbigint(20) unsigned是NULLMUL————
5provider_keyvarchar(120)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
6status_keyvarchar(60)是NULL——utf8mb4utf8mb4_unicode_ci—
7status_textvarchar(120)是NULL——utf8mb4utf8mb4_unicode_ci—
8resource_jsonjson是NULL—————
9metrics_jsonjson是NULL—————
10snapshot_jsonjson是NULL—————
11synced_attimestamp是NULL—————
12backfill_batch_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
13created_attimestamp是NULL—————
14updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid1—
service_runtime_backfill_batch_idx否BTREEbackfill_batch_id1—
service_runtime_plugin_synced_idx否BTREEplugin_id, synced_at1—
service_runtime_provider_status_idx否BTREEprovider_key, status_key1—
service_runtime_service_unique是BTREEservice_id1—
service_runtime_snapshots_service_upstream_binding_id_foreign否BTREEservice_upstream_binding_id1—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
service_runtime_snapshots_plugin_id_foreignplugin_idintegration_pluginsidRESTRICTSET NULL
service_runtime_snapshots_service_id_foreignservice_idservicesidRESTRICTCASCADE
service_runtime_snapshots_service_upstream_binding_id_foreignservice_upstream_binding_idservice_upstream_bindingsidRESTRICTSET NULL

2.55 service_upstream_bindings ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:1
  • 数据大小:16 KB
  • 索引大小:112 KB
  • 自增值:288
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2service_idbigint(20) unsigned否—MUL————
3product_upstream_binding_idbigint(20) unsigned是NULLMUL————
4supplier_plugin_binding_idbigint(20) unsigned是NULLMUL————
5plugin_idbigint(20) unsigned否—MUL————
6provider_keyvarchar(120)否—MUL—utf8mb4utf8mb4_unicode_ci—
7upstream_service_idvarchar(120)否———utf8mb4utf8mb4_unicode_ci—
8upstream_account_idvarchar(120)是NULL——utf8mb4utf8mb4_unicode_ci—
9runtime_snapshot_jsonjson是NULL—————
10connection_snapshot_jsonjson是NULL—————
11status_snapshotvarchar(60)是NULL——utf8mb4utf8mb4_unicode_ci—
12last_synced_attimestamp是NULL—————
13last_sync_errorvarchar(500)是NULL——utf8mb4utf8mb4_unicode_ci—
14backfill_batch_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
15created_attimestamp是NULL—————
16updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid1—
service_upstream_backfill_batch_idx否BTREEbackfill_batch_id1—
service_upstream_bindings_product_upstream_binding_id_foreign否BTREEproduct_upstream_binding_id1—
service_upstream_bindings_supplier_plugin_binding_id_foreign否BTREEsupplier_plugin_binding_id1—
service_upstream_plugin_sync_idx否BTREEplugin_id, last_synced_at1—
service_upstream_provider_status_idx否BTREEprovider_key, status_snapshot1—
service_upstream_service_idx否BTREEservice_id1—
service_upstream_unique是BTREEservice_id, plugin_id, upstream_service_id1—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
service_upstream_bindings_plugin_id_foreignplugin_idintegration_pluginsidRESTRICTRESTRICT
service_upstream_bindings_product_upstream_binding_id_foreignproduct_upstream_binding_idproduct_upstream_bindingsidRESTRICTSET NULL
service_upstream_bindings_service_id_foreignservice_idservicesidRESTRICTRESTRICT
service_upstream_bindings_supplier_plugin_binding_id_foreignsupplier_plugin_binding_idsupplier_plugin_bindingsidRESTRICTSET NULL

2.56 sessions ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:32 KB
  • 自增值:—
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idvarchar(255)否—PRI—utf8mb4utf8mb4_unicode_ci—
2user_idbigint(20) unsigned是NULLMUL————
3ip_addressvarchar(45)是NULL——utf8mb4utf8mb4_unicode_ci—
4user_agenttext是NULL——utf8mb4utf8mb4_unicode_ci—
5payloadlongtext否———utf8mb4utf8mb4_unicode_ci—
6last_activityint(11)否—MUL————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid0—
sessions_last_activity_index否BTREElast_activity0—
sessions_user_id_index否BTREEuser_id0—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_sessions_user_iduser_idusersidRESTRICTCASCADE

2.57 settings ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:14
  • 数据大小:16 KB
  • 索引大小:16 KB
  • 自增值:535
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2group_keyvarchar(50)否—MUL—utf8mb4utf8mb4_unicode_ci—
3item_keyvarchar(100)否———utf8mb4utf8mb4_unicode_ci—
4item_valuetext是NULL——utf8mb4utf8mb4_unicode_ci—

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid12—
settings_group_key_unique是BTREEgroup_key, item_key12—

外键约束 ​

无数据库级外键约束。

2.58 suppliers ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:15
  • 数据大小:16 KB
  • 索引大小:32 KB
  • 自增值:132
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2namevarchar(120)否———utf8mb4utf8mb4_unicode_ci—
3codevarchar(50)否—UNI—utf8mb4utf8mb4_unicode_ci—
4contact_namevarchar(60)是NULL——utf8mb4utf8mb4_unicode_ci—
5contact_phonevarchar(30)是NULL——utf8mb4utf8mb4_unicode_ci—
6contact_emailvarchar(100)是NULL——utf8mb4utf8mb4_unicode_ci—
7websitevarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
8statustinyint(4)否1MUL———0=停用 1=启用
9sort_orderint(11)否0—————
10notestext是NULL——utf8mb4utf8mb4_unicode_ci—
11created_attimestamp是NULL—————
12updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid15—
suppliers_code_unique是BTREEcode15—
suppliers_status_sort_order_index否BTREEstatus, sort_order4—

外键约束 ​

无数据库级外键约束。

2.59 supplier_balances ​

  • 类型:BASE TABLE
  • 引擎:MyISAM
  • 估算行数:5
  • 数据大小:456 B
  • 索引大小:4 KB
  • 自增值:13
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2supplier_idbigint(20) unsigned否—UNI———所属供应商
3provider_keyvarchar(120)是NULL——utf8mb4utf8mb4_unicode_ci同步时使用的上游标识
4balancedecimal(14,2)是NULL————最近一次成功同步到的上游余额
5currencyvarchar(20)是NULL——utf8mb4utf8mb4_unicode_ci币种,取上游返回值
6low_balance_thresholddecimal(14,2)否20.00————余额不足告警阈值,默认 20
7low_balance_alert_enabledtinyint(1)否1————是否启用余额不足邮件提醒
8last_synced_attimestamp是NULLMUL———最近一次成功同步时间
9last_attempted_attimestamp是NULL————最近一次尝试同步时间,含失败
10last_sync_statusvarchar(30)是NULL——utf8mb4utf8mb4_unicode_cisuccess / failed
11last_sync_errorvarchar(500)是NULL——utf8mb4utf8mb4_unicode_ci最近一次同步失败原因
12low_balance_notified_attimestamp是NULL————最近一次余额不足告警时间,用于冷却与状态机
13created_attimestamp是NULL—————
14updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid5—
supplier_balances_last_synced_at_index否BTREElast_synced_at0—
supplier_balances_supplier_id_unique是BTREEsupplier_id5—

外键约束 ​

无数据库级外键约束。

2.60 supplier_balance_logs ​

  • 类型:BASE TABLE
  • 引擎:MyISAM
  • 估算行数:0
  • 数据大小:0 B
  • 索引大小:1 KB
  • 自增值:1
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2supplier_idbigint(20) unsigned否—MUL———所属供应商
3balancedecimal(14,2)是NULL————本次同步到的余额
4previous_balancedecimal(14,2)是NULL————变更前余额,首次同步为空
5deltadecimal(14,2)是NULL————增减值,负数表示消耗
6currencyvarchar(20)是NULL——utf8mb4utf8mb4_unicode_ci币种
7sourcevarchar(30)否schedule——utf8mb4utf8mb4_unicode_cischedule=定时同步 provision=开通后触发 manual=手动查询
8order_idbigint(20) unsigned是NULL————由开通触发时关联的订单
9recorded_attimestamp是NULLMUL———变更记录时间
10created_attimestamp是NULL—————
11updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid0—
supplier_balance_logs_recorded_at_index否BTREErecorded_at0—
supplier_balance_logs_supplier_recorded_index否BTREEsupplier_id, recorded_at0—

外键约束 ​

无数据库级外键约束。

2.61 supplier_plugin_bindings ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:13
  • 数据大小:16 KB
  • 索引大小:80 KB
  • 自增值:133
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2supplier_idbigint(20) unsigned否—MUL————
3plugin_idbigint(20) unsigned否—MUL————
4provider_keyvarchar(120)否—MUL—utf8mb4utf8mb4_unicode_ci—
5environmentvarchar(30)否production——utf8mb4utf8mb4_unicode_ci—
6statustinyint(3) unsigned否1—————
7ticket_delivery_enabledtinyint(1)否0—————
8priorityint(11)否0—————
9base_urlvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
10account_namevarchar(120)是NULL——utf8mb4utf8mb4_unicode_ci—
11config_jsonjson是NULL—————
12secret_jsonlongtext是NULL——utf8mb4utf8mb4_unicode_ci—
13has_secret_jsonjson是NULL—————
14last_checked_attimestamp是NULL—————
15last_check_statusvarchar(30)是NULL——utf8mb4utf8mb4_unicode_ci—
16last_check_errorvarchar(500)是NULL——utf8mb4utf8mb4_unicode_ci—
17created_bybigint(20) unsigned是NULL—————
18updated_bybigint(20) unsigned是NULL—————
19backfill_batch_idvarchar(64)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
20created_attimestamp是NULL—————
21updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid12—
supplier_binding_ticket_delivery_idx否BTREEprovider_key, ticket_delivery_enabled2—
supplier_plugin_backfill_batch_idx否BTREEbackfill_batch_id1—
supplier_plugin_plugin_status_idx否BTREEplugin_id, status5—
supplier_plugin_provider_status_idx否BTREEprovider_key, status2—
supplier_plugin_unique是BTREEsupplier_id, plugin_id, environment12—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
supplier_plugin_bindings_plugin_id_foreignplugin_idintegration_pluginsidRESTRICTRESTRICT
supplier_plugin_bindings_supplier_id_foreignsupplier_idsuppliersidRESTRICTRESTRICT

2.62 third_product_groups ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:233
  • 数据大小:64 KB
  • 索引大小:32 KB
  • 自增值:302
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2second_product_group_idbigint(20) unsigned否—MUL———→ second_product_groups.id
3namevarchar(100)否———utf8mb4utf8mb4_unicode_ci名称
4slugvarchar(100)是NULL——utf8mb4utf8mb4_unicode_ciURL标识
5descriptionvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci分组说明
6sort_orderint(11)否0————排序
7is_visibletinyint(3) unsigned否1————前台可见
8created_attimestamp是NULL—————
9updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
idx_third_second_visible_sort否BTREEsecond_product_group_id, is_visible, sort_order181—
PRIMARY是BTREEid233—
uq_third_second_slug是BTREEsecond_product_group_id, slug233—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_third_second_groupsecond_product_group_idsecond_product_groupsidRESTRICTRESTRICT

2.63 tickets ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:30
  • 数据大小:16 KB
  • 索引大小:80 KB
  • 自增值:119
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2user_idbigint(20) unsigned否—MUL————
3departmentvarchar(30)否support——utf8mb4utf8mb4_unicode_ci—
4subjectvarchar(200)否———utf8mb4utf8mb4_unicode_ci—
5prioritytinyint(4)否1————1=低 2=中 3=高 4=紧急
6statustinyint(4)否0MUL———0=开启 1=客户回复 2=员工回复 3=已关闭
7service_idbigint(20) unsigned是NULLMUL————
8assignee_idbigint(20) unsigned是NULLMUL————
9created_attimestamp是NULL—————
10updated_attimestamp是NULL—————
11close_reasonvarchar(20)是NULL——utf8mb4utf8mb4_unicode_ciadmin, client, auto

索引 ​

索引名唯一类型字段基数注释
idx_stage2_tickets_assignee_id否BTREEassignee_id2—
PRIMARY是BTREEid29—
tickets_service_id_idx否BTREEservice_id14—
tickets_status_updated_at_idx否BTREEstatus, updated_at22—
tickets_user_status_updated_at_idx否BTREEuser_id, status, updated_at29—
tickets_user_updated_at_idx否BTREEuser_id, updated_at, id29—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_tickets_assignee_idassignee_idadmin_usersidRESTRICTSET NULL
fk_stage2_tickets_service_idservice_idservicesidRESTRICTSET NULL
fk_tickets_user_iduser_idusersidRESTRICTRESTRICT

2.64 ticket_delivery_rules ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:3
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2namevarchar(120)否———utf8mb4utf8mb4_unicode_ci—
3departmentvarchar(32)否———utf8mb4utf8mb4_unicode_ci—
4supplier_idbigint(20) unsigned是NULLMUL————
5provider_keyvarchar(64)否———utf8mb4utf8mb4_unicode_ci—
6product_scope_modevarchar(16)否selected——utf8mb4utf8mb4_unicode_ci—
7upstream_department_idvarchar(64)否———utf8mb4utf8mb4_unicode_ci—
8enabledtinyint(1)否1—————
9sync_admin_repliestinyint(1)否0—————
10auto_reply_enabledtinyint(1)否0—————
11auto_reply_contenttext是NULL——utf8mb4utf8mb4_unicode_ci—
12mask_keywordstext是NULL——utf8mb4utf8mb4_unicode_ci—
13created_attimestamp是NULL—————
14updated_attimestamp是NULL—————
15supplier_scope_keybigint(20) unsigned是NULLMULVIRTUAL GENERATED; generated: coalesce(supplier_id,0)———

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid0—
ticket_delivery_rule_match_idx否BTREEsupplier_id, department, provider_key, enabled0—
ticket_delivery_rule_scope_unique是BTREEsupplier_scope_key, department, provider_key, product_scope_mode0—
ticket_delivery_rule_settings_idx否BTREEsupplier_id, department, provider_key, enabled0—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
ticket_delivery_rules_supplier_id_foreignsupplier_idsuppliersidRESTRICTSET NULL

2.65 ticket_delivery_rule_products ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:0
  • 数据大小:16 KB
  • 索引大小:32 KB
  • 自增值:1
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2rule_idbigint(20) unsigned否—MUL————
3product_idbigint(20) unsigned否—MUL————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid0—
ticket_delivery_rule_products_product_id_foreign否BTREEproduct_id0—
ticket_delivery_rule_products_rule_id_product_id_unique是BTREErule_id, product_id0—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
ticket_delivery_rule_products_product_id_foreignproduct_idproductsidRESTRICTCASCADE
ticket_delivery_rule_products_rule_id_foreignrule_idticket_delivery_rulesidRESTRICTCASCADE

2.66 ticket_replies ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:62
  • 数据大小:16 KB
  • 索引大小:32 KB
  • 自增值:251
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2ticket_idbigint(20) unsigned否—MUL————
3user_idbigint(20) unsigned否——————
4contenttext否———utf8mb4utf8mb4_unicode_ci—
5is_stafftinyint(4)否0—————
6sender_typevarchar(32)是NULL——utf8mb4utf8mb4_unicode_ci—
7sender_namevarchar(120)是NULL——utf8mb4utf8mb4_unicode_ci—
8is_pre_replytinyint(3) unsigned否0—————
9attachmentsjson是NULL—————
10quote_reply_idbigint(20) unsigned是NULLMUL————
11recalled_attimestamp是NULL—————
12created_attimestamp否CURRENT_TIMESTAMP—————

索引 ​

索引名唯一类型字段基数注释
idx_stage2_ticket_replies_quote_reply_id否BTREEquote_reply_id1—
PRIMARY是BTREEid62—
ticket_replies_ticket_created_id_idx否BTREEticket_id, created_at, id62—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_ticket_replies_quote_reply_idquote_reply_idticket_repliesidRESTRICTSET NULL
fk_ticket_replies_ticket_idticket_idticketsidRESTRICTCASCADE

2.67 ticket_reply_deliveries ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:3
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:4
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2ticket_reply_idbigint(20) unsigned否—UNI————
3directionvarchar(16)否———utf8mb4utf8mb4_unicode_ci—
4content_prefixvarchar(64)是NULL——utf8mb4utf8mb4_unicode_ci—
5statusvarchar(32)否pending——utf8mb4utf8mb4_unicode_ci—
6idempotency_keyvarchar(160)否—UNI—utf8mb4utf8mb4_unicode_ci—
7remote_event_idvarchar(160)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
8attemptsint(10) unsigned否0—————
9last_attempt_attimestamp是NULL—————
10last_errortext是NULL——utf8mb4utf8mb4_unicode_ci—
11delivered_attimestamp是NULL—————
12created_attimestamp是NULL—————
13updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid3—
ticket_reply_deliveries_idempotency_key_unique是BTREEidempotency_key3—
ticket_reply_deliveries_remote_event_id_direction_unique是BTREEremote_event_id, direction3—
ticket_reply_deliveries_ticket_reply_id_unique是BTREEticket_reply_id3—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
ticket_reply_deliveries_ticket_reply_id_foreignticket_reply_idticket_repliesidRESTRICTCASCADE

2.68 ticket_upstream_bindings ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:3
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:6
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2ticket_idbigint(20) unsigned否—UNI————
3provider_keyvarchar(64)否—MUL—utf8mb4utf8mb4_unicode_ci—
4supplier_idbigint(20) unsigned是NULL—————
5upstream_department_idvarchar(64)否———utf8mb4utf8mb4_unicode_ci—
6upstream_service_idvarchar(128)否—MUL—utf8mb4utf8mb4_unicode_ci—
7upstream_ticket_idvarchar(128)是NULL——utf8mb4utf8mb4_unicode_ci—
8statusvarchar(32)否pending——utf8mb4utf8mb4_unicode_ci—
9attemptsint(10) unsigned否0—————
10last_errortext是NULL——utf8mb4utf8mb4_unicode_ci—
11last_attempt_attimestamp是NULL—————
12delivered_attimestamp是NULL—————
13created_attimestamp是NULL—————
14updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid3—
ticket_upstream_bindings_provider_key_upstream_ticket_id_unique是BTREEprovider_key, upstream_ticket_id3—
ticket_upstream_bindings_ticket_id_unique是BTREEticket_id3—
ticket_upstream_lookup_idx否BTREEupstream_service_id, upstream_ticket_id3—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
ticket_upstream_bindings_ticket_id_foreignticket_idticketsidRESTRICTCASCADE

2.69 ticket_upstream_delivery_logs ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:7
  • 数据大小:16 KB
  • 索引大小:80 KB
  • 自增值:12
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2ticket_idbigint(20) unsigned否—MUL————
3ticket_reply_idbigint(20) unsigned是NULLMUL————
4binding_idbigint(20) unsigned是NULLMUL————
5delivery_idbigint(20) unsigned是NULLMUL————
6directionvarchar(16)否outbound——utf8mb4utf8mb4_unicode_ci—
7operationvarchar(32)否———utf8mb4utf8mb4_unicode_ci—
8eventvarchar(32)否———utf8mb4utf8mb4_unicode_ci—
9statusvarchar(32)否—MUL—utf8mb4utf8mb4_unicode_ci—
10reason_codevarchar(64)是NULL——utf8mb4utf8mb4_unicode_ci—
11provider_keyvarchar(64)是NULL——utf8mb4utf8mb4_unicode_ci—
12supplier_idbigint(20) unsigned是NULL—————
13attemptint(10) unsigned是NULL—————
14http_statussmallint(5) unsigned是NULL—————
15duration_msint(10) unsigned是NULL—————
16messagetext是NULL——utf8mb4utf8mb4_unicode_ci—
17occurred_attimestamp否CURRENT_TIMESTAMP—on update CURRENT_TIMESTAMP———
18created_attimestamp是NULL—————
19updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid7—
ticket_upstream_delivery_logs_delivery_id_foreign否BTREEdelivery_id1—
ticket_upstream_log_binding_time_idx否BTREEbinding_id, occurred_at6—
ticket_upstream_log_reply_time_idx否BTREEticket_reply_id, occurred_at7—
ticket_upstream_log_status_time_idx否BTREEstatus, occurred_at6—
ticket_upstream_log_ticket_time_idx否BTREEticket_id, occurred_at7—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
ticket_upstream_delivery_logs_binding_id_foreignbinding_idticket_upstream_bindingsidRESTRICTSET NULL
ticket_upstream_delivery_logs_delivery_id_foreigndelivery_idticket_reply_deliveriesidRESTRICTSET NULL
ticket_upstream_delivery_logs_ticket_id_foreignticket_idticketsidRESTRICTCASCADE
ticket_upstream_delivery_logs_ticket_reply_id_foreignticket_reply_idticket_repliesidRESTRICTSET NULL

2.70 users ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:119
  • 数据大小:64 KB
  • 索引大小:176 KB
  • 自增值:988257
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2emailvarchar(100)是NULLUNI—utf8mb4utf8mb4_unicode_ci—
3passwordvarchar(255)否———utf8mb4utf8mb4_unicode_ci—
4nicknamevarchar(50)否空字符串——utf8mb4utf8mb4_unicode_ci—
5phonevarchar(20)是NULLUNI—utf8mb4utf8mb4_unicode_ci—
6companyvarchar(100)否空字符串——utf8mb4utf8mb4_unicode_ci—
7qqvarchar(30)否空字符串——utf8mb4utf8mb4_unicode_ci—
8alipay_real_namevarchar(80)否空字符串——utf8mb4utf8mb4_unicode_ci—
9alipay_accountvarchar(20)否空字符串——utf8mb4utf8mb4_unicode_ci—
10referral_codevarchar(24)是NULLUNI—utf8mb4utf8mb4_unicode_ci—
11referrer_user_idbigint(20) unsigned是NULLMUL————
12member_level_idbigint(20) unsigned是NULLMUL————
13total_sales_amountdecimal(12,2)否0.00—————
14referred_attimestamp是NULL—————
15statustinyint(4)否1MUL———0=禁用 1=正常
16login_email_alerttinyint(4)否1————登录邮件提醒 0关闭 1开启
17login_notifytinyint(1)否1————账号登录提醒 0关闭 1开启
18login_location_alerttinyint(1)否1————异地登录提醒 0关闭 1开启
19password_change_alerttinyint(1)否1————密码变更提醒 0关闭 1开启
20phone_change_alerttinyint(1)否1————手机号变更提醒 0关闭 1开启
21email_change_alerttinyint(1)否1————邮箱变更提醒 0关闭 1开启
22marketing_alerttinyint(1)否0————营销提醒接收 0关闭 1开启
23is_verifiedtinyint(4)否0MUL———0=未认证 1=已认证
24real_namevarchar(50)否空字符串——utf8mb4utf8mb4_unicode_ci真实姓名
25id_cardvarchar(512)否空字符串——utf8mb4utf8mb4_unicode_ci—
26verification_statustinyint(4)否0MUL———0=未认证 1=认证中 2=已认证 3=认证失败
27verification_messagevarchar(255)否空字符串——utf8mb4utf8mb4_unicode_ci实名认证状态描述
28verification_certify_idvarchar(100)是NULLMUL—utf8mb4utf8mb4_unicode_ci实名认证平台 certify_id
29verified_attimestamp是NULL————实名认证通过时间
30last_login_ipvarchar(45)是NULL——utf8mb4utf8mb4_unicode_ci—
31last_login_attimestamp是NULL—————
32admin_notetext是NULL——utf8mb4utf8mb4_unicode_ci—
33created_attimestamp是NULLMUL————
34updated_attimestamp是NULL—————
35deleted_attimestamp是NULL—————
36agent_group_idbigint(20) unsigned是NULL—————
37api_opentinyint(1)否0—————
38api_usernamevarchar(64)是NULLUNI—utf8mb4utf8mb4_unicode_ci—
39api_passwordvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
40api_ip_allowlistjson是NULL—————
41api_expires_attimestamp是NULL—————
42api_last_used_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid119—
users_api_username_unique是BTREEapi_username1—
users_created_at_idx否BTREEcreated_at55—
users_email_unique是BTREEemail119—
users_member_level_id_index否BTREEmember_level_id1—
users_phone_unique是BTREEphone119—
users_referral_code_unique是BTREEreferral_code5—
users_referrer_user_id_index否BTREEreferrer_user_id1—
users_status_id_idx否BTREEstatus, id119—
users_verification_certify_id_idx否BTREEverification_certify_id10—
users_verification_mix_idx否BTREEis_verified, verification_status, id119—
users_verification_status_id_idx否BTREEverification_status, id119—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_users_member_level_idmember_level_idmember_levelsidRESTRICTSET NULL
fk_stage2_users_referrer_user_idreferrer_user_idusersidRESTRICTSET NULL

2.71 user_accounts ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:9
  • 数据大小:16 KB
  • 索引大小:0 B
  • 自增值:—
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:用户账户余额源表,集中承载现金余额、授信和推荐奖励余额

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1user_idbigint(20) unsigned否—PRI———用户ID,同时作为账户主键
2cash_balancedecimal(12,2)否0.00————现金余额
3credit_limitdecimal(12,2)否0.00————授信额度
4referral_frozen_balancedecimal(12,2)否0.00————冻结中的推荐奖励余额
5referral_available_balancedecimal(12,2)否0.00————可用推荐奖励余额
6referral_pending_withdrawal_balancedecimal(12,2)否0.00————提现审核中的推荐奖励余额
7referral_withdrawn_balancedecimal(12,2)否0.00————已提现推荐奖励累计金额
8versionint(10) unsigned否0————乐观锁版本号
9created_attimestamp是NULL————创建时间
10updated_attimestamp是NULL————更新时间

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEuser_id9—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_user_accounts_user_iduser_idusersidRESTRICTRESTRICT

2.72 user_coupons ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:10
  • 数据大小:16 KB
  • 索引大小:64 KB
  • 自增值:100
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2uidvarchar(32)是NULLUNI—utf8mb4utf8mb4_unicode_ci—
3coupon_idbigint(20) unsigned否—MUL————
4user_idbigint(20) unsigned否—MUL————
5receive_typevarchar(20)否claim——utf8mb4utf8mb4_unicode_ci—
6statustinyint(4)否1————优惠券状态:1=持有 2=已使用 3=已回收
7claimed_attimestamp是NULL—————
8used_attimestamp是NULL—————
9revoked_attimestamp是NULL—————
10reserved_untiltimestamp是NULL—————
11granted_attimestamp是NULL—————
12last_used_attimestamp是NULL—————
13remarkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci—
14operatorvarchar(100)是NULL——utf8mb4utf8mb4_unicode_ci—
15trace_idvarchar(100)是NULL——utf8mb4utf8mb4_unicode_ci—
16created_attimestamp是NULL—————
17updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid10—
user_coupons_coupon_status_idx否BTREEcoupon_id, status10—
user_coupons_coupon_user_unique是BTREEcoupon_id, user_id10—
user_coupons_uid_unique是BTREEuid10—
user_coupons_user_status_idx否BTREEuser_id, status10—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_user_coupons_user_iduser_idusersidRESTRICTRESTRICT
fk_user_coupons_coupon_idcoupon_idcouponsidRESTRICTRESTRICT

2.73 user_notifications ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:11
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:138
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2user_idbigint(20) unsigned否—MUL————
3typevarchar(50)否—MUL—utf8mb4utf8mb4_unicode_ci消息类型:order_paid/service_renew_reminder/service_expire_reminder 等
4titlevarchar(191)否———utf8mb4utf8mb4_unicode_ci—
5contenttext是NULL——utf8mb4utf8mb4_unicode_ci—
6linkvarchar(255)是NULL——utf8mb4utf8mb4_unicode_ci点击跳转的前端路由
7datajson是NULL————附加业务数据
8read_attimestamp是NULL—————
9created_attimestamp是NULL—————
10updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid11—
user_notifications_type_index否BTREEtype5—
user_notifications_user_id_created_at_index否BTREEuser_id, created_at11—
user_notifications_user_id_read_at_index否BTREEuser_id, read_at11—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_user_notifications_user_iduser_idusersidRESTRICTCASCADE

2.74 verification_histories ​

  • 类型:BASE TABLE
  • 引擎:InnoDB
  • 估算行数:10
  • 数据大小:16 KB
  • 索引大小:48 KB
  • 自增值:109
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2user_idbigint(20) unsigned否—MUL————
3real_namevarchar(50)否空字符串——utf8mb4utf8mb4_unicode_ci—
4id_cardvarchar(512)否空字符串——utf8mb4utf8mb4_unicode_ci—
5verification_statustinyint(4)否1————1=认证中 2=已认证 3=认证失败
6verification_messagevarchar(255)否空字符串——utf8mb4utf8mb4_unicode_ci—
7verification_certify_idvarchar(100)是NULLMUL—utf8mb4utf8mb4_unicode_ci—
8verification_biz_codevarchar(30)否FACE——utf8mb4utf8mb4_unicode_ci—
9verification_typevarchar(20)否personal——utf8mb4utf8mb4_unicode_ci—
10submitted_attimestamp否CURRENT_TIMESTAMP—————
11completed_attimestamp是NULL—————
12created_attimestamp是NULL—————
13updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid10—
verification_histories_user_id_id_idx否BTREEuser_id, id10—
verification_histories_user_id_submitted_at_index否BTREEuser_id, submitted_at8—
verification_histories_verification_certify_id_index否BTREEverification_certify_id8—

外键约束 ​

约束名字段引用表引用字段更新规则删除规则
fk_stage2_verification_histories_user_iduser_idusersidRESTRICTRESTRICT

2.75 zjmf_upstream_bindings ​

  • 类型:BASE TABLE
  • 引擎:MyISAM
  • 估算行数:1
  • 数据大小:148 B
  • 索引大小:5 KB
  • 自增值:5
  • 排序规则:utf8mb4_unicode_ci
  • 表注释:—

字段 ​

序号字段类型可空默认值键额外字符集排序规则注释
1idbigint(20) unsigned否—PRIauto_increment———
2user_idbigint(20) unsigned否—MUL————
3invoice_idbigint(20) unsigned是NULLMUL————
4service_idbigint(20) unsigned是NULLMUL————
5downstream_urlvarchar(255)否空字符串——utf8mb4utf8mb4_unicode_ci—
6downstream_tokenvarchar(64)否空字符串——utf8mb4utf8mb4_unicode_ci—
7downstream_idbigint(20) unsigned否0—————
8domainvarchar(255)否空字符串——utf8mb4utf8mb4_unicode_ci—
9payloadjson是NULL—————
10created_attimestamp是NULL—————
11updated_attimestamp是NULL—————

索引 ​

索引名唯一类型字段基数注释
PRIMARY是BTREEid1—
zjmf_upstream_bindings_invoice_id_index否BTREEinvoice_id0—
zjmf_upstream_bindings_service_id_index否BTREEservice_id0—
zjmf_upstream_bindings_user_id_index否BTREEuser_id0—

外键约束 ​

无数据库级外键约束。

基于 AGPL-3.0-or-later 发布