2018_08_01_091757_create_rest_rooms_table.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateRestRoomsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('rest_rooms', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->integer('number')->comment('编号');
  17. $table->string('name')->comment('名称');
  18. $table->string('address')->comment('位置');
  19. $table->string('poi_name')->comment('POI名称');
  20. $table->string('poi_icon')->comment('POI图标');
  21. $table->string('poi_link_url')->comment('POI跳转链接');
  22. $table->string('poi_x_coord')->comment('POIY坐标');
  23. $table->string('poi_y_coord')->comment('POIX坐标');
  24. $table->json('serve_people_facility')->comment('服务设施');
  25. $table->integer('open_status')->comment('开放状态');
  26. $table->integer('create_id')->comment('创建者ID');
  27. $table->integer('update_id')->comment('更新者ID');
  28. $table->timestamps();
  29. });
  30. }
  31. /**
  32. * Reverse the migrations.
  33. *
  34. * @return void
  35. */
  36. public function down()
  37. {
  38. Schema::dropIfExists('rest_rooms');
  39. }
  40. }