12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateRestRoomsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('rest_rooms', function (Blueprint $table) {
- $table->increments('id');
- $table->integer('number')->comment('编号');
- $table->string('name')->comment('名称');
- $table->string('address')->comment('位置');
- $table->string('poi_name')->comment('POI名称');
- $table->string('poi_icon')->comment('POI图标');
- $table->string('poi_link_url')->comment('POI跳转链接');
- $table->string('poi_x_coord')->comment('POIY坐标');
- $table->string('poi_y_coord')->comment('POIX坐标');
- $table->json('serve_people_facility')->comment('服务设施');
- $table->integer('open_status')->comment('开放状态');
- $table->integer('create_id')->comment('创建者ID');
- $table->integer('update_id')->comment('更新者ID');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('rest_rooms');
- }
- }
|