From 3cf30752921f40513c8c2e52dec6122f1f003b6f Mon Sep 17 00:00:00 2001 From: Lukas Halbritter Date: Fri, 7 Sep 2018 12:20:43 +0200 Subject: [PATCH] Added bookings migration and model. --- app/Booking.php | 10 +++++ ...018_09_07_101031_create_bookings_table.php | 44 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 app/Booking.php create mode 100644 database/migrations/2018_09_07_101031_create_bookings_table.php diff --git a/app/Booking.php b/app/Booking.php new file mode 100644 index 0000000..663e86c --- /dev/null +++ b/app/Booking.php @@ -0,0 +1,10 @@ +increments('id'); + + // The reference which describes the booking + $table->string('reference'); + + // The date of the booking + $table->date('date'); + + // The name of the person or company which the booking belongs to + $table->string('person_or_company'); + + // An additional note to the booking + $table->string('note'); + + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('bookings'); + } +}