integer('id', true); $table->integer('uniacid')->nullable(); $table->integer('goods_id')->nullable()->comment('商品id'); $table->string('picture_name')->nullable()->comment('画册名称'); $table->string('picture_peo')->nullable()->comment('浏览人数'); $table->string('color')->nullable()->comment('背景颜色'); $table->tinyInteger('is_background')->nullable()->comment('1背景颜色,2背景图'); $table->string('background_thumb')->nullable()->comment('背景图片'); $table->string('audio_url')->nullable()->comment('音频链接'); $table->string('code')->nullable()->comment('客服二维码'); $table->string('phone')->nullable()->comment('客服电话'); $table->string('title')->nullable()->comment('分享标题'); $table->string('describe')->nullable()->comment('描述'); $table->string('share_picture')->nullable()->comment('分享图片'); $table->integer('created_at')->nullable(); $table->integer('updated_at')->nullable(); $table->tinyInteger('is_open')->nullable(); }); \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_picture_album` comment '智能画册--画册表'"); } } /** * Reverse the migrations. * * @return void */ public function down() { // } }