increments('id'); $table->integer('admin_id')->comment('不用填')->nullable(); $table->integer('department_id')->comment('不用填')->nullable(); $table->date('date')->comment('到访日期'); $table->integer('visit_time_id')->comment('时间段id')->nullable(); $table->integer('visit_area_id')->comment('区域id')->nullable(); $table->string('reason')->comment('事由')->nullable(); $table->string('remark')->comment('备注')->nullable(); $table->string('name')->comment('名字')->nullable(); $table->string('mobile')->comment('电话')->nullable(); $table->boolean('credent')->comment('证件类型1身份证2护照')->nullable(); $table->string('idcard')->comment('证件号码')->nullable(); $table->string('company_name')->comment('单位名称')->nullable(); $table->json('follw_people')->comment('随访人员')->nullable(); $table->json('cars')->comment('到访车辆')->nullable(); $table->date('start_date')->comment('开始时间')->nullable(); $table->date('end_date')->comment('结束时间')->nullable(); $table->integer('accpet_department_id')->comment('接待部门')->nullable(); $table->integer('accept_admin_id')->comment('接待人员')->nullable(); $table->string('plate')->comment('车牌号')->nullable(); $table->string('type')->default('1')->comment('类型1访客2施工3车辆')->nullable(); $table->boolean('long_time')->comment('是否长期0否1是')->nullable(); $table->boolean('audit_status')->comment('审核状态-1待学习0待审核1通过(待进厂)2驳回3已进厂4已离厂')->nullable()->default(0); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('visits'); } }