-- 补齐七月迭代新增表的字段注释，确保数据库结构可直接识别字段业务含义。

COMMENT ON COLUMN tb_card_observation_effect.id IS '卡观测副作用处理记录ID';
COMMENT ON COLUMN tb_card_observation_effect.created_at IS '创建时间';
COMMENT ON COLUMN tb_card_observation_effect.updated_at IS '更新时间';
COMMENT ON COLUMN tb_card_observation_effect.deleted_at IS '软删除时间';
COMMENT ON COLUMN tb_card_observation_effect.creator IS '创建人账号ID';
COMMENT ON COLUMN tb_card_observation_effect.updater IS '更新人账号ID';

COMMENT ON COLUMN tb_wecom_application.id IS '企业微信应用配置ID';
COMMENT ON COLUMN tb_wecom_application.corp_id IS '企业微信企业ID';
COMMENT ON COLUMN tb_wecom_application.agent_id IS '企业微信自建应用AgentId';
COMMENT ON COLUMN tb_wecom_application.name IS '企业微信应用配置名称';
COMMENT ON COLUMN tb_wecom_application.status IS '启用状态：0禁用，1启用';
COMMENT ON COLUMN tb_wecom_application.created_by IS '创建人账号ID';
COMMENT ON COLUMN tb_wecom_application.updated_by IS '更新人账号ID';
COMMENT ON COLUMN tb_wecom_application.last_connected_at IS '最近一次连接成功时间';
COMMENT ON COLUMN tb_wecom_application.created_at IS '创建时间';
COMMENT ON COLUMN tb_wecom_application.updated_at IS '更新时间';
COMMENT ON COLUMN tb_wecom_application.deleted_at IS '软删除时间';

COMMENT ON COLUMN tb_wecom_member.id IS '企业微信成员快照ID';
COMMENT ON COLUMN tb_wecom_member.application_id IS '所属企业微信应用配置ID';
COMMENT ON COLUMN tb_wecom_member.corp_id IS '企业微信企业ID';
COMMENT ON COLUMN tb_wecom_member.userid IS '企业微信成员userid';
COMMENT ON COLUMN tb_wecom_member.name IS '企业微信成员姓名';
COMMENT ON COLUMN tb_wecom_member.visible IS '成员当前是否在应用可见范围内';
COMMENT ON COLUMN tb_wecom_member.synced_at IS '最近一次从企业微信同步时间';
COMMENT ON COLUMN tb_wecom_member.created_at IS '创建时间';
COMMENT ON COLUMN tb_wecom_member.updated_at IS '更新时间';

COMMENT ON COLUMN tb_wecom_approval_scene.id IS '企业微信审批场景配置ID';
COMMENT ON COLUMN tb_wecom_approval_scene.business_type IS '稳定审批业务类型编码';
COMMENT ON COLUMN tb_wecom_approval_scene.application_id IS '发起审批使用的企业微信应用配置ID';
COMMENT ON COLUMN tb_wecom_approval_scene.template_id IS '企业微信后台审批模板ID';
COMMENT ON COLUMN tb_wecom_approval_scene.template_name IS '企业微信审批模板名称快照';
COMMENT ON COLUMN tb_wecom_approval_scene.status IS '启用状态：0禁用，1启用';
COMMENT ON COLUMN tb_wecom_approval_scene.last_verified_at IS '最近一次模板结构校验通过时间';
COMMENT ON COLUMN tb_wecom_approval_scene.created_by IS '创建人账号ID';
COMMENT ON COLUMN tb_wecom_approval_scene.updated_by IS '更新人账号ID';
COMMENT ON COLUMN tb_wecom_approval_scene.created_at IS '创建时间';
COMMENT ON COLUMN tb_wecom_approval_scene.updated_at IS '更新时间';

COMMENT ON COLUMN tb_wecom_approval_context.id IS '企业微信审批渠道上下文ID';
COMMENT ON COLUMN tb_wecom_approval_context.approval_instance_id IS '关联的通用审批实例ID';
COMMENT ON COLUMN tb_wecom_approval_context.application_id IS '提交审批使用的企业微信应用配置ID';
COMMENT ON COLUMN tb_wecom_approval_context.business_type IS '提交时冻结的稳定审批业务类型';
COMMENT ON COLUMN tb_wecom_approval_context.template_id IS '提交时冻结的企业微信审批模板ID';
COMMENT ON COLUMN tb_wecom_approval_context.creator_userid IS '实际企业微信审批发起人userid';
COMMENT ON COLUMN tb_wecom_approval_context.creator_name IS '实际企业微信审批发起人姓名快照';
COMMENT ON COLUMN tb_wecom_approval_context.control_mapping IS '提交时冻结的业务字段与企微控件映射';
COMMENT ON COLUMN tb_wecom_approval_context.template_snapshot IS '提交时冻结的企微模板控件最小快照';
COMMENT ON COLUMN tb_wecom_approval_context.template_fingerprint IS '提交时冻结的模板控件快照SHA-256指纹';
COMMENT ON COLUMN tb_wecom_approval_context.sp_no IS '企业微信审批单号';
COMMENT ON COLUMN tb_wecom_approval_context.last_error IS '最近一次提交或恢复失败的安全摘要';
COMMENT ON COLUMN tb_wecom_approval_context.created_at IS '创建时间';
COMMENT ON COLUMN tb_wecom_approval_context.updated_at IS '更新时间';

COMMENT ON COLUMN tb_asset_package_batch_order_task.id IS '资产套餐批量订购任务ID';
COMMENT ON COLUMN tb_asset_package_batch_order_task.task_no IS '批量订购任务编号';
COMMENT ON COLUMN tb_asset_package_batch_order_task.package_code IS '整批统一套餐编码快照';
COMMENT ON COLUMN tb_asset_package_batch_order_task.package_name IS '整批统一套餐名称快照';
COMMENT ON COLUMN tb_asset_package_batch_order_task.file_name IS '上传的源CSV文件名';
COMMENT ON COLUMN tb_asset_package_batch_order_task.total_count IS '任务总行数';
COMMENT ON COLUMN tb_asset_package_batch_order_task.success_count IS '处理成功行数';
COMMENT ON COLUMN tb_asset_package_batch_order_task.fail_count IS '处理失败行数';
COMMENT ON COLUMN tb_asset_package_batch_order_task.error_message IS '任务级失败原因';
COMMENT ON COLUMN tb_asset_package_batch_order_task.creator_user_type IS '任务创建人账号类型快照';
COMMENT ON COLUMN tb_asset_package_batch_order_task.creator_shop_id IS '任务创建人所属店铺ID快照';
COMMENT ON COLUMN tb_asset_package_batch_order_task.creator_name IS '任务创建人名称快照';
COMMENT ON COLUMN tb_asset_package_batch_order_task.started_at IS '任务开始处理时间';
COMMENT ON COLUMN tb_asset_package_batch_order_task.completed_at IS '任务处理完成时间';
COMMENT ON COLUMN tb_asset_package_batch_order_task.creator IS '创建人账号ID';
COMMENT ON COLUMN tb_asset_package_batch_order_task.updater IS '更新人账号ID';
COMMENT ON COLUMN tb_asset_package_batch_order_task.created_at IS '创建时间';
COMMENT ON COLUMN tb_asset_package_batch_order_task.updated_at IS '更新时间';
COMMENT ON COLUMN tb_asset_package_batch_order_task.deleted_at IS '软删除时间';
