Question: This is our final schema for the E - commerce Purchasing System: 1 . customers - customer _ id ( Primary Key ) - name
This is our final schema for the Ecommerce Purchasing System:
customers
customerid Primary Key
name VARCHAR Not Null
email VARCHAR Unique, Not Null
customerdetails
detailid Primary Key
customerid Foreign Key, References customers.customerid Not Null
address VVARCHAR Not Null
phonenumber VARCHAR Not Null
products
productid Primary Key
name VARCHAR Not Null
category VARCHAR Not Null
price DECIMAL Not Null
orders
orderid Primary Key
customerid Foreign Key, References customers.customerid Not Null
orderdate DATE Not Null
totalamount DECIMAL Not Null The total cost of the order.
cdot orderstatus ENUMPending 'Shipped', 'Delivered' Not Null
orderitems
orderitemid Primary Key
orderid Foreign Key, References orders.orderid Not Null
productid Foreign Key, References products.productid Not Null
quantity INT Not Null Number of units ordered for this product.
payments
paymentid Primary Key
orderid Foreign Key, References orders.orderid Not Null
paymentmethod ENUMCreditCard 'PayPal' Not Null
paymentstatus ENUMCompleted 'Pending', 'Failed' Not Null
paymentdate DATE Not Null Figure : Ecommerce Purchasing System Scheme
LAB :
Build the tables in Oracle Live SQL with your account according to the schema.
Build the relations among the tables.
Delete, modify or update the tables.
Delete, modify or update the constraints.
Insert sample data into tables.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
