table('api_phone_detail')->setCollation('utf8mb4_general_ci')->setComment('手机号码归属地运营商等信息'); $table ->addColumn(Column::unsignedInteger('user_id')->setComment('关联用户ID')) ->addColumn(Column::char('cellphone',11)->setComment('手机号码')) ->addColumn(Column::string('isp',50)->setComment('运营商')) ->addColumn(Column::unsignedInteger('district_id')->setComment('归属地ID')) ->addColumn(Column::tinyInteger('phone_age')->setComment('在网时间,0=未查询')->setDefault(0)) ->addColumn(Column::unsignedInteger('api_record_id')->setComment('API请求ID')->setDefault(0)) ->addColumn(Column::unsignedInteger("create_time")->setComment('创建时间')) ->addColumn(Column::unsignedInteger("update_time")->setComment('更新时间')) ->addIndex(['user_id']) ->addIndex(['cellphone']) ->addIndex(['isp']) ->addIndex(['district_id']) ->addIndex(['phone_age']) ->create(); } }