Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
马玮
/
carspider
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3a7fcc58
authored
Aug 25, 2017
by
马玮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sql
parent
248f3511
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
sql/history.sql
+35
-0
No files found.
sql/history.sql
View file @
3a7fcc58
...
@@ -2,3 +2,37 @@ UPDATE `crm_dd_input_type` SET `name`='易车' WHERE (`id`='21');
...
@@ -2,3 +2,37 @@ UPDATE `crm_dd_input_type` SET `name`='易车' WHERE (`id`='21');
ALTER
IGNORE
TABLE
`crm_clue`
ALTER
IGNORE
TABLE
`crm_clue`
ADD
UNIQUE
INDEX
`customer_car`
(
`shop_id`
,
`clue_input_type`
,
`customer_phone`
,
`intention_des`
(
191
),
`create_time`
);
ADD
UNIQUE
INDEX
`customer_car`
(
`shop_id`
,
`clue_input_type`
,
`customer_phone`
,
`intention_des`
(
191
),
`create_time`
);
-- ----------------------------
-- Table structure for crm_dealer_thirdparty_account
-- ----------------------------
DROP
TABLE
IF
EXISTS
`crm_dealer_thirdparty_account`
;
CREATE
TABLE
`crm_dealer_thirdparty_account`
(
`id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`dealerID`
int
(
11
)
DEFAULT
'0'
COMMENT
'经销商ID'
,
`website`
varchar
(
255
)
DEFAULT
''
COMMENT
'第三方网站名称'
,
`username`
varchar
(
255
)
DEFAULT
''
COMMENT
'第三方账号用户名'
,
`password`
varchar
(
255
)
DEFAULT
''
COMMENT
'第三方账号密码'
,
`cookies`
text
COMMENT
'第三方账号cookies'
,
`error`
text
COMMENT
'爬取第三方过程中产生的错误'
,
`status`
tinyint
(
255
)
DEFAULT
'0'
COMMENT
'第三方账号状态: -1: 同步失败, 0: 未同步, 1: 同步成功'
,
`createdAt`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'第三方账号创建时间'
,
`updatedAt`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'第三方账号更新时间'
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`dealerWeb`
(
`dealerID`
,
`website`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
-- ----------------------------
-- Table structure for crm_dealer_thirdparty_summary
-- ----------------------------
DROP
TABLE
IF
EXISTS
`crm_dealer_thirdparty_summary`
;
CREATE
TABLE
`crm_dealer_thirdparty_summary`
(
`id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`dealerID`
int
(
11
)
DEFAULT
'0'
COMMENT
'经销商ID'
,
`totalClue`
int
(
11
)
DEFAULT
'0'
COMMENT
'线索总计'
,
`totalAccount`
int
(
11
)
DEFAULT
'0'
COMMENT
'第三方账号总计'
,
`createdAt`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'创建时间'
,
`updatedAt`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`dealerID`
(
`dealerID`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment