kboss/b/user_inquiry.txt
2026-07-07 17:56:59 +08:00

43 lines
3.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

CREATE TABLE `product_inquiry` (
`id` varchar(32) NOT NULL COMMENT '唯一标识符',
`domain_name` varchar(64) NOT NULL COMMENT '所属域名',
`publish_type` varchar(1) DEFAULT NULL COMMENT '发布商品1/ 发布需求2',
`relate_id` varchar(32) DEFAULT NULL COMMENT '发布商品1/ 发布需求2',
`content` varchar(1024) DEFAULT NULL COMMENT '咨询需求内容',
`custom_type` tinyint(1) DEFAULT NULL COMMENT '客户类型0-个人/1-企业)',
`name` varchar(50) DEFAULT NULL COMMENT '联系人姓名',
`phone` varchar(20) DEFAULT NULL COMMENT '联系电话',
`company` varchar(100) DEFAULT NULL COMMENT '企业客户公司名称',
`enterprise_type` tinyint(1) DEFAULT NULL COMMENT '企业类型1-大型/2-中小企业/3-OPC个人/4-高校科研机构/5-政府/6-其他)',
`region` tinyint(1) DEFAULT NULL COMMENT '所在区域0-大陆/1-港澳台)',
`consult_direction` varchar(20) DEFAULT NULL COMMENT '咨询方向多选用逗号分隔1,2,3',
`email` varchar(50) DEFAULT NULL COMMENT '电子邮箱',
`feedback` varchar(1) DEFAULT '0' COMMENT '反馈状态',
`del_flg` varchar(1) DEFAULT '0' COMMENT '删除标志0-正常/1-已删除)',
`update_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT '更新时间',
`create_at` timestamp NULL DEFAULT current_timestamp() COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci ROW_FORMAT=DYNAMIC COMMENT='产品咨询表';
CREATE TABLE `product_inquiry_dict` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`dict_type` varchar(30) NOT NULL COMMENT '字典类型(标识属于哪一组选项)',
`dict_key` tinyint(4) NOT NULL COMMENT '字典键值(对应数据库实际存储的数字)',
`dict_value` varchar(50) NOT NULL COMMENT '字典显示名称(前端下拉框展示的文字)',
`sort_order` int(11) DEFAULT 0 COMMENT '排序序号(数字越小越靠前)',
`status` tinyint(1) DEFAULT 1 COMMENT '状态0-禁用/1-启用)',
`create_time` timestamp NOT NULL DEFAULT current_timestamp() COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='咨询表字典配置表(运营可维护)';
product_inquiry_dict表相关数据:
1 enterprise_type 1 大型企业 1 1 2026-07-07 16:32:45
2 enterprise_type 2 中小企业 2 1 2026-07-07 16:32:45
3 enterprise_type 3 OPC个人 3 1 2026-07-07 16:32:45
4 enterprise_type 4 高校科研机构 4 1 2026-07-07 16:32:45
5 enterprise_type 5 政府 5 1 2026-07-07 16:32:45
6 enterprise_type 6 其他 6 1 2026-07-07 16:32:45
7 region 0 大陆 1 1 2026-07-07 16:34:02
8 region 1 港澳台 2 1 2026-07-07 16:34:02
9 direction 1 AI Infra 基础设施(云/网/算) 1 1 2026-07-07 16:34:02
10 direction 2 AI Agent 智能体(产品开发) 2 1 2026-07-07 16:34:02
11 direction 3 AI Builder 炼智师(能力提升培训) 3 1 2026-07-07 16:34:02