table('user_qq')->setCollation('utf8mb4_general_ci')->setComment('买家微信'); $table ->addColumn(Column::unsignedInteger('user_id')->setComment('关联用户ID')) ->addColumn(Column::string('detail')->setComment('QQ号码')) ->addColumn(Column::integer('app_qq_id')->setComment('关联平台微信ID')) ->addColumn(Column::tinyInteger('status')->setDefault(0)->setComment('认证状态0=认证中1=通过-1=未通过')) ->addColumn(Column::string('remark')->setNullable()->setComment('未通过的理由')) ->addColumn(Column::unsignedInteger('admin_id')->setNullable()) ->addColumn(Column::unsignedInteger("admin_time")->setComment('审核时间')->setDefault(0)) ->addColumn(Column::unsignedInteger("create_time")->setComment('创建时间')) ->addColumn(Column::unsignedInteger("update_time")->setComment('更新时间')) ->addIndex(['user_id']) ->addIndex(['detail']) ->addIndex(['app_qq_id']) ->create(); } }