0% found this document useful (0 votes)
42 views30 pages

Digital Traffic PDF

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 30

System Design.

Normalization, DFD, ERD, Data Dictionary


DESIGN AND DEVELOPMENT OF DIGITAL
TRAFFIC VIOLATION VIEWING AND PAYING
THROUGH DIGITAL WALLET AND ONLINE
BANKING USING QR CODE.
Normalization
ViolationTable

Username(PK)
Password
Name
Age
ContactNumber
Email
Address
Violation_type
Total_amount
Birthdate
created_at

Unnormalized Table
1st Normalized Table
User
Username(PK)
Password
Fname
Lname
Email
Address
ContactNumber
Age
Birthdate
userStatus
User Officer
Username(PK) Officer_id(PK)
Password Fname
Fname Lname
Lname Location
Email ContactNumber
Address created_at
ContactNumber
Age
Birthdate Admin
userStatus Admin_id(PK)
Password
Fname
Lname
Role

2nd Normalized Table


3rd Normalized Table
User

Username(PK)
Password
Fname
Lname Officer
Email Admin
Officer_id(PK)
Address Admin_id(PK) Fname
ContactNumber Password Lname
Age Fname Location
Birthdate Lname ContactNumber
userStatus Role created_at

Violation Payment
Violation_id(PK) created_at Payment_id(PK)
Username(FK) vehicle_type Username(FK)
violationCode Qr_img Amount
violationName Total_balance
offense created_at
violationDesc payment_status
Grave_violation Less_Grave_violation Light_violation
graveID(PK) lessGrave_ID(PK) lightID(PK)
Violation_id(FK) Violation_id(FK) Violation_id(FK)
demerit demerit demerit
fine fine fine
penalty penalty penalty

E_Wallet Online_Bank
eWallet_id(PK) onlineBank_id(PK)
Payment(FK) Payment(FK)
ewalletName bankName
owner owner
Address debitcard_Num
ContactNum Address
securityCode
Email
Paypal Gcash PayMaya Other_Wallet
Paypal_id(PK) Gcash_id(PK) PayMaya_id(PK) otherWallet_id(PK)
Payment(FK) Payment(FK) Payment(FK) Payment(FK)
eWallet_id(FK) eWallet_id(FK) eWallet_id(FK) eWallet_id(FK)
Total_bal Total_bal Total_bal Total_bal
referenceNum referenceNum referenceNum referenceNum

BDO Psbank BPI Other_Bank


BDO_id(PK) Psbank_id(PK) BPI_id(PK) otherBank_id(PK)
Payment(FK) Payment(FK) Payment(FK) Payment(FK)
onlineBank_id(FK) onlineBank_id(FK) onlineBank_id(FK) onlineBank_id(FK)
Total_bal Total_bal Total_bal Total_bal
Account_Num Account_Num Account_Num Account_Num
Data Flow Diagram
Send a Request to view
Classified (his/her Violation)
Grave Violation
as

View the Violation Payment Pays the


Less Grave Classified Violation
Violation
Violation as through
Received Sends
Payment

Classified
Light Violation Logged In Logged In
as E-Wallet Online Banking

Failed to
Log in
PayPal Classified as Classified as BDO
Username & User
Password
(Login) Login G-Cash Classified as Classified as Psbank

PayMaya Classified as Classified as BPI


User
Other Other
Classified as Classified as
Wallet Bank
Register
Receives a
Violation Store Violation
Send Notification Data
Email / Update about Officer
the Status of
Process the Violation/ Receipt
Violation/Vie Admin
wing/Paymen
t
Entity Relationship Diagram
Officer Admin

Officer_id(PK) Admin_id(PK)
Manage Password
Fname Gives a Violation
Lname Fname
Location Lname
ContactNumber Role
created_at

User
Process
Username(PK)
Password
Grave_violation Fname
Lname
graveID(PK) Email
Violation_id(FK) Address
demerit ContactNumber
fine Age
penalty Birthdate
userStatus
Process

Categorized as Send a
View
Violation
Violation_id(PK)
Username(FK)
violationCode Categorized as
violationName
offense
violationDesc
created_at
vehicle_type
Qr_img
Payment
Categorized as Payment_id(PK)
Username(FK)
Light_violation Amount
Less_Grave_violation lightID(PK) Total_balance
lessGrave_ID(PK) Violation_id(FK) created_at
Violation_id(FK) demerit payment_status
demerit fine
fine penalty
penalty
E_Wallet
eWallet_id(PK) Categorized as
Classified as Payment(FK)
ewalletName
owner
Address
ContactNum
Classified as
Categorized as
Classified as

Classified as

Paypal Gcash PayMaya Other_Wallet


Paypal_id(PK) Gcash_id(PK) PayMaya_id(PK) otherWallet_id(PK)
Payment(FK) Payment(FK) Payment(FK) Payment(FK)
eWallet_id(FK) eWallet_id(FK) eWallet_id(FK) eWallet_id(FK)
Total_bal Total_bal Total_bal Total_bal
referenceNum referenceNum referenceNum referenceNum
Psbank
Psbank_id(PK)
Online_Bank
Payment(FK)
onlineBank_id(FK) Classified as onlineBank_id(PK)
Total_bal
Payment(FK)
Account_Num
bankName
owner
Classified as
debitcard_Num
Address
securityCode
BDO Email
Classified as
BDO_id(PK)
Payment(FK) Classified as
onlineBank_id(FK)
Total_bal BPI
Other_Bank
Account_Num BPI_id(PK)
Payment(FK) otherBank_id(PK)
onlineBank_id(FK) Payment(FK)
Total_bal onlineBank_id(FK)
Account_Num Total_bal
Account_Num
Data Dictionary
Table Name Field Name Data Type Size Null Key Value

User Username varchar 15 no Primary Key


Password varchar 40 no
Fname varchar 30 no
Laname
Email
varchar
varchar
30
25
no
no User Table
Address varchar 40 no
Contact varchar 15 no
Number
Age smallint 2 no
Birthdate date 15 no
userStatus varchar 20 yes
Admin Table
Table Name Field Name Data Type Size Null Key Value
Admin Admin_id varchar 15 no Primary Key
Password varchar 40 no
Fname varchar 30 no
Lname varchar 30 no
Role varchar 20 yes

Table Name Field Name Data Type Size Null Key Value
Officer Officer_id varchar 15 no Primary Key
Fname varchar 30 no
Officer Lname varchar 30 no
Location varchar 40 no
ContactNumber varchar 15 no
created_at date 15 no
Violation
Table Name Field Name Data Type Size Null Key Value
Violation Violation_id Varchar 20 no Primary Key
Username varchar 15 no Foreign Key
violationCode varchar 25 no
violationName varchar 25 no
Offense varchar 25 no
violationDesc varchar 50 no
Created_at date 15 no
vehicle_type varchar 35 no

Qr_img blob 0 no
Table Name Field Name Data Size Null Key Value
Type
Payment Payment_id varchar 15 no Primary Key
Username varchar 15 no Foreign Key
Amount decimal 10,2 no
balance decimal 15,2 no
created_at date 15 no
payment_status varchar 10 yes

Payment
Table Name Field Name Data Type Size Null Key Value
Grave_Violation graveID varchar 15 no Primary Key
Violation_id varchar 20 no Foreign Key
demerit int 5 no
fine decimal 15,2 no
penalty varchar 20 no

Grave Violation
Less Grave Violation
Table Name Field Name Data Type Size Null Key Value
Grave_Violation lessGrave_ID varchar 15 no Primary Key
Violation_id varchar 20 no Foreign Key
demerit int 5 no
fine decimal 15,2 no
penalty varchar 20 no
Light Violation
Table Name Field Name Data Type Size Null Key Value
Grave_Violation lightID varchar 15 no Primary Key
Violation_id varchar 20 no Foreign Key
demerit int 5 no
fine decimal 15,2 no
penalty varchar 20 no

Table Name Field Name Data Type Size Null Key Value
E_Wallet eWallet_id varchar 15 no Primary Key

E-Wallet Payment varchar


ewalletName varchar
15
20
no
no
Foreign Key

owner varchar 35 no
Address varchar 40 no
Contact Num varchar 15 no
Table Name Field Name Data Type Size Null Key Value
Online_Bank onlineBank_id varchar 15 no Primary Key

Online Payment
bankName
varchar
varchar
15
25
no
no
Foreign Key

Bank owner
debitcard_Num
varchar
int
35
10
no
no
Address varchar 40 no
securityCode varchar 5 no
Email varchar 25 no

Table Name Field Name Data Type Size Null Key Value
Paypal Paypal_id varchar 15 no Primary Key
Payment varchar 15 no Foreign Key Paypal
eWallet_id varchar 15 no Foreign Key
Total_bal decimal 15,2 no
reference num int 10 no
Gcash
Table Name Field Name Data Type Size Null Key Value
Gcash Gcash_id varchar 15 no Primary Key
Payment varchar 15 no Foreign Key
eWallet_id varchar 15 no Foreign Key
Total_bal decimal 15,2 no
reference num int 10 no

Table Name Field Name Data Type Size Null Key Value
PayMaya PayMaya_id varchar 15 no Primary Key
Payment varchar 15 no Foreign Key
eWallet_id varchar 15 no Foreign Key PayMaya
Total_bal decimal 15,2 no
reference num int 10 no
Table Name Field Name Data Type Size Null Key Value
Other_Wallet otherWallet_id varchar 15 no Primary Key
Payment varchar 15 no Foreign Key
eWallet_id varchar 15 no Foreign Key
Total_bal decimal 15,2 no
reference num int 10 no

Other Wallet

Table Name Field Name Data Type Size Null Key Value
BDO BDO_id varchar 15 no Primary Key
Payment
onlineBank_id
varchar
varchar
15
15
no
no
Foreign Key
Foreign Key
BDO
Total_Bal decimal 15,2 no
Account_Num int 10 no
Table Name Field Name Data Type Size Null Key Value
Psbank Psbank_id varchar 15 no Primary Key
Payment varchar 15 no Foreign Key
onlineBank_id varchar 15 no Foreign Key
Total_Bal decimal 15,2 no
Account_Num int 10 no

Psbank
BPI
Table Name Field Name Data Type Size Null Key Value
BPI BPI_id varchar 15 no Primary Key
Payment varchar 15 no Foreign Key
onlineBank_id varchar 15 no Foreign Key
Total_Bal decimal 15,2 no
Account_Num int 10 no
Other Bank
Table Name Field Name Data Type Size Null Key Value
Other_Bank otherBank_id varchar 15 no Primary Key
Payment varchar 15 no Foreign Key
onlineBank_id varchar 15 no Foreign Key
Total_Bal decimal 15,2 no
Account_Num int 10 no
Emmanuel Q. Tuibuen (Leader)
John Henry Hermoso
Naisam Q. Valiyavalappil

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy