You are on page 1of 7

Data Base Design

DATABASE DESIGN

Table Name: Customers


Field Name Data Type Description
customerid nvarchar Unique Identification for every customer
Firstname nvarchar Fisrt name of customer
Lastname nvarchar Last name of customer name
Add1 Nvarchar Address of the customer
Add2 Nvarchar
Pin Nvarchar
Phone Nvarchar Customer cantact number
Points nvarchar Customer credit periods

Table Name: Complaints


Field Name Data Type Description
complaintno nvarchar Unique Identification for every complaint
Customerid nvarchar Refers the ID column of CUSTOMERS table
Datelodged Date/time Date of the complaints
complainttext Nvarchar Description of the complaints

Table Name: Orders


Field Name Data Type Description
Ordered nvarchar Unique Identification for every order
Customerid nvarchar Refers the ID column of CUSTOMERS table
Creditperiod Nvarchar Credit period of every order
Discount Nvarchar Percentage of discount applied, if any

Table Name: Enquires


Field Name Data Type Description
Enqref nvarchar Unique Identification for every enquiry person
Customerid nvarchar Refers the ID column of CUSTOMERS table
Description Nvarchar Description of enquiry

Online Pc Vendor
Data Base Design

Table Name: Order Details


Field Name Data Type Description
Orderid nvarchar Refers the ID column of Orders table
productid nvarchar Refers the ID column of Products table
Orderqty Nvarchar Number of orders

Table Name: Categories


Field Name Data Type Description
Categoryid nvarchar Unique Identification for every category
categoryname nvarchar Name of the category

Table Name: Products


Field Name Data Type Description
Productid nvarchar Unique Identification for every products
Description nvarchar Description of every products
Categoryid Nvarchar Refer the ID column of categorys table
Unitprice Nvarchar Cost per products
Uom Nvarchar Unit of Measurement (Boxes, Numbers, etc.)
Rol nvarchar Re Order Level
Roq Nvarchar Re Order Quantity
Qoh Nvarchar Quantity On Hand

Table Name: AccountsMaster


Field Name Data Type Description
AccountNo nvarchar Unique Identification for every account
Address nvarchar UniqueAddress of tevery accout
City Nvarchar
Phone Nvarchar Contact number
Fax Nvarchar
url nvarchar
Deptcode Nvarchar Refer the ID column of Deptmaster table

Online Pc Vendor
Data Base Design

Table Name: CalMaster


Field Name Data Type Description
Deptcode nvarchar Refer the ID column of Deptmaster table
Appointname nvarchar Name of the appoint
Accountno Nvarchar Refer the accuntno column of AccountsMaster
table
Currdate Date/Time CurrentDate
Appointtype Nvarchar Type of the Appoint
Starttime nvarchar Starttime of the Appoint
Endtime Nvarchar Endtime of the Appoint
Department Nvarchar Name of the Department

Table Name: DeptMaster


Field Name Data Type Description
Deptcode nvarchar Unique Identification for every department
Deptname nvarchar Name of the Department

Table Name: NewItems


Field Name Data Type Description
Item nvarchar Name of the Item
Itemdate Date/Time Date of the item placed
Type Nvarchar Type of the Item
Notes Nvarchar Description of the Item
Deptcode Nvarchar Refer the ID column of Deptmaster table

Table Name: WareHouse


Field Name Data Type Description
Ecode nvarchar Refer the Ecode column of Empmaster table
Contact Nvarchar Name of the contact person/company
Company Nvarchar Name of the contact company
Type Nvarchar Type of contact
Phone Nvarchar Contact number
Fax Nvarchar
Email Nvarchar Email id of the contact

Online Pc Vendor
Data Base Design

Table Name: Empmaster


Field Name Data Type Description
Ecode nvarchar Unique Identification for every employee
Firstname Nvarchar First name of the employee
Lastname Nvarchar Lastname of the employee
Team Nvarchar Team Number of the employee
Role Nvarchar Role of the employee
Bdate Nvarchar Date of birth of the employee
Phone Nvarchar Contact no of the employee
Mail Nvarchar email

TABLE NAME: SUPPLIERS


Field Name Data Type Size Description
Id Long 8 Unique Identification for every supplier
Name Text 25 Name of the supplier
CategoryID Text 25 Category ID for Spares
Add Text 50 Address & Phone numbers of supplier
State Text 25
Country Text 25
Resi Text 25
Office Text 25
Mobile Text 25
Crpd Long 8 Credit period-No.of days (credit) allowed for
this supplier

Online Pc Vendor
Data Base Design

TABLE NAME: SPARES


Field Name Data Type Size Description
Id Long 8 Unique Identification for every Spare Parts
Name Text 25 Name of the spare part
Description Text 50 Elaborate description about this spare part
CategoryId Text 25 Mention the item (Motherboard, Hard
Disk...)
UnitPrice Single 4 Cost per piece, of the spare part
UnitOfMeasuerm Long 8 Unit of Measurement (Boxes, Numbers,
ent etc.)
QtyPerBox Long 8 Number of pieces per box or carton
UnitsOnHand Long 8 Number of pieces currently available in
stock
ReOrderLevel Long 8 Minimum number of pieces to be available
in stock
ReOrderQty Long 8 # pieces to be reordered if stock drops to
ROL
TaxPercent Single 4 Perc.of tax to be levied on the sales of this
spare
Photopath Text 50 URL or full path of the image of this Spares

TABLE NAME: MODELS


Field Name Data Type Size Description
Id Long 8 Unique Identification for every PC model
Name Text 25 Name of the model (DESKPRO,
MINIMIGHT, etc.)
Maker Text 25 Name of the maker (COMPAQ, SIVA,
DELL, HP, etc.)
CategoryId Text 25 Mention the item (NoteBook, Desktop...)
Description Text 50 Elaborate description about this model of
PC’s
PhotoPath Text 50 URL or full path of the image of this model
of PC’s
StandPrice Long 8 Price excluding tax, on the stands
TaxPercent Long 8 Percentage of tax to be levied on sales of this
model
WarrantyPeriod Text 25 Number of months of warranty for this model
Subscribed Text 25 Whether this customer subscribed to the
monthly newsletter or not

Online Pc Vendor
Data Base Design

TABLE NAME: INVOICE


Field Name Data Type Size Description
InvoiceNo Long 8 Unique Identification for every invoice
ClientId Text 25 Refers to the ID column of CLIENTS table
InvoiceDate Date/Time 8 Date on which the invoice was raised
DueDate Date/Time 8 Last date for payment of the invoice amount
InvoiceAmou Single 8 Invoice Amount
nt

TABLE NAME: PAYDATA


Field Name Data Type Size Description
PayId Long 8 Unique identification for every Payment made
by cust
InvoiceNo Text 25 Refers the INVOICENO column of INVOICES
table
InvoiceDate Date/Time 8 Date on which the invoice was raised
InvoiceAmou Single 8 Amount for which the invoice was raised
nt
ClientId Text 25 Refers the ID column of CLIENTS table
DueDate Date/Time 8 Payment due date, which is printed on the
Invoice itself
PayDate Date/Time 8 Default is today’s date. Date on which cust
pays money
PayAmount Single 8 PayAmount
Balance Single 8 Balance Amount

TABLE NAME: QUOTATIONMASTER


Field Name Data Type Size Description
Id Long 8 Unique Identification
ClientId Text 25 Refers to the ID column of CLIENTS table
QuotationAmo Long 8 Total amount of the quotation
unt
DiscountPercen Long 8 Percentage of discount applied on this
t quotation, if any
BillAmount Long 8 Amount paid by customer, if immediately
purchased

Online Pc Vendor
Data Base Design

Online Pc Vendor

You might also like