Digital Traffic

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 16

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
1 Normalized Table
st
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
userStatus Admin
Admin_id(PK)
Password
Fname
Lname
Role

2 Normalized Table
nd
3 Normalized Table
rd
User

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

Violation Payment
Violation_id 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)
violationDesc violationDesc violationDesc
violationName violationName violationName
violationCode violationCode violationCode
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
Total_bal Address
ContactNum Total_bal
referenceNum Account_Num
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)
owner owner owner owner
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)
owner owner owner owner
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 Violation/
Process the Receipt
Violation/Vie Admin
wing/Paymen
t
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

User Table
Laname varchar 30 no
Email varchar 25 no
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 25 no
ContactNum varchar 15 no
ber
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 80 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 Payment_id


Username
varchar
varchar
15
15
no
no
Primary Key
Foreign Key
Amount decimal 10,2 no
Total_balance decimal 15,2 no
created_at date 15 no
payment_status varchar 10 yes

You might also like