网上购物数据库设计课稿.docVIP

  • 4
  • 0
  • 约6.17千字
  • 约 15页
  • 2016-08-27 发布于湖北
  • 举报
一、、 图1:网络购物系统总数据流图 2.1数据字典 客户表数据字典: 字段 中文描述 数据类型 是否为空 备注 UserID 客户ID BigInt Not null 主键 UserName 客户名 Varchar(30) Not null RealName 客户真实姓名 Varchar(30) Not null UserPassword 客户密码 Varchar(30) Not null Email 客户邮箱 Varchar(30) Not null Phone 联系电话 Varchar(30) Not null ID 身份证号 Varchar(30) Not null Question 密码问题 Varchar(30) Null Result 答案 Varchar(30) Null RegTime 注册时间 Datetime Not null GradeID 会员等级 BigInt Not null AddressID 地址 Int Not null 表1:客户表字段信息 商品表数据字典: 字段 中文描述 数据类型 是否为空 备注 GoodsID 商品号 BigInt Not null 主键 GName 商品名称 Varchar(30) Not null GPrice 商品价格 Smallmoney Not null GTypeID 商品类别 BigInt Not null GIntro 商品描述 Varchar(200) Null GImage 商品图片路径 Varchar(100) Null GCount 商品计数 Int Not null GSail 商品销量 BigInt Not null GWeight 商品重量 BigInt Null GDateTime 上架日期 Datetime Not null GSize 商品规格 Varchar(100) Not null 表2:商品表字段信息 商品类别表数据字典: 字段 中文描述 数据类型 是否为空 备注 TypeID 商品类别号 BigInt Not null 主键 TypeName 类别描述 Varchar(50) Not null 表3:商品类别表字段信息 商家表数据字典: 字段 中文描述 数据类型 是否为空 备注 ProducerID 商家号 BigInt Not null 主键 ProName 商家名 Varchar(30) Not null ProAddress 商家地址 Varchar(50) Not null ProPhone 商家电话 Varchar(30) Not null 表4:商家表字段信息 订单表数据字典: 字段 中文描述 数据类型 是否为空 备注 SubID 订单号 Varchar(30) Not null 主键 UserID 客户号 BigInt Not null GoodsID 商品号 BigInt Not null RAddress 送货地址 Varchar(50) Not null SpDate 订购日期 Datetime Not null SpCount 订购数量 Int Not null GPrice 单价 Smallmoney Not null ReceiptID 发票号 BigInt Not null SpPrice 订单金额 Money Not null SendDate 发货时间 Datetime Not null Payment 付款方式 Varchar(20) Not null SendType 运送方式 Varchar(20) Not null SendPrice 邮费 Smallmoney Not null State 订单状态 Int Not null 表5:订单表字段信息 购物车表数据字典: 字段 中文描述 数据类型 是否为空 备注 CarID 购物车ID BigInt Not null 主键 UserID 客户ID Varchar(10) Not null GoodsID 商品ID Varchar(20) Not null OrderTime 订购时间 Datetime Not null OrderCount 订购数量 Int Not null GoodsPrice 单价 Smallmoney Not null UserCheck 用户确认 Int Not null OrderPrice 购物总额 Money Not null 表6:购物车表字段信息 会员等级表数据字典: 字段 中文描述 数据类型 是否

文档评论(0)

1亿VIP精品文档

相关文档