1. User table:
  • Columns: User ID (primary key), Username, Password, Email, Phone number
  • Primary key: User ID
  1. Product table:
  • Columns: Product ID (primary key), Product number, Name, Price, Stock
  • Primary key: Product ID
  1. Order table:
  • Columns: Order ID (primary key), Order number, User ID (foreign key), Order time, Payment status
  • Primary key: Order ID
  • Foreign key: User ID (associated with User table's User ID)
  1. Cart table:
  • Columns: Cart ID (primary key), Cart number, User ID (foreign key), Product ID (foreign key), Quantity
  • Primary key: Cart ID
  • Foreign key: User ID (associated with User table's User ID), Product ID (associated with Product table's Product ID)
  1. Address table:
  • Columns: Address ID (primary key), Address number, User ID (foreign key), Recipient name, Phone number, Address
  • Primary key: Address ID
  • Foreign key: User ID (associated with User table's User ID)
  1. Payment table:
  • Columns: Payment ID (primary key), Payment number, Order number (foreign key), Payment method, Payment time
  • Primary key: Payment ID
  • Foreign key: Order number (associated with Order table's Order ID)
  1. Review table:
  • Columns: Review ID (primary key), Review number, User ID (foreign key), Product ID (foreign key), Review content, Rating
  • Primary key: Review ID
  • Foreign key: User ID (associated with User table's User ID), Product ID (associated with Product table's Product ID)
  1. Logistics table:
  • Columns: Logistics ID (primary key), Logistics number, Order number (foreign key), Courier company, Tracking number, Shipping time, Delivery time
  • Primary key: Logistics ID
  • Foreign key: Order number (associated with Order table's Order ID)
翻译1 用户表User:- 表头:用户ID主键、用户名、密码、邮箱、手机号- 主键:用户ID2 商品表Product:- 表头:商品ID主键、商品编号、名称、价格、库存- 主键:商品ID3 订单表Order:- 表头:订单ID主键、订单编号、用户ID外键、下单时间、支付状态- 主键:订单ID- 外键:用户ID关联用户表的用户ID4 购物车表Cart:- 表头:购物车ID主键、购物车编号、用户ID外

原文地址: https://www.cveoy.top/t/topic/hL4r 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录