1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateBusinessesTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('businesses', 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->time('star_time')->comment('开始时间');
- $table->time('end_time')->comment('结束时间');
- $table->float('price')->comment('人均价位');
- $table->text('shop_intro',280)->comment('商家简介');
- $table->text('shop_info',280)->comment('商家描述');
- $table->json('food_type')->comment('商家风格');
- $table->json('serve_facility')->comment('服务设施');
- $table->integer('hot_status')->comment('加入热点');
- $table->integer('hot_id')->comment('热点ID')->nullable();
- $table->integer('self_support')->comment('是否自营');
- $table->integer('business_status')->comment('营业状态');
- $table->json('pics')->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('businesses');
- }
- }
|