CREATE TABLE `qimall_addons_clerk_log` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `mall_id` int(11) NOT NULL DEFAULT '0', `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店id', `clerk_id` int(11) NOT NULL DEFAULT '0' COMMENT '核销员id', `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '会员id', `mobile` varchar(11) NOT NULL DEFAULT '0' COMMENT '电话', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '名称', `commission` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '佣金收入', `money` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '激活金额', `source_table` varchar(255) NOT NULL DEFAULT '' COMMENT '来源表', `source_table_id` int(11) NOT NULL DEFAULT '0' COMMENT '来源表id', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态[0禁用 1启用 -1删除]', `created_at` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `updated_at` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', `pic` varchar(255) NOT NULL DEFAULT '' COMMENT '图片', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='核销明细'; CREATE TABLE `qimall_addons_clerk_user` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `mall_id` int(11) NOT NULL DEFAULT '0', `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店id', `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '会员id', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态[0禁用 1启用 -1删除]', `created_at` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `updated_at` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='核销员'; INSERT INTO `qimall_global_var_map`(`name`, `title`, `type`, `is_addons`, `status`, `created_at`, `updated_at`) VALUES ( 'clerk', '电子券核销奖励', 'CapitalTypeMap', 0, 1, 1654569888, 1654569888);