increments('id'); $table->integer('admin_id')->nullable(); $table->integer('department_id')->nullable(); $table->integer('user_id')->nullable()->comment('用户id'); $table->string('date')->nullable()->comment('预约日期'); $table->dateTime('start_time')->nullable()->comment('开始时间'); $table->dateTime('end_time')->nullable()->comment('结束时间'); $table->text('content')->nullable()->comment('预约事项'); $table->string('site')->nullable()->comment('预约地点'); $table->string('plate')->nullable()->comment('车牌'); $table->integer('accompany_total')->nullable()->comment('陪同人数'); $table->tinyInteger('status')->nullable()->default(0)->comment('状态'); $table->tinyInteger('send_status')->nullable()->default(0)->comment('第三方预约结果0未预约1预约中2成功3失败'); $table->string('reason')->nullable()->comment('原因'); $table->text('qrcode')->nullable()->comment('二维码'); $table->string('meet_id')->nullable()->comment('会议室预约id'); $table->string('name')->nullable()->comment('名字'); $table->string('mobile')->nullable()->comment('手机号'); $table->string('idcard')->nullable()->comment('身份证号码'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('appointment'); } };