Professional Documents
Culture Documents
Project
Project
Project
INFORMATION TECHNOLOGY
Submitted By:
Vishal Poddar (1058)
Nilesh Kumar (1060)
Medha Tripa (1069)
Shruti Maru (1074)
Branch: CSE
Group: A
Semester: V
Course: DBMS
Course Code: CS 3001
Submitted To: Dr. Nidhi Kushwaha
[Type here]
ELECTRICITY BILL MANAGEMENT SYSTEM
ELECTRICITY BILL MANAGEMENT
SYSTEM
Description
This project is a web-based application focused on user
authentication, post management, and user interactions. It utilizes a
backend built with Node.js and a database accessed through queries
using the 'db.js' module. The authentication system includes user
registration with hashed passwords using bcrypt for security, and user
login generating JSON Web Tokens (JWTs) for subsequent secure
requests. The application allows users to register, log in, create,
update, and delete posts. Each post is associated with a user and
includes relevant details such as title, description, image, category,
and date. The code integrates cookie handling for maintaining user
sessions and provides routes for user logout. This project
demonstrates a simple yet functional user authentication and post
management system with server-side validation and security measures
in place.
[Type here]
ELECTRICITY BILL MANAGEMENT SYSTEM
ER Diagram
Schema Diagram
[Type here]
ELECTRICITY BILL MANAGEMENT SYSTEM
Tables
[Type here]
ELECTRICITY BILL MANAGEMENT SYSTEM
[Type here]
ELECTRICITY BILL MANAGEMENT SYSTEM
SELECT * FROM users WHERE email = ? OR username = ?;
Queries
→ Create Table Queries
-- Create table account
CREATE TABLE account (
acc_id int NOT NULL,
cust_id int DEFAULT NULL,
account_no varchar(50) DEFAULT NULL,
name varchar(50) NOT NULL,
PRIMARY KEY (acc_id),
KEY cust_id (cust_id),
[Type here]
ELECTRICITY BILL MANAGEMENT SYSTEM
CONSTRAINT account_ibfk_1 FOREIGN KEY (cust_id)
REFERENCES customer (cust_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_0900_ai_ci;
[Type here]
ELECTRICITY BILL MANAGEMENT SYSTEM
INSERT INTO admin VALUES
(1,'Sahil',111),(2,'Karan',112),(3,'Rahul',113),(4,'Nikhil',211),(5,'Sush
mitha',212),(6,'Priyanka',311),(7,'Shikha',312),(8,'Ritesh',313),(9,'Ama
n',411),(10,'Nitin',412),(11,'Akshat',345),(12,'Ankit',325),(13,'Shashi',
347),(14,'Ritika',367),(15,'Kamchin',324);
[Type here]
ELECTRICITY BILL MANAGEMENT SYSTEM