nathan perkins. project description a database for my online social network website – djbeat.net ...
TRANSCRIPT
COS346 CAPSTONE PRESENTATION
DJBEAT.NET SQL DATABASE
Nathan Perkins
Project Description
A database for my online Social Network website – DJBeat.net
Site is used by music producers, disk jockeys and digital artists
Site allows users to upload their own music, videos and pictures and create a user profile for other users to view
Outcomes
5 tables created
Account Photo Videos Music Profile
photosphoto_id: int
account_id: intphoto_name: varchar(30)photo_size: varchar(10)date: datetimedescription: varchar(100)
videosvideo_id: int
account_id: intvideo_name: varchar(20)video_size: varchar(20)date: datetimedescription: varchar(50)
profprof_id: intaccount_id: int
about_me: varchar(300)hobbies: varchar(300)birthdate: datetime
accountaccount_id: int
first_name: varchar(20)last_name: varchar(20)artist_name: varchar(20)occupation: varchar(20)record_label: varchar(20)email: varchar(30)
musicmusic_id: int
account_id: intsong_name: varchar(20)file_size: varchar(20)date: datetimegenre: varchar(20)track_number: varchar(2)
Outcomes
Created a Join to display each users uploaded multimedia
This join could be used either by site admin to determine disk usage or by user to view a summary of all files
Outcomes
Created a Join to display every active user and a summary of user info
This join could be used either by site admin to determine bandwidth required, or by user to see who else is a site member
Lessons Learned
It is messy to use user as the name of a table.
Forward engineering a database with a user table is catastrophic
Always copy and paste SQL code into notepad as a backup