Professional Documents
Culture Documents
Data Modeling
Data Modeling
Data Modeling
DEFINITIONS:
1. Entity: An entity is a person, place, thing, or event for which data is collected and
maintained. The entities in our system are:
a. Stocks: This entity represents the stocks that are being sold or purchased.
Some of the attributes of this entity are:
i. Name: Name of the stock company.
ii. Stock Price: The price at which the stock is sold or
Stocks
purchased.
iii. Change Amount: The amount of change in the price of the
stock as compared to its price on the previous business day.
iv. Percentage Change: The percentage change in the price of
the stock as compared to its price on the previous business
day.
b. Invoices: This entity represents each transaction made by the registered
users for the sale or purchase of a particular stock. Some of the attributes
of this entity are:
i. Order Number: It helps to keep track of the various transactions
made during the day. It is a unique number provided by the
database for each transaction made.
ii. Stock Name: It specifies the name of the stock company of
which the transaction was made.
Invoices
iii. Seller ID Number: It specifies the ID number of the user on
whose behalf the stocks were sold.
iv. Buyer ID Number: It specifies the ID number of the user who
purchased the stocks.
v. Quantity: It specifies the number of stocks that were sold or
purchased during the particular transaction.
vi. Price Sold At: It specifies the amount (in US $) at which the
particular transaction was carried out.
vii. Amount Due: This specifies the total amount (in US $) that was
generated from the transaction.
c. Member Users: This entity represents the registered member users who
indulge in trading of stocks. Some of the attributes of this entity are:
i. ID Number: It specifies a unique number for each member user.
ii. User Name: It specifies a unique user ID for each member user
that is used by the member users to log in to our system to view
Member their stock status and other stock analysis’s.
User
s iii. First Name: It specifies the first name of the member user.
iv. Last Name: It specifies the last name of the member user.
v. Stock Purchased: It specifies the stocks that have been purchased
by the member user.
vi. Stock Sold: It specifies the stocks that have been sold by the
member user.
vii. Profit: It specifies the total amount (in US $) of profit or loss
made by the member user thus far.
Member
has Users
places