2018_05_11_093446_create_album_manufacturer.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateAlbumManufacturer extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('album_manufacturer', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->unsignedInteger('store_id')->comment('商户ID');
  17. $table->string('name',100)->default()->comment('名称');
  18. $table->string('illustrated_name',100)->default()->comment('电子画报名称');
  19. $table->string('avatar',255)->comment('头像链接');
  20. $table->string('phone',20)->default('')->comment('电话');
  21. $table->string('address',20)->default('')->comment('地址');
  22. $table->string('lng',20)->default('')->comment('经度');
  23. $table->string('lat',20)->default('')->comment('纬度');
  24. $table->longText('background_pic')->default('')->comment('背景图片');
  25. $table->longText('advertising_pic')->default('')->comment('广告图片');
  26. $table->timestamps();
  27. });
  28. }
  29. /**
  30. * Reverse the migrations.
  31. *
  32. * @return void
  33. */
  34. public function down()
  35. {
  36. Schema::dropIfExists('album_manufacturer');
  37. }
  38. }