2016_05_11_163810_create_authentications_table.php 997 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateAuthenticationsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('authentications', function (Blueprint $table) {
  15. $table->integer('user_id')->unsigned()->primary(); //用户UID
  16. $table->string('real_name',64);
  17. $table->string('id_card',32);
  18. $table->string('id_card_image',128);
  19. $table->string('skill',128);
  20. $table->string('skill_image',128);
  21. $table->string('failed_reason',256)->nullable();
  22. $table->tinyInteger('status')->default(0);
  23. $table->timestamps();
  24. });
  25. }
  26. /**
  27. * Reverse the migrations.
  28. *
  29. * @return void
  30. */
  31. public function down()
  32. {
  33. Schema::drop('authentications');
  34. }
  35. }