| 12345678910111213141516171819202122232425262728293031323334353637 | <?phpuse Illuminate\Support\Facades\Schema;use Illuminate\Database\Schema\Blueprint;use Illuminate\Database\Migrations\Migration;class CreateCompanyImgTable extends Migration{    /**     * Run the migrations.     *     * @return void     */    public function up()    {        Schema::create('companyImg', function (Blueprint $table) {            $table->increments('id');            $table->integer('company_id')->comment('企业ID');            $table->string('title')->comment('图片说明');            $table->string('img')->comment('图片');            $table->tinyInteger('audit')->comment('审核状态:0未审核;1审核通过;2审核中;3审核未通过');            $table->tinyInteger('subsite_id')->default(0)->comment('分站ID:0总站');            $table->timestamps();            $table->softDeletes();        });    }    /**     * Reverse the migrations.     *     * @return void     */    public function down()    {        Schema::dropIfExists('companyImg');    }}
 |