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 a3199052
authored
Jun 24, 2022
by
chizw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
配置和数据库脚本
1 parent
77b9bca0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
6 deletions
2.4.1_0704版本/数据库scrm_aggregation.sql
2.4.1_0704版本/数据库scrm_aggregation.sql
View file @
a319905
...
@@ -96,7 +96,6 @@ CREATE TABLE `scrm_business_burying_point` (
...
@@ -96,7 +96,6 @@ CREATE TABLE `scrm_business_burying_point` (
`business_type`
int
(
11
)
DEFAULT
NULL
COMMENT
'业务类型 (推荐分享、、、)'
,
`business_type`
int
(
11
)
DEFAULT
NULL
COMMENT
'业务类型 (推荐分享、、、)'
,
`order_id`
varchar
(
100
)
COLLATE
utf8_bin
DEFAULT
NULL
COMMENT
'订单号'
,
`order_id`
varchar
(
100
)
COLLATE
utf8_bin
DEFAULT
NULL
COMMENT
'订单号'
,
`customer_phone`
varchar
(
100
)
COLLATE
utf8_bin
DEFAULT
NULL
COMMENT
'客户手机号'
,
`customer_phone`
varchar
(
100
)
COLLATE
utf8_bin
DEFAULT
NULL
COMMENT
'客户手机号'
,
`add_way`
int
(
11
)
DEFAULT
NULL
COMMENT
'来源'
,
`del_flag`
int
(
2
)
DEFAULT
NULL
COMMENT
'0正常,-1删除'
,
`del_flag`
int
(
2
)
DEFAULT
NULL
COMMENT
'0正常,-1删除'
,
`created_by`
int
(
11
)
DEFAULT
NULL
COMMENT
'创建人'
,
`created_by`
int
(
11
)
DEFAULT
NULL
COMMENT
'创建人'
,
`created_time`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
`created_time`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
...
@@ -120,10 +119,7 @@ PRIMARY KEY (`id`)
...
@@ -120,10 +119,7 @@ PRIMARY KEY (`id`)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_bin
COMMENT
=
'业务类型映射topic配置表'
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_bin
COMMENT
=
'业务类型映射topic配置表'
;
-- DML
-- DML
INSERT
INTO
scrm_aggregation
.
scrm_business_type_topic_config
(
business_name
,
business_type
,
kafka_topic
,
del_flag
,
created_by
,
created_time
,
updated_by
,
updated_time
)
VALUES
(
'活动'
,
1
,
'burying_point_type_share'
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
scrm_aggregation
.
scrm_business_type_topic_config
(
business_name
,
business_type
,
kafka_topic
,
del_flag
,
created_by
,
created_time
,
updated_by
,
updated_time
)
VALUES
(
'推荐分享'
,
1
,
'burying_point_type_share'
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
scrm_aggregation
.
scrm_business_type_topic_config
(
business_name
,
business_type
,
kafka_topic
,
del_flag
,
created_by
,
created_time
,
updated_by
,
updated_time
)
VALUES
(
'优惠券'
,
2
,
'burying_point_type_share'
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
scrm_aggregation
.
scrm_business_type_topic_config
(
business_name
,
business_type
,
kafka_topic
,
del_flag
,
created_by
,
created_time
,
updated_by
,
updated_time
)
VALUES
(
'套餐'
,
3
,
'burying_point_type_share'
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
scrm_aggregation
.
scrm_business_type_topic_config
(
business_name
,
business_type
,
kafka_topic
,
del_flag
,
created_by
,
created_time
,
updated_by
,
updated_time
)
VALUES
(
'门店商品'
,
4
,
'burying_point_type_share'
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
scrm_aggregation
.
scrm_basic_config
(
del_flag
,
bussiness_type
,
bussiness_count
,
model_name
,
event_flag
,
remark
,
created_time
,
created_by
,
updated_time
,
updated_by
,
oneid_belong
)
VALUES
(
0
,
18
,
2
,
'scrm_business_burying_point'
,
1
,
'用户业务埋点表'
,
'2022-06-23 10:34:15'
,
NULL
,
NULL
,
NULL
,
1
);
INSERT
INTO
scrm_aggregation
.
scrm_basic_config
(
del_flag
,
bussiness_type
,
bussiness_count
,
model_name
,
event_flag
,
remark
,
created_time
,
created_by
,
updated_time
,
updated_by
,
oneid_belong
)
VALUES
(
0
,
18
,
2
,
'scrm_business_burying_point'
,
1
,
'用户业务埋点表'
,
'2022-06-23 10:34:15'
,
NULL
,
NULL
,
NULL
,
1
);
...
@@ -134,7 +130,6 @@ INSERT INTO scrm_aggregation.scrm_basic_config_detail (field_index, field_name,
...
@@ -134,7 +130,6 @@ INSERT INTO scrm_aggregation.scrm_basic_config_detail (field_index, field_name,
INSERT
INTO
scrm_aggregation
.
scrm_basic_config_detail
(
field_index
,
field_name
,
field_type
,
field_length
,
field_describe
,
field_rule
,
field_alias
,
remark
,
del_flag
,
created_by
,
created_time
,
updated_by
,
updated_time
)
VALUES
(
238
,
'item_type'
,
'int'
,
11
,
'物品类型'
,
NULL
,
NULL
,
NULL
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
scrm_aggregation
.
scrm_basic_config_detail
(
field_index
,
field_name
,
field_type
,
field_length
,
field_describe
,
field_rule
,
field_alias
,
remark
,
del_flag
,
created_by
,
created_time
,
updated_by
,
updated_time
)
VALUES
(
238
,
'item_type'
,
'int'
,
11
,
'物品类型'
,
NULL
,
NULL
,
NULL
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
scrm_aggregation
.
scrm_model_field_mapping
(
model_name
,
field_index
,
union_rule
,
model_flag
,
model_value
,
oneid_flag
,
expand_flag
,
unique_flag
,
del_flag
)
VALUES
(
'scrm_business_burying_point'
,
242
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
);
INSERT
INTO
scrm_aggregation
.
scrm_model_field_mapping
(
model_name
,
field_index
,
union_rule
,
model_flag
,
model_value
,
oneid_flag
,
expand_flag
,
unique_flag
,
del_flag
)
VALUES
(
'scrm_business_burying_point'
,
242
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
);
INSERT
INTO
scrm_aggregation
.
scrm_model_field_mapping
(
model_name
,
field_index
,
union_rule
,
model_flag
,
model_value
,
oneid_flag
,
expand_flag
,
unique_flag
,
del_flag
)
VALUES
(
'scrm_business_burying_point'
,
63
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
);
INSERT
INTO
scrm_aggregation
.
scrm_model_field_mapping
(
model_name
,
field_index
,
union_rule
,
model_flag
,
model_value
,
oneid_flag
,
expand_flag
,
unique_flag
,
del_flag
)
VALUES
(
'scrm_business_burying_point'
,
241
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
);
INSERT
INTO
scrm_aggregation
.
scrm_model_field_mapping
(
model_name
,
field_index
,
union_rule
,
model_flag
,
model_value
,
oneid_flag
,
expand_flag
,
unique_flag
,
del_flag
)
VALUES
(
'scrm_business_burying_point'
,
241
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
);
INSERT
INTO
scrm_aggregation
.
scrm_model_field_mapping
(
model_name
,
field_index
,
union_rule
,
model_flag
,
model_value
,
oneid_flag
,
expand_flag
,
unique_flag
,
del_flag
)
VALUES
(
'scrm_business_burying_point'
,
240
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
);
INSERT
INTO
scrm_aggregation
.
scrm_model_field_mapping
(
model_name
,
field_index
,
union_rule
,
model_flag
,
model_value
,
oneid_flag
,
expand_flag
,
unique_flag
,
del_flag
)
VALUES
(
'scrm_business_burying_point'
,
240
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
);
INSERT
INTO
scrm_aggregation
.
scrm_model_field_mapping
(
model_name
,
field_index
,
union_rule
,
model_flag
,
model_value
,
oneid_flag
,
expand_flag
,
unique_flag
,
del_flag
)
VALUES
(
'scrm_business_burying_point'
,
239
,
NULL
,
1
,
NULL
,
NULL
,
NULL
,
NULL
,
0
);
INSERT
INTO
scrm_aggregation
.
scrm_model_field_mapping
(
model_name
,
field_index
,
union_rule
,
model_flag
,
model_value
,
oneid_flag
,
expand_flag
,
unique_flag
,
del_flag
)
VALUES
(
'scrm_business_burying_point'
,
239
,
NULL
,
1
,
NULL
,
NULL
,
NULL
,
NULL
,
0
);
...
...
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