CREATE TABLE IF NOT EXISTS `fa_user_security` ( `user_id` int unsigned NOT NULL, `payment_password_hash` varchar(255) NOT NULL DEFAULT '', `failed_attempts` int unsigned NOT NULL DEFAULT 0, `locked_until` int unsigned NOT NULL DEFAULT 0, `payment_failed_attempts` int unsigned NOT NULL DEFAULT 0, `payment_locked_until` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='账号安全凭证'; CREATE TABLE IF NOT EXISTS `fa_user_enterprise_cert` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `user_id` int unsigned NOT NULL, `company_name` varchar(255) NOT NULL, `license_no` varchar(64) NOT NULL, `license_image` varchar(255) NOT NULL, `legal_person` varchar(100) NOT NULL DEFAULT '', `verify_status` enum('pending','pass','reject') NOT NULL DEFAULT 'pending', `audit_msg` varchar(500) NOT NULL DEFAULT '', `createtime` int unsigned NOT NULL DEFAULT 0, `updatetime` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `user_id` (`user_id`), KEY `verify_status` (`verify_status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户企业资质认证';