Mall building table
As a large website, the fields of the mall need to be well designed to cope with large traffic visits. Our mall will imitate Use the ecshop mall to create a table.
Type table
php_type
![1498288091327826.png 类型表.png](http://img.php.cn/upload/image/588/209/779/1498288091327826.png)
##type_name: Type name
product Attribute table
php_attr
![1498288199135969.png QQ截图20170624145646.png](http://img.php.cn/upload/image/176/626/170/1498288199135969.png)
id: auto-increment id
attr_name: attribute name
attr_type: Attribute type 0: Unique attribute 1: Single-select attribute
attr_values: Attribute value
type_id: Corresponding type id
Member table
php_member
![1498288521137161.png 会员表.png](http://img.php.cn/upload/image/215/132/561/1498288521137161.png)
username:user name
password:user password
email: Email
check_mail: Whether it has been verified 0: Not verified 1: Verified
mail_str: Email verification string
sex: 0: Confidential 1: Male 2: Female
points: points
money: balance
regtime: registration time
Member level table
php_member_level
![1498288604648554.png 会员等级表.png](http://img.php.cn/upload/image/427/392/818/1498288604648554.png)
#level_name :Level name
points_min: Points lower limit
points_max: Points upper limit
rate: Discount Rate
Member Price List
##php_member_level
price: member level price
level_id: level id
goods_id: product id
Next Section