| 1234567891011121314151617181920212223242526272829303132333435363738 | <?phpuse Illuminate\Support\Facades\Schema;use Illuminate\Database\Schema\Blueprint;use Illuminate\Database\Migrations\Migration;class CreatePromotionsTable extends Migration{    /**     * Run the migrations.     *     * @return void     */    public function up()    {        Schema::create('promotions', function (Blueprint $table) {            $table->increments('id');            $table->integer('companyid')->comment('企业ID');            $table->string('ptype')->comment('推广类型(置顶,紧急)');            $table->integer('jobid')->comment('职位ID');            $table->integer('days')->comment('推广天数');            $table->integer('starttime')->comment('开始时间');            $table->integer('endtime')->comment('结束时间');            $table->timestamps();            $table->softDeletes();        });    }    /**     * Reverse the migrations.     *     * @return void     */    public function down()    {        Schema::dropIfExists('promotions');    }}
 |