2018_06_27_093110_create_album_review_table.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateAlbumReviewTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('album_review', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->tinyInteger('verifier_review')->comment('客服服务: 0:好评;1:中评;2:差评');
  17. $table->tinyInteger('producer_review')->comment('产品质量: 0:好评;1:中评;2:差评');
  18. $table->tinyInteger('packer_review')->comment('包装服务: 0:好评;1:中评;2:差评');
  19. $table->string('description',255)->comment('评论');
  20. $table->string('picture',255)->nullable()->comment('图片');
  21. $table->string('order_id',255)->comment('订单号');
  22. $table->integer('store_id')->comment('站点');
  23. $table->softDeletes();
  24. $table->timestamps();
  25. });
  26. }
  27. /**
  28. * Reverse the migrations.
  29. *
  30. * @return void
  31. */
  32. public function down()
  33. {
  34. Schema::dropIfExists('album_review');
  35. }
  36. }