You are on page 1of 2

TABLE DESIGN

Table Name : CustomerTable


Primary Key : Customer_id
Foreign Key : -

Column Name Datatype Description


Customer_id numeric(18, 0) Customer id
Customer_name varchar(50) Customer name
Customer_address varchar(250) Customer address
Mobile_Number numeric(18, 0) Mobile Number
Email_id varchar(50) Email id

Table Name : SupplierTable


Primary Key : Supplier_id
Foreign Key : -

Column Name Datatype Description


supplier_id numeric(18, 0) supplier id
Supplier_name varchar(50) Supplier name
Supplier_address varchar(250) Supplier address
Email_id varchar(50) Email id
Mobile_Number numeric(18, 0) Mobile Number
GST_Number varchar(50) GST Number

Table Name : ProductTable


Primary Key : Product_id
Foreign Key : -

Column Name Datatype Description


Photo_Code numeric(18, 0) Photo Code
Photo_name varchar(20) Photo Name
Photo_category varchar(15) Photo Category
Photo_Quality varchar(15) Photo Quality
Photo_Size Varchar(15) Photo Size
Photo_Description varchar(250) Photo Description
Photo_charges numeric(4, 0) Photo charges
Table Name : DeliveryTable
Primary Key : Delivery_No
Foreign Key : Customer_id, Photo_code

Column Name Datatype Description


Delivery_Number numeric(18, 0) Delivery Number
Delivery_Date datetime Delivery Date
Customer_id numeric(18, 0) Customer id
Photo_Code numeric(18, 0) Photo Code
Order_Details varchar(25) Order Details
Delivery_address varchar(250) Delivery address
No_Qty numeric(4, 0) No Qty
Rate_Qty numeric(4, 0) Rate Qty
Total_Amount numeric(4, 0) Total Amount

Table Name : InvoiceTable


Primary Key : Invoice_No
Foreign Key : Delivery_Number, Customer_id

Column Name Datatype Description


Invoice_No numeric(18, 0) Invoice No
Invoice_Date datetime Invoice Date
Delivery_Number numeric(18, 0) Delivery Number
Customer_id numeric(18, 0) Customer id
Customer_name varchar(250) Customer name
Total_amount numeric(18, 0) Total amount
Tax_Percentage numeric(18, 0) Tax Percentage
Tax_Amount numeric(18, 0) Tax Amount
Total_Net_Amount numeric(18, 0) Total Net Amount

You might also like