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'); + } +}