diff --git a/Group 1.docx b/Group 1.docx deleted file mode 100644 index 6c5af55..0000000 Binary files a/Group 1.docx and /dev/null differ diff --git a/Group 11.docx b/Group 11.docx deleted file mode 100644 index 201f53e..0000000 Binary files a/Group 11.docx and /dev/null differ diff --git a/Group 12.docx b/Group 12.docx deleted file mode 100644 index e55264a..0000000 Binary files a/Group 12.docx and /dev/null differ diff --git a/Group 2.docx b/Group 2.docx deleted file mode 100644 index 90d675a..0000000 Binary files a/Group 2.docx and /dev/null differ diff --git a/Group 3.docx b/Group 3.docx deleted file mode 100644 index 579b0fb..0000000 Binary files a/Group 3.docx and /dev/null differ diff --git a/Group 4.docx b/Group 4.docx deleted file mode 100644 index f4b9c07..0000000 Binary files a/Group 4.docx and /dev/null differ diff --git a/Group 5.docx b/Group 5.docx deleted file mode 100644 index fd14d4d..0000000 Binary files a/Group 5.docx and /dev/null differ diff --git a/Group 6.docx b/Group 6.docx deleted file mode 100644 index c7f851b..0000000 Binary files a/Group 6.docx and /dev/null differ diff --git a/Group 8.docx b/Group 8.docx deleted file mode 100644 index 43cf113..0000000 Binary files a/Group 8.docx and /dev/null differ diff --git a/Group 9.pdf b/Group 9.pdf deleted file mode 100644 index 56457ec..0000000 Binary files a/Group 9.pdf and /dev/null differ diff --git a/Group_10-Project-Part_2.pdf b/Group_10-Project-Part_2.pdf new file mode 100644 index 0000000..bf9e977 Binary files /dev/null and b/Group_10-Project-Part_2.pdf differ diff --git a/Migrations/.DS_Store b/Migrations/.DS_Store new file mode 100644 index 0000000..85fa2a0 Binary files /dev/null and b/Migrations/.DS_Store differ diff --git a/Migrations/2014_10_12_000000_create_users_table.php b/Migrations/2014_10_12_000000_create_users_table.php new file mode 100644 index 0000000..f99a392 --- /dev/null +++ b/Migrations/2014_10_12_000000_create_users_table.php @@ -0,0 +1,45 @@ +increments('id'); + $table->string('name'); + $table->string('email')->unique(); + $table->string('password', 60); + $table->longText('address'); + $table->string('city'); + $table->string('state'); + $table->string('country'); + $table->date('date_of_birth'); + $table->string('gender'); + $table->integer('phoneno'); + $table->integer('zipcode'); + $table->string('image'); + $table->longText('quote'); + $table->string('status'); + $table->rememberToken(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('users'); + } +} \ No newline at end of file diff --git a/Migrations/2016_02_28_161656_create_purchases_table.php b/Migrations/2016_02_28_161656_create_purchases_table.php new file mode 100644 index 0000000..7065527 --- /dev/null +++ b/Migrations/2016_02_28_161656_create_purchases_table.php @@ -0,0 +1,37 @@ +increments('id'); + $table->integer('cvv'); + $table->integer('creditcardnumber'); + $table->integer('cardname'); + $table->integer('price'); + $table->date('expirydate'); + $table->date('date'); + $table->longText('address'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('purchases'); + } +} \ No newline at end of file diff --git a/Migrations/2016_02_28_161714_create_reports_table.php b/Migrations/2016_02_28_161714_create_reports_table.php new file mode 100644 index 0000000..4051b79 --- /dev/null +++ b/Migrations/2016_02_28_161714_create_reports_table.php @@ -0,0 +1,33 @@ +increments('id'); + $table->longText('description'); + $table->longText('reason'); + $table->string('status'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('reports'); + } +} diff --git a/Migrations/2016_02_28_161725_create_events_table.php b/Migrations/2016_02_28_161725_create_events_table.php new file mode 100644 index 0000000..83b9662 --- /dev/null +++ b/Migrations/2016_02_28_161725_create_events_table.php @@ -0,0 +1,42 @@ +increments('id'); + $table->string('name'); + $table->longText('desc'); + $table->longText('address'); + $table->string('city'); + $table->string('state'); + $table->string('country'); + $table->date('timings'); + $table->integer('ticket'); + $table->integer('ratings'); + $table->boolean('recommended'); + $table->boolean('reviewed'); + $table->boolean('addedByUser'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('events'); + } +} \ No newline at end of file diff --git a/Migrations/2016_02_28_161746_create_searches_table.php b/Migrations/2016_02_28_161746_create_searches_table.php new file mode 100644 index 0000000..9aaf6c8 --- /dev/null +++ b/Migrations/2016_02_28_161746_create_searches_table.php @@ -0,0 +1,34 @@ +increments('id'); + $table->string('event'); + $table->string('city'); + $table->string('state'); + $table->string('country'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('searches'); + } +} diff --git a/Models/.DS_Store b/Models/.DS_Store new file mode 100644 index 0000000..3b71342 Binary files /dev/null and b/Models/.DS_Store differ diff --git a/Models/Event.php b/Models/Event.php new file mode 100644 index 0000000..d78396b --- /dev/null +++ b/Models/Event.php @@ -0,0 +1,25 @@ +hasOne('Event'); + } + + +} diff --git a/Models/Report.php b/Models/Report.php new file mode 100644 index 0000000..54cfe74 --- /dev/null +++ b/Models/Report.php @@ -0,0 +1,15 @@ +hasOne('Event'); + } + +} diff --git a/Models/Search.php b/Models/Search.php new file mode 100644 index 0000000..9fe38df --- /dev/null +++ b/Models/Search.php @@ -0,0 +1,14 @@ +hasOne('Event'); + } + +} diff --git a/Models/User.php b/Models/User.php new file mode 100644 index 0000000..72ac71a --- /dev/null +++ b/Models/User.php @@ -0,0 +1,40 @@ +hasMany('Report'); + } + + public function searches() { + return $this->hasMany('Search'); + } + + public function purchase() { + return $this->hasMany('Purchase'); + } + + +} diff --git a/Web Application Requirements.docx b/Web Application Requirements.docx index 24ef3b6..cd54151 100644 Binary files a/Web Application Requirements.docx and b/Web Application Requirements.docx differ