diff --git a/app/Person.php b/app/Person.php new file mode 100644 index 0000000..ebc7dea --- /dev/null +++ b/app/Person.php @@ -0,0 +1,10 @@ +increments('id'); + + // Name + $table->enum('title', array('Herr', 'Frau', 'Firma')); + $table->string('name_or_company'); + $table->string('surname')->nullable(); + + // Date of birth + $table->date('date_of_birth')->nullable(); + + // Adress + $table->string('city')->nullable(); + $table->string('street')->nullable(); + $table->string('postal_code')->nullable(); + + // Further contact information + $table->string('email')->nullable(); + $table->string('mobile')->nullable(); + $table->string('phone')->nullable(); + + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('people'); + } +}