Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
djscrm
/
scrm-account-doc
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 75313e0a
authored
May 24, 2022
by
李崇源
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]0606sql脚本信息
1 parent
7395bd46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
2.3.0_0606版本/scrm_entmciro执行sql.sql
2.3.0_0606版本/scrm_entmciro执行sql.sql
0 → 100644
View file @
75313e0
#
创建轻改配置表
CREATE
TABLE
`scrm_operation_config`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'id'
,
`state_id`
varchar
(
30
)
COLLATE
utf8_bin
DEFAULT
NULL
COMMENT
'渠道编号'
,
`business_uuid`
varchar
(
50
)
COLLATE
utf8_bin
DEFAULT
NULL
COMMENT
'业务uuid'
,
`merchant_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'所属门店/商户号'
,
`staff_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'员工id'
,
`business_type`
varchar
(
32
)
COLLATE
utf8_bin
DEFAULT
NULL
COMMENT
'客户类型 0升级 -1战败'
,
`del_flag`
varchar
(
4
)
COLLATE
utf8_bin
DEFAULT
NULL
COMMENT
'删除标识 0正常 -1删除'
,
`status`
int
(
4
)
DEFAULT
NULL
COMMENT
'禁用标识 0启用 -1禁用'
,
`updated_time`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
`updated_by`
varchar
(
32
)
COLLATE
utf8_bin
DEFAULT
NULL
COMMENT
'更新人'
,
`created_time`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
`created_by`
varchar
(
32
)
COLLATE
utf8_bin
DEFAULT
NULL
COMMENT
'创建人'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
5
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_bin
COMMENT
=
'scrm_operation_config'
#
创建轻改配置关联表
CREATE
TABLE
`scrm_operation_customer`
(
`id`
int
(
4
)
NOT
NULL
AUTO_INCREMENT
,
`operation_id`
int
(
4
)
DEFAULT
NULL
COMMENT
'轻改配置id'
,
`code_state`
varchar
(
100
)
COLLATE
utf8_bin
DEFAULT
NULL
COMMENT
'渠道编号'
,
`merchant_id`
int
(
10
)
DEFAULT
NULL
COMMENT
'商户号'
,
`customer_phone`
varchar
(
32
)
COLLATE
utf8_bin
DEFAULT
NULL
COMMENT
'手机号'
,
`order_id`
varchar
(
50
)
COLLATE
utf8_bin
DEFAULT
NULL
COMMENT
'订单号'
,
`del_flag`
int
(
4
)
DEFAULT
NULL
COMMENT
'删除标识0 正常 -1删除'
,
`created_time`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
`created_by`
int
(
10
)
DEFAULT
NULL
COMMENT
'创建人'
,
`updated_time`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
`updated_by`
int
(
10
)
DEFAULT
NULL
COMMENT
'更新人'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
95
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_bin
#
增加员工轻改配置标识
ALTER
TABLE
`scrm_entmicro`
.
`entmicro_staff`
ADD
COLUMN
`is_operation_config`
INT
(
5
)
NULL
COMMENT
'是否是轻改配置员工'
AFTER
`thumb_avatar`
;
#
欢迎语内容索引
ALTER
TABLE
`scrm_entmicro`
.
`drac_scrm_welcome_config`
ADD
INDEX
`index_uuid_desc`
(
`business_uuid`
,
`business_desc`
);
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment