翻译1 用户表User:- 表头:用户ID主键、用户名、密码、邮箱、手机号- 主键:用户ID2 商品表Product:- 表头:商品ID主键、商品编号、名称、价格、库存- 主键:商品ID3 订单表Order:- 表头:订单ID主键、订单编号、用户ID外键、下单时间、支付状态- 主键:订单ID- 外键:用户ID关联用户表的用户ID4 购物车表Cart:- 表头:购物车ID主键、购物车编号、用户ID外
- User table:
- Columns: User ID (primary key), Username, Password, Email, Phone number
- Primary key: User ID
- Product table:
- Columns: Product ID (primary key), Product number, Name, Price, Stock
- Primary key: Product ID
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
原文地址: https://www.cveoy.top/t/topic/hL4r 著作权归作者所有。请勿转载和采集!