In: Computer Science
Database Question
Create two entities for Online Journalists business.
Each entity must have 5 attributes and explain the type of each attribute.
Database entities :
The two entities of online Journalists business
are
1.Journalist
2.NewsItem
The "Journalist" contains the following attributes as follows
Attribute1:
journalistID :integer
Explanation: The journalistID is the unique key of integer type to
identity the journalist in the entity table, Journalist.
Attribute2:
name: string
Explanation: The name of a journalist of string type in the entity
table, Journalist.
Attribute3:
age : integer
Explanation: The age of journalist of integer type to identity the
journalist in the entity table, Journalist.
Attribute4:
country : string
Explanation: The country of the journalist in the entity table,
Journalist.
Attribute5:
salary : double
Explanation: The salary of journalist in the entity table,
Journalist.
The 5 attributes of "NewsItem" entity are as
follows
Attribute1:
mediaType : string
Explanation: The mediaType is the name of the type of media like
text,image,audio or video type of news type.
Attribute2:
date : Date
Explanation: The date of the news item posted
Attribute3:
size : integer
Explanation: The size is the length or size of the news item in
bytes or mega bytes or giga bytes.
Attribute4:
viewscount: integer
Explanation: The viewscount is the number of views the news item on
published.
Attribute5:
likes : integer
Explanation: The likes is the number of likes the news item got on
published.
Entity-diagram: