0% found this document useful (0 votes)
204 views2 pages

Shopping Cart Tables

The document describes the schema for tables related to an online bookstore database including tables for book details, category details, order details, temporary details, user authentication, user profiles, orders, and order history. The tables track information like book IDs, titles, authors, categories, prices, quantities, orders, users, and order details. Field names and data types are specified for each table.

Uploaded by

api-3825226
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
204 views2 pages

Shopping Cart Tables

The document describes the schema for tables related to an online bookstore database including tables for book details, category details, order details, temporary details, user authentication, user profiles, orders, and order history. The tables track information like book IDs, titles, authors, categories, prices, quantities, orders, users, and order details. Field names and data types are specified for each table.

Uploaded by

api-3825226
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Book_Details

Field Name Data Type


BookId number(5), primary key
CategoryID number(5), foreign key
Title varchar2(50)
Author varchar2(30)
Publisher varchar2(30)
Edition varchar2(5)
Price number(7,2)
Quantity number(3)
Description varchar2(100)

Category_Details

Field Name Data Type


CategoryID number(5), primary key
CategoryName varchar2(30)

Order_Details

Field Name Data Type


OrderID number(5), foreign key
BookID number(5), foreign key
Quantity number(3)

Temp_Details

Field Name Data Type


BookId number(5)
CategoryID number(5)
Title varchar2(50)
Author varchar2(30)
Publisher varchar2(30)
Edition varchar2(5)
Price number(7,2)
Quantity number(3)
Description varchar2(100)
User_Auth

Field Name Data Type


UserName varchar2(30), foreign key
Password varchar2(15)

User_Profile

Field Name Data Type


UserName varchar2(30), primary key
Password varchar2(15), not null
FirstName varchar2(10), not null
MiddleName varchar2(10)
LastName varchar2(10), not null
Address1 varchar2(40), not null
Address2 varchar2(40)
City varchar2(20), not null
State varchar2(20), not null
PinCode varchar2(10), not null
Email varchar2(25), not null
Phone varchar2(12), not null

Order Table

Field Name Data Type


OrderID number(5), primary key
UserID number(5)
TotalAmount number(12,2)
OderDate varchar2(8)

Order_History

Field Name Data Type


OrderID number(5), foreign key
BookID number(5), foreign key
Date varchar2(10)

You might also like