opencart数据字典.docx

上传人:b****6 文档编号:7976897 上传时间:2023-01-27 格式:DOCX 页数:44 大小:27.80KB
下载 相关 举报
opencart数据字典.docx_第1页
第1页 / 共44页
opencart数据字典.docx_第2页
第2页 / 共44页
opencart数据字典.docx_第3页
第3页 / 共44页
opencart数据字典.docx_第4页
第4页 / 共44页
opencart数据字典.docx_第5页
第5页 / 共44页
点击查看更多>>
下载资源
资源描述

opencart数据字典.docx

《opencart数据字典.docx》由会员分享,可在线阅读,更多相关《opencart数据字典.docx(44页珍藏版)》请在冰豆网上搜索。

opencart数据字典.docx

opencart数据字典

Opencart数据字典

1.Address表

地址表

用于存放会员的地址信息

主键:

address_id

字段名

数据类型

长度

是否为空

主键

备注

address_id

Int

11

Not

Yes

地址主键(自动增长)

customer_id

Int

11

Not

会员的注册ID(与customer表的主键关联)

Company

Varchar

32

Not

公司

FirstName

Varchar

32

Not

LastnNme

Varchar

32

Not

address_1

Varchar

32

Not

街道地址

address_2

Varchar

32

Not

可随意填写

postcode

Varchar

32

Not

邮编

city

Varchar

32

Not

城市

country_id

Int

11

Not

国家编号(iso)(关联counry表的主键country_id)

Zone_id

Int

11

Not

地区编号(iso)关联zone表的主键zone_id

2.category表

产品分类表:

用于商品的多级分类

主键:

category_id

字段名

数据类型

长度

是否为空

主键

备注

category_id

Int

11

Not

Yes(自动增长)

分类主键

Image

Varchar

255

Not

图片名称

parent_id

Int

11

Not

父节点ID

sort_order

Int

32

Not

排序ID

date_added

datetime

0

Not

添加日期

date_modified

datetime

0

Not

修改日期

status

int

1

Not

状态(显示/不显示)即该分类可用/不可用

3.category_description表

产品分类信息描述表:

用于商品的多级分类

主键:

category_id,language_id

字段名

数据类型

长度

是否为空

主键

备注

category_id

Int

11

Not

Yes

分类主键

language_id

int

11

Not

Yes

语言主键

name

varchar

11

Not

分类名称

meta_keywords

Varchar

32

Not

Meta标签关键字

meta_description

Varchar

0

Not

Meta标签描述

description

text

0

Not

分类的描述信息

Meta_keyword和meta_description存储meta标签的keyword和Description、的内容

4.category_to_store表

产品分类和商店关联表:

主键:

category_id

字段名

数据类型

长度

是否为空

主键

备注

category_id

Int

11

Not

Yes

分类主键

Store_id

int

11

Not

Yes

商店编号

5.Country表

存储国家ISO代码,以及支付通道需要的国家代码

主键:

country_id

字段名

数据类型

长度

是否为空

主键

备注

country_id

Int

11

Not

Yes

国家编号(主键)

name

Varchar

32

Not

Yes

国家名称

iso_code_2

Varcahr

32

Not

iso_code_3

Varchar

32

Not

iso_code_4

Varchar

32

Not

支付所需要的国家代码

address_format

text

32

Not

未明白

status

int

1

Not

状态(可用/不可用)

6.Coupon表

优惠券信息表

存储优惠券的相关信息设置。

主键:

coupon_id

字段名

数据类型

长度

是否为空

主键

备注

coupon_id

Int

11

Not

Yes

优惠券主键(自增)

Code

Varchar

10

Not

优惠券代码(买家需要填该代码才能享受到优惠)

type

char

1

Not

优惠券的类型(1.百分率折扣;2.固定金额的打折)

discount

decimal

15

Not

打折率

logged

int

1

Not

登陆状态(设置优惠券是否登陆可用)

shipping

int

1

Not

运费状态(是否免运费)

total

decimal

15

Not

暂不明确

date_start

Date

0

Not

优惠券生效日期

date_end

Date

0

Not

优惠券失效日期

uses_total

int

11

Not

该优惠券可用次数(所有会员)

uses_customer

Varcahr

11

Not

每位注册会员对该优惠券可用次数

Status

Int

1

Not

优惠券状态

Date_add

Date

0

Not

优惠券添加日期

7.coupon_description优惠券信息描述表

优惠券相关的描述信息和对应的语言包。

主键:

coupon_id

字段名

数据类型

长度

是否为空

主键

备注

coupon_id

Int

11

Not

Yes

优惠券编号(关联coupon表中coupon_id的)

language_id

int

11

Not

Yes

语言包编号(关联language表中的language_id)

name

Varchar

32

Not

优惠券名称

description

Text

0

Not

优惠券相关描述

8.coupon_product优惠券与商品关联表

存储优惠券编号(coupon_id)和商品编号(product_id)

主键:

coupon_product_id

字段名

数据类型

长度

是否为空

主键

备注

coupon_product_id

Int

11

Not

Yes

主键(自增)

coupon_id

int

11

Not

优惠券编号(关联coupon表主键)

Product_id

Int

11

Not

商品编号(关联product表主键)

9.currency货币表

存储商店支持的货币信息。

主键:

currency_id

字段名

数据类型

长度

是否为空

主键

备注

Currency_id

Int

11

Not

Yes

主键(自增)

title

Varchar

32

Not

商店页面需要显示的货币名称(eg:

USDollar、Euro)

code

Varchar

3

Not

货币代码(eg:

USD、EUR)

symbol_left

varchar

12

Not

货币符号金额左边显示(eg:

$32、¥45、)

symbol_right

varchar

12

Not

货币符号金额右边显示

decimal_place

char

1

Not

保留小数点后几位有效数字

value

float

15

Not

该货币对应商店默认货币的汇率

status

Int

1

Not

货币状态

Modify_date

Date

0

Not

修改时间

10.Customer注册会员信息表

存储会员注册时的信息

主键:

customer_id

字段名

数据类型

长度

是否为空

主键

备注

Customer_id

Int

11

Not

Yes

主键(自增)

store_id

Int

11

Not

商店编号(关联store表主键)

firstname

Varchar

32

Not

lastname

varchar

32

Not

email

varchar

96

Not

电子信箱

telephone

varchar

32

Not

电话号码

fax

Varchar

32

Not

传真

password

Vachar

32

Not

密码

cart

Text

0

Not

扩展字段(暂时未用)

newsletter

Int

1

Not

扩展字段(暂时未用)

address_id

Int、

11

Not

地址编号(关联address表主键)

status

Int

1

Not

状态

approved

Int

1

扩展字段(暂时未用)

customer_group_id

Int

11

Not

会员组编号(关联customer_group表主键)

ip

Varcahr

32

Not

会员注册时的IP地址

date_added

Date

0

Not

会员注册日期

11.customer_group会员组别表

会员分组

主键:

customer_group_id

字段名

数据类型

长度

是否为空

主键

备注

customer_group_id

Int

11

Not

Yes

主键(自增)

name

Varchar

32

Not

分组名称

12.download下载功能表

存储商店下载类产品的信息

主键:

download_id

字段名

数据类型

长度

是否为空

主键

备注

download_id

Int

11

Not

Yes

主键(自增)

filename

Varchar

128

Not

上传到download文件夹下面的文件名)

mask

Varchar

128

Not

本地上传的文件名

remaining

Int

1

Not

可下载次数

Date_added

Date

0

Not

上传时间

13.Download_Description下载信息描述

主键:

download_id

字段名

数据类型

长度

是否为空

主键

备注

download_id

Int

11

Not

Yes

主键(关联download主键)

language_id

Int

11

Not

主键(关联language主键)

Name

Varcahr

32

Not

该下载类名称

14.extension模块扩展管理表

存储管理后台安装的一些扩展模块的信息:

如添加或者卸载,支付方式、运送方式,增加或者去掉商店前台的一个展示模块。

主键:

字段名

数据类型

长度

是否为空

主键

备注

extension_id

Int

11

Not

Yes

主键(自增)

Key

Varcahr

32

Not

Value

Varcahr

32

Not

15.geo_zone

主键:

geo_zone_id

字段名

数据类型

长度

是否为空

主键

备注

geo_zone_id

Int

11

Not

Yes

主键(自增)

name

Varcahr

32

Not

description

Varcahr

255

Not

date_modified

Date

0

Not

修改日期

Date_added

Date

0

添加日期

16.information商店附加资讯表

主要存储一些新闻公告,服务条款等信息内容。

主键:

information_id

字段名

数据类型

长度

是否为空

主键

备注

information_id

Int

11

Not

Yes

主键(自增)

sort_order

Int

3

Not

排序位置

status

Int

1

Not

状态

17.information_description

information描述表关联information

主键:

information_id,language_id

字段名

数据类型

长度

是否为空

主键

备注

information_id

Int

11

Not

Yes

主键(关联information主键)

language_id

Int

3

Not

主键(关联language主键)

title

Varchar

64

Not

标题

description

Text

0

Not

描述内容

18.information_to_store

Information关联商店表:

主要存储不同商店中的information信息。

主键:

information_id,store_id

字段名

数据类型

长度

是否为空

主键

备注

information_id

Int

11

Not

Yes

主键(关联information主键)

store_id

Int

11

Not

主键(关联store主键)

19.language

语言包表:

记录添加的语言包信息。

主键:

language_id.

字段名

数据类型

长度

是否为空

主键

备注

language_id

Int

11

Not

Yes

主键(自增)

name

Varchar

32

Not

语言包名称

code

Varchar

5

Not

语言包代码(eg:

英文语言包:

en)

locale

varchar

255

Not

语言包字符集编码

image

Varcahr

64

Not

语言包前台商店显示的对应图片

directory

Varcahr

32

Not

语言包的文件夹名称

filename

Varcahr

64

Not

语言包根目录下面的php文件名称

sort_order

Int

3

Not

显示的位置循序

status

Int

1

Not

状态

20.length_class

长度单位表

主键:

length_class_id

字段名

数据类型

长度

是否为空

主键

备注

length_class_id

Int

11

Not

Yes

主键(自增)

Value

Int

11

Not

1厘米转换成该单位的值

21.length_class_description

长度单位信息表

主键;length_class_id.language_id;

字段名

数据类型

长度

是否为空

主键

备注

length_class_id

Int

11

Not

Yes

主键(关联length_class主键)

Language_id

Int

11

Not

主键(关联language主键)

title

Varchar

32

Not

长度标题

Unit

Varcahr

4

Not

长度单位英文简写

22.manufacturer

品牌或者制造商信息表

主键:

manufacturer_id

字段名

数据类型

长度

是否为空

主键

备注

manufacturer_id

Int

11

Not

Yes

主键(自增)

name

varchar

32

Not

名称

image

Varchar

255

Not

图片路径名称

sort_order

Int

3

Not

排序位置

23.Manufacturer_to_store

Manufacturer关联商店表

主键:

Manufacturer_id,store_id

字段名

数据类型

长度

是否为空

主键

备注

manufacturer_id

Int

11

Not

Yes

主键(关联Manufacture主键)

store_id

Int

11

Not

主键(关联store主键)

24.order

订单表:

记录订单信息,买家信息。

主键:

order_id

字段名

数据类型

长度

是否为空

主键

备注

order_id

Int

11

Not

Yes

主键(自增)

invoice_id

Int

11

Not

发票编号

invoice_prefix

Varchar

10

Not

发票前缀

store_id

Int

11

Not

商店编号(关联store主键)

store_name

Varcahr

64

Not

商店名称

store_url

Varcahr

255

Not

商店的web路径

customer_id

Int

11

Not

客户编号(游客购买默认为零)

customer_group_id

Int

11

Not

客户组编号

firstname

Varchar

32

Not

Lastname

Varchar

32

Not

telephone

Varchar

32

Not

电话

Fax

Varchar

32

Not

传真

Email

Varchar

32

Not

电子信箱

shipping_firstname

Varchar

32

Not

收货人姓名

shipping_lastname

Varchar

32

Not

收货人姓名

shipping_company

Varchar

32

Not

收货人公司

shipping_address_1

Varchar

128

Not

收货人街道地址

shipping_address_2

Varchar

128

shipping_city

Varchar

128

Not

收货人城市名称

shipping_postcode

Varchar

128

Not

收货人邮编

shipping_zone

Varchar

128

Not

收货人所在地区

shipping_zone_id

Int

11

Not

收货人地区编号(关联zone主键)

shipping_country

Varchar

128

Not

收货人所在国家

shipping_country_id

Int

11

Not

收货人国家编号(关联country主键)

shipping_address_format

Text

0

暂不明确

shipping_method

Varcahr

128

Not

运送方式

payment_firstname

Varchar

32

Not

买家姓名

payment_lastname

Varchar

32

Not

买家姓名

payment_company

Varchar

32

Not

买家公司名称

payment_address_1

Varchar

32

Not

买家接到地址

payment_address_2

Varchar

32

Not

payment_city

Varchar

128

Not

买家所在城市

payment_postcode

Varchar

10

Not

买家所在地邮编

payment_zone

Varchar

128

Not

买家所在地区

payment_zone_id

Int

11

Not

买家所在地区编号(关联zone主键)

payment_country

Varchar

128

Not

买家所在国家

payment_country_id

Int

11

Not

买家所在国家编号(关联country主键)

payment_address_format

Text

0

payment_method

Varchar

128

Not

支付方式

Comment

Text

0

订单附加信息

Total

decimal

15

Not

订单总金额

order_status_id

Int

1

订单状态(关联order_status主键)

language_id

Int

11

Not

语言包编号

currency_id

Int

11

Not

货币编号(关联currency主键)

Currency

Varcahr

32

Not

货币名称

Value

Int

********

coupon_id

Int

11

Not

优惠券代码编号

date_modified

Date

0

Not

订单修改日期

date_added

Date

0

Not、

订单添加日期

ip

Varchar

128

Not

买家IP地址

***25.order_download

主键:

order_download_id

字段名

数据类型

长度

是否为空

主键

备注

order_download_id

Int

11

Not

Yes

主键(自增)

order_id

Int

11

Not

订单编号(关联order主键)

order_product_id

Int

11

Not

***

name

Varcahr

64

Not

filename

Varchar

128

Not

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 其它

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1