Register Now

Login


Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Accounting and sales system Table design and ER Diagram

Accounting and sales system Table design and ER Diagram

Here we shared Accounting and sales system Table design and ER Diagram. This system manages ice block sales, stock levels, customer billing, employee salaries, and pricing for an ice production business. The database includes tables to track sales, inventory, billing, customers, employees, and pricing. The project involves designing a database to manage financial and operational data for two distinct businesses: one is Focuses on managing tenants, rental properties, billing (electricity, rent, maintenance, service tax), and receipts. And another is Focuses on tracking sales, stock, billing, customers, employee salaries, and pricing for ice blocks.


Accounting and sales system Table design:

Tenant table
Field nameData typeConstraintsDescription
Tenant_idVarchar(10)Primary keyId of the particular Tenant
Tenant_nameVarchar(25)Not nullName of the particular
PhoneNumeric(18,0)Not nullPhone number Of the Tenant
E-mailVarchar(50)Not nullE-mail of the Tenant
Receipt Table
Field nameData typeConstraintsDescription
Receipt_noVarchar(10)Primary keyNumber of the receipt
PeriodDateNot nullFrom &To_date of the receipt
Paid AmountNumeric(10)Not nullAmt paid by the Tenant
Bill_noVarchar(10)Foreign keyBill Number
ParticularsVarchar(15)Not nullTypes of bill
Receipt_dateDateNot nullDate on which Receipt is issued
Electricity Table
Field nameData typeConstraintsDescription
Bill_noVarchar(10)Primary keyBill Number
AmountNumeric(18,0)Not nullElectricity Charges
Bill DateDateNot nullDate on which bill is prepared
Last_readingNumeric(18,0)Not nullFinal Reading Of the Meter
First_readingNumeric(18,0)Not nullInitial Reading Of The Meter
Due_dateDateNot nullLast day to pay the bill
KVAVarchar(10)Not nullUnits allotted(Kilo Volts Ampere)
TaxNumeric(18,0)Not nullTax allotted for the Electricity charges
Tenant_idNumeric(18,0)Foreign keyId of the Tenant
YearNumeric(18,0)Not nullYear
MonthVarchar(10)Not nullMonth on which bill is issued
Rental table
Field nameData typeConstraintsDescription
Bill_noVarchar(10)Primary keyBill Number
Bill DateDateNot nullBill Date
Rental_amtNumeric(18,0)Not nullRent Charges
Tenant_idVarchar(10)Foreign keyId of the Tenant
MonthVarchar(10)Not nullMonth on which bill is issued
YearNumeric(18,0)Not nullYear
Maintenance table
Field nameData typeConstraintsDescription
Bill_noVarchar(10)Primary keyBill Number
Bill DateDateNot nullBill Date
Maintenance_amtNumeric(18,0)Not nullMaintenance Charges
Tenant_idVarchar(10)Foreign keyId of the tenant
MonthVarchar(10) Month on which bill is issued
YearNumeric(18,0) Year
Service Tax Table
Field nameData typeConstraintsDescription
Bill_noVarchar(10)Primary keyBill Number
From_dateDateNot nullInitial date of the tax
To_dateDateNot nullFinal date of the tax
Education_cessVarchar(10)Not nullEducation_cess allotted to particular tax amount
Higher & Secondary CessVarchar(10)Not nullHigher & Secondary Cess allotted to particular tax amount
TaxNumeric(18,0)Not nullTax allotted to the rent
Tenant_idVarchar(10)Foreign keyId of the Tenant
Bill_dateDateNot nullBill Date
                                                            Flat information Table
Field nameData typeConstraintsDescription
Door_noVarchar(10)Primary keyDoor number of the Flat
Floor_noNumeric(18,0)Not nullDescribes the particular floor
RentNumeric(18,0)Not nullRent of the flat
Meter_noNumeric(18,0)Not nullMeter number of the flat
Tenant &Flat  Information Table
Field nameData typeConstraintsDescription
Tenant_idVarchar(10)Foreign keyId of the Tenant
Door_noVarchar(10)Foreign keyNumber of the door

Indus Ice Plant:

Sales table
Field nameData typeConstraintsDescription
Customer_idVarchar(10)Foreign keyId of the customer
DateDateNot nullSales Date
QtyNumeric(18,0)Not  nullNumber of ice blocks sold
Stock Table
Field nameData typeConstraintsDescription
DateDatePrimary keyDate
Crush_qtyNumeric(18,0)Not nullNumber of ice blocks crushed
Storage_qtyNumeric(18,0)Not nullNumber of ice blocks stored
Bill Table
Field nameData typeConstraintsDescription
Bill_noVarchar(10)Primary KeyBill Number
From_dateDateNot nullInitial  Bill Date
To_dateDateNot nullFinal Bill Date
TaxNumeric(18,0)Not nullTax for particular bill
QtyNumeric(18,0)Not nullQuantity of ice blocks
PriceNumeric(18,0)Not nullTotal amount
Customer_idVarchar(10)Foreign keyId of the customer
Bill_dateDateNot nullDate on which the bill is issued
Indus Customer table
Field nameData typeConstraintsDescription
Cust_idVarchar(10)Primary keyId of the customer
Cust_nameVarchar(10)Not nullName of the customer
Cust_addressVarchar(50)Not nullAddress of the customer
PhoneNumeric(18,0)Not nullPhone Number of the customer
Salary table
Field nameData typeConstraintsDescription
Sal_DateDateNot nullDate on which salary is issued
CommissionNumeric(18,0)Not nullCommission of the customer
Emp_idVarchar(10)Foreign keyId of the customer
MonthVarchar(10)Not nullMonth on which the salary is issued
YearNumeric(18,0)Not nullYear
Employee Table
Field nameData typeConstraintsDescription
Emp_IdVarchar(10)Primary KeyId of the customer
Emp_NameVarchar(50)Not  nullName of the Employee
Emp_AddressVarchar(50)Not nullAddress of the Employee
PhoneNumeric(18, 0)Not nullPhone Number of the Employee
Basic_SalaryNumeric(18, 0)Not nullBasic Salary of the Employee
Price details Table
Field nameData typeConstraintsDescription
PriceNumeric(18,0)Not nullPrice of the single ice blocks
YearNumeric(18,0)Not nullYear

Accounting and sales system ER Diagram



Download Complete Documentation


Leave a reply

WhatsApp