comment('banner'); $table->increments('id'); $table->integer('admin_id')->nullable(); $table->integer('department_id')->nullable(); $table->string('name')->nullable()->comment('名字'); $table->integer('image_id')->nullable()->comment('图片id'); $table->tinyInteger('jump_type')->nullable()->comment('跳转类型1小程序2H5'); $table->string('jump_url')->nullable()->comment('跳转地址'); $table->integer('sort')->nullable()->default(1)->comment('排序'); $table->tinyInteger('position')->nullable()->comment('显示位置1首页'); $table->dateTime('created_at')->nullable(); $table->dateTime('updated_at')->nullable(); $table->dateTime('deleted_at')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('banners'); } };