1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateClientsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('clients', function (Blueprint $table) {
- $table->id();
- $table->string('lastname');
- $table->string('firstname');
- $table->string('middlename');
- $table->string('passport_data', 10);
- $table->date('birth_date');
- $table->enum('gender', ['male', 'female']);
- $table->string('email');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('clients');
- }
- }
|