engine = 'InnoDB'; $table->id(); $table->integer('activity_id')->comment('活动ID'); $table->string('title', 150)->comment('活动名称'); $table->string('sub_title', 150)->comment('副标题'); $table->integer('start_time')->comment('开始时间'); $table->integer('end_time')->comment('结束时间'); $table->string('detail_image')->comment('活动详情图片'); $table->tinyInteger('part_in_time')->comment('参与时间'); $table->string('member_id')->comment('会员ID'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('activity_user'); } };