
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `www_form_fields` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name_zh` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字段名称（中文）',
  `name_en` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字段名称（英文）',
  `field_type` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字段类型: text / textarea / email / phone / select',
  `is_required` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否必填',
  `placeholder_zh` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '占位文本（中文）',
  `placeholder_en` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '占位文本（英文）',
  `options_json` json DEFAULT NULL COMMENT '下拉选项 JSON: [{label_zh, label_en, value}]（仅 select 类型）',
  `sort_order` int NOT NULL DEFAULT '0' COMMENT '字段排序',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='表单字段配置';
/*!40101 SET character_set_client = @saved_cs_client */;

/*!40000 ALTER TABLE `www_form_fields` DISABLE KEYS */;
INSERT INTO `www_form_fields` (`id`, `name_zh`, `name_en`, `field_type`, `is_required`, `placeholder_zh`, `placeholder_en`, `options_json`, `sort_order`) VALUES (1,'姓名','Name','text',1,'请输入您的姓名','Your name',NULL,1),(2,'邮箱','Email','email',1,'请输入您的邮箱','Your email',NULL,2),(3,'电话','Phone','phone',0,'请输入您的电话','Your phone',NULL,3),(4,'咨询内容','Message','textarea',1,'请输入您的咨询内容','Your message',NULL,4);
/*!40000 ALTER TABLE `www_form_fields` ENABLE KEYS */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

