新版数智员工
This commit is contained in:
12
application/store/add_flow_package_fields.sql
Normal file
12
application/store/add_flow_package_fields.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- 为流量套餐表添加公司ID和创建用户ID字段
|
||||
-- 如果字段已存在,会报错,可以忽略
|
||||
|
||||
ALTER TABLE `ck_flow_package`
|
||||
ADD COLUMN `companyId` int(11) NOT NULL DEFAULT 0 COMMENT '公司ID(操盘手所属公司)' AFTER `id`,
|
||||
ADD COLUMN `userId` int(11) NOT NULL DEFAULT 0 COMMENT '创建用户ID(操盘手用户ID)' AFTER `companyId`;
|
||||
|
||||
-- 添加索引
|
||||
ALTER TABLE `ck_flow_package`
|
||||
ADD INDEX `idx_companyId`(`companyId`) USING BTREE,
|
||||
ADD INDEX `idx_userId`(`userId`) USING BTREE;
|
||||
|
||||
Reference in New Issue
Block a user