2018_04_22_103056_create_employee_references_table.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class CreateEmployeeReferencesTable extends Migration
  5. {
  6. /**
  7. * Run the migrations.
  8. *
  9. * @return void
  10. */
  11. public function up()
  12. {
  13. Schema::create('employee_references', function (Blueprint $table) {
  14. $table->increments('id');
  15. $table->tinyInteger('employee_id');
  16. $table->string('person_name',255);
  17. $table->string('relation',255);
  18. $table->string('phone1',25);
  19. $table->string('phone2',25)->nullable();
  20. $table->string('email',255)->nullable();
  21. $table->text('address',255);
  22. $table->tinyInteger('added_by')->nullable();
  23. $table->tinyInteger('updated_by')->nullable();
  24. $table->tinyInteger('status')->nullable();
  25. $table->tinyInteger('approved_by')->nullable();
  26. $table->softDeletes();
  27. $table->timestamps();
  28. });
  29. }
  30. /**
  31. * Reverse the migrations.
  32. *
  33. * @return void
  34. */
  35. public function down()
  36. {
  37. Schema::drop('employee_references');
  38. }
  39. }