Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
85379f44
Commit
85379f44
authored
Apr 30, 2019
by
Junling Bu
Browse files
SQL: 收货地址表调整,参考了vant的AddressEdit组件的参数
parent
4f106f67
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-db/sql/litemall_table.sql
View file @
85379f44
...
...
@@ -51,11 +51,13 @@ CREATE TABLE `litemall_address` (
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`name`
varchar
(
63
)
NOT
NULL
DEFAULT
''
COMMENT
'收货人名称'
,
`user_id`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'用户表的用户ID'
,
`province_id`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'行政区域表的省ID'
,
`city_id`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'行政区域表的市ID'
,
`area_id`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'行政区域表的区县ID'
,
`address`
varchar
(
127
)
NOT
NULL
DEFAULT
''
COMMENT
'具体收货地址'
,
`mobile`
varchar
(
20
)
NOT
NULL
DEFAULT
''
COMMENT
'手机号码'
,
`province`
varchar
(
63
)
NOT
NULL
COMMENT
'行政区域表的省ID'
,
`city`
varchar
(
63
)
NOT
NULL
COMMENT
'行政区域表的市ID'
,
`county`
varchar
(
63
)
NOT
NULL
COMMENT
'行政区域表的区县ID'
,
`address_detail`
varchar
(
127
)
NOT
NULL
DEFAULT
''
COMMENT
'详细收货地址'
,
`area_code`
char
(
6
)
DEFAULT
NULL
COMMENT
'地区编码'
,
`postal_code`
char
(
6
)
DEFAULT
NULL
COMMENT
'邮政编码'
,
`tel`
varchar
(
20
)
NOT
NULL
DEFAULT
''
COMMENT
'手机号码'
,
`is_default`
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否默认地址'
,
`add_time`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
`update_time`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
...
...
Write
Preview
Supports
Markdown
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