id(); $table->string('name')->comment('姓名'); $table->string('use_name')->nullable()->comment('曾用名'); $table->string('idcard', 50)->unique()->nullable()->comment('身份证号码'); $table->unsignedBigInteger('gender')->nullable()->comment('性别:0未知,1男,2女'); $table->dateTime('birthday')->nullable()->comment('生日'); $table->unsignedBigInteger('origin_province_id')->default(0)->comment('籍贯-省'); $table->unsignedBigInteger('origin_city_id')->default(0)->comment('籍贯-市'); $table->unsignedBigInteger('origin_area_id')->default(0)->comment('籍贯-区'); $table->string('card_city_code')->nullable()->comment('户籍地区代码'); $table->unsignedBigInteger('card_province_id')->default(0)->comment('户籍-省'); $table->unsignedBigInteger('card_city_id')->default(0)->comment('户籍-市'); $table->unsignedBigInteger('card_area_id')->default(0)->comment('户籍-区'); $table->string('card_address')->nullable()->comment('户籍-街道详细地址'); $table->string('card_complete_address')->nullable()->comment('户籍-完整地址'); $table->unsignedBigInteger('housing_estate')->default(0)->comment('小区'); $table->unsignedBigInteger('building')->default(0)->comment('楼栋'); $table->string('house_number')->nullable()->comment('门牌号'); $table->string('house_complete_address')->nullable()->comment('小区完整地址'); $table->string('real_address')->nullable()->comment('实际居住地址'); $table->unsignedBigInteger('nation')->nullable()->comment('民族'); $table->unsignedBigInteger('political_face')->nullable()->comment('政治面貌'); $table->unsignedBigInteger('educational_level')->nullable()->comment('文化程度'); $table->unsignedBigInteger('marry_state')->nullable()->comment('婚姻状况'); $table->string('job')->nullable()->comment('职业'); $table->string('health')->nullable()->comment('身体状况'); $table->string('phone')->nullable()->comment('联系方式'); $table->string('remark')->nullable()->comment('备注'); $table->string('type')->nullable()->comment('类型'); $table->unsignedTinyInteger('has_benefit')->default(0)->comment('是否享受福利'); $table->unsignedBigInteger('organized_body')->nullable()->comment('社别'); $table->string('t_ids')->nullable()->comment('标签'); $table->string('domicile_code')->nullable()->comment('户籍编号'); $table->unsignedTinyInteger('is_master')->default(0)->comment('是否户主'); $table->string('master_connect')->default('')->comment('户主关系'); $table->unsignedTinyInteger('is_voter')->default(0)->comment('是否参加选民投票'); $table->string('wx_openid')->nullable()->comment('微信openId'); $table->string('baidu_face_id')->nullable()->comment('百度人脸ID'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('persons'); } };