From 7cdea664e1f4f7e37920d289b94d10958e5b65b8 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Wed, 13 Feb 2019 16:36:47 -0500 Subject: [PATCH] Car registration work --- app/Models/Types.php | 18 +++++++++++ app/Models/Vehicles.php | 23 +++++++++++++ app/Models/vehicles.php | 10 ------ ...019_02_13_160819_create_vehicles_table.php | 3 +- .../2019_02_13_162647_create_types_table.php | 32 +++++++++++++++++++ 5 files changed, 75 insertions(+), 11 deletions(-) create mode 100644 app/Models/Types.php create mode 100644 app/Models/Vehicles.php delete mode 100644 app/Models/vehicles.php create mode 100644 database/migrations/2019_02_13_162647_create_types_table.php diff --git a/app/Models/Types.php b/app/Models/Types.php new file mode 100644 index 0000000..11ce658 --- /dev/null +++ b/app/Models/Types.php @@ -0,0 +1,18 @@ +increments('id'); - $table->string('year'); + $table->year('year'); $table->string('make'); $table->string('model'); $table->string('type'); $table->boolean('doNotJudge'); + $table->integer('owner'); $table->timestamps(); }); } diff --git a/database/migrations/2019_02_13_162647_create_types_table.php b/database/migrations/2019_02_13_162647_create_types_table.php new file mode 100644 index 0000000..f6aa166 --- /dev/null +++ b/database/migrations/2019_02_13_162647_create_types_table.php @@ -0,0 +1,32 @@ +increments('id'); + $table->string('type_name'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('types'); + } +}