You are on page 1of 5

Data Structure for all the models

Table name- Books


Description- use to maintain book records

Terms Used Data Type Width


Constraint
Book ID Number 10 Primary Key
Book Name Varchar2 50

Category_Name Varchar2 50

Author Varchar2 50

ISBN Varchar2 50

No of pages Varchar2 50

Unit price Number 10

Description Varchar2 100


Table name- Customer
Description- Used to maintain customer records
TermUsed Data Type Width Constraint
Customer ID Number 10 Primary Key
First Name Varchar2 50

Last Name Varchar2 50

Phone Number Varchar2 100

Billing address Varchar2 15

Phone number Varchar2 15


Table name- Purchase Order Details
Description- Used to maintain customer records
TermUsed Data Type Width Constraint
Purchase ID Number 10 Primary Key
Purchase ID Number 10 Foreign Key

Purchase Product Number 10


ID

Purchase Quantity Number 10

Purchase Unit Number 10


Price

Purchase Discount Number 10

Net Value Number 10


Table name- Payment Details
Description- Used to maintain customer records
TermUsed Data Type Width Constraint
Invoice _no Number 10 Primary Key
Order ID Number 10 Foreign Key

Payment Date

Dues Varchar 50

Date of payment Number 5

Discount Number 10

Status Number 10
Table name- Stock Details
Description- Used to maintain customer records

TermUsed Data Type Width Constraint

Book ID Number 10 Primary Key

NO of Copies Number 10 Foreign Key

Date Of Maintainces Number 20

You might also like