2019_07_29_162054_create_innovator_table.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateInnovatorTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('innovator', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->smallInteger('type_id')->length(5);
  17. $table->string('type_name')->length(255);
  18. $table->smallInteger('parentid')->length(5);
  19. $table->string('name')->length(50);
  20. $table->string('photo_img')->length(255);
  21. $table->string('company_name')->length(255);
  22. $table->string('duty_name')->length(50);
  23. $table->integer('trade_id')->length(60);
  24. $table->string('trade_cn')->length(100);
  25. $table->string('points')->length(30);
  26. $table->mediumText('content');
  27. $table->smallInteger('display_order')->length(5);
  28. $table->string('mobile')->length(20);
  29. $table->tinyInteger('mobile_display')->length(1);
  30. $table->string('email')->length(60);
  31. $table->tinyInteger('email_display')->length(1);
  32. $table->integer('addtime')->length(10);
  33. $table->string('is_url')->length(200);
  34. $table->tinyInteger('is_display')->length(1);
  35. $table->string('keywords')->length(100);
  36. $table->string('description')->length(200);
  37. $table->timestamps();
  38. });
  39. }
  40. /**
  41. * Reverse the migrations.
  42. *
  43. * @return void
  44. */
  45. public function down()
  46. {
  47. Schema::dropIfExists('innovator');
  48. }
  49. }