configdb.sql 177 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868
  1. -- ******************************************************************
  2. -- 配置表数据库备份文件
  3. -- 生成时间: 2025-07-02 19:25:08
  4. -- 警告: 此文件由系统自动生成,禁止修改!
  5. -- ******************************************************************
  6. -- ==========================================
  7. -- 表: kku_sys_configs
  8. -- 模型: App\Module\System\Models\SysConfig
  9. -- ==========================================
  10. DROP TABLE IF EXISTS `kku_sys_configs`;
  11. CREATE TABLE `kku_sys_configs` (
  12. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  13. `keyname` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'key',
  14. `is_client` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '是否给客户端',
  15. `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '标题',
  16. `type` tinyint(3) unsigned NOT NULL COMMENT '类型 详情见枚举',
  17. `value` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '值',
  18. `group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '分组',
  19. `group2` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '默认' COMMENT '分组2',
  20. `created_at` timestamp NULL DEFAULT NULL,
  21. `updated_at` timestamp NULL DEFAULT NULL,
  22. `deleted_at` timestamp NULL DEFAULT NULL COMMENT '删除时间',
  23. `desc` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '描述',
  24. `options` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '其他配置',
  25. PRIMARY KEY (`id`) USING BTREE,
  26. UNIQUE KEY `lan_sys_configs_keyname_IDX` (`keyname`) USING BTREE
  27. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='应用配置信息';
  28. -- 数据插入
  29. INSERT INTO `kku_sys_configs` (`id`, `keyname`, `is_client`, `title`, `type`, `value`, `group`, `group2`, `created_at`, `updated_at`, `deleted_at`, `desc`, `options`) VALUES
  30. (1, 'order_starttime', 1, '开始时间', 4, '09:00', '应用配置', '默认', '2024-03-16 12:43:03', '2025-03-28 02:03:15', NULL, NULL, NULL),
  31. (2, 'order_endtime', 1, '结束时间', 4, '21:00', '应用配置', '默认', '2024-03-16 12:43:03', '2024-09-20 08:59:53', NULL, NULL, NULL),
  32. (3, 'no-request-log', 0, '没有请求日志', 1, 0, '应用配置', '默认', '2024-03-16 12:43:03', '2024-05-22 17:14:09', NULL, NULL, NULL),
  33. (4, 'login_only_one', 0, '只允许一个客户端登录', 3, 1, '应用配置', '默认', '2024-03-16 12:43:03', '2024-12-07 00:12:19', NULL, NULL, NULL),
  34. (6, 'app_transfer_isopen', 0, '是否开启划转', 3, 1, '应用配置', '默认', '2024-03-16 12:43:03', '2024-12-07 11:04:30', NULL, NULL, NULL),
  35. (37, 'buy_me', 1, '是否允许购买自己的挂单', 3, 0, '订单配置', '默认', '2024-03-16 12:43:03', '2024-11-07 11:04:06', NULL, NULL, NULL),
  36. (43, 'contact_information', 1, '客服联系方式', 4, 'QQ 88888888', '应用配置', '默认', '2024-03-16 12:43:03', '2025-04-01 08:02:38', NULL, NULL, NULL),
  37. (46, 'contactemail_information', 1, '邮箱联系方式', 4, '11111111@163.com', '应用配置', '默认', '2024-03-16 12:43:03', '2025-04-01 08:04:54', NULL, NULL, NULL),
  38. (50, 'must_bind_totp', 0, '必须绑定二次验证', 3, 1, '二次验证', '默认', '2024-03-16 12:43:03', '2024-10-08 14:53:09', NULL, NULL, NULL),
  39. (100, 'driver_my', 0, '测试短信驱动', 11, '{\"driver\":\"mygateway\",\"is_open\":1,\"demo\":\"1\"}', '短信配置', '默认', '2024-08-10 12:43:03', '2025-04-01 08:47:23', NULL, '邮件配置,我的邮件', '{
  40. \"nochange\":[
  41. \"driver\"
  42. ]
  43. }'),
  44. (101, 'driver_smsbao', 0, '短信 - 短信宝驱动', 11, '{\"driver\":\"smsbao\",\"is_open\":0,\"user\":\"hb_xxzdns\",\"password\":\"c70df2f29f614f57b900ada67ce18cfe\",\"login_templete\":\"\\u3010\\u946b\\u827aURAUS\\u3011\\u60a8\\u7684\\u9a8c\\u8bc1\\u7801\\u662f{code}\\u3002\\u5982\\u975e\\u672c\\u4eba\\u64cd\\u4f5c\\uff0c\\u8bf7\\u5ffd\\u7565\\u672c\\u77ed\\u4fe1\",\"register_templete\":\"\\u3010\\u946b\\u827aURAUS\\u3011\\u60a8\\u7684\\u9a8c\\u8bc1\\u7801\\u662f{code}\\u3002\\u5982\\u975e\\u672c\\u4eba\\u64cd\\u4f5c\\uff0c\\u8bf7\\u5ffd\\u7565\\u672c\\u77ed\\u4fe1\",\"resetspassword_templete\":\"\\u3010\\u946b\\u827aURAUS\\u3011\\u60a8\\u7684\\u9a8c\\u8bc1\\u7801\\u662f{code}\\u3002\\u5982\\u975e\\u672c\\u4eba\\u64cd\\u4f5c\\uff0c\\u8bf7\\u5ffd\\u7565\\u672c\\u77ed\\u4fe1\"}', '短信配置', '默认', '2024-08-10 12:43:03', '2025-04-01 08:47:14', NULL, '邮件配置,我的邮件', '{
  45. \"nochange\":[
  46. \"driver\"
  47. ]
  48. }'),
  49. (102, 'driver_aliyun', 0, '短信 - 阿里云驱动', 11, '{\"driver\":\"aliyun\",\"is_open\":0,\"user\":\"123\",\"password\":\"456\"}', '短信配置', '默认', '2024-08-10 12:43:03', '2024-08-08 02:42:34', NULL, '邮件配置,我的邮件', '{
  50. \"nochange\":[
  51. \"driver\"
  52. ]
  53. }'),
  54. (113, 'auth_unbind2fa', 0, '验证 - 解绑2fa', 11, '{\"auth_password\":1,\"open_password2fa\":1,\"must_password2fa\":1}', '安全配置', '默认', '2024-08-10 12:43:03', '2024-08-20 10:17:31', NULL, '邮件配置,我的邮件', '{
  55. \"nochange\":[
  56. \"driver\"
  57. ]
  58. }'),
  59. (114, 'min_app_version', 1, '最新app版本', 4, '1.0.0', '应用配置', '默认', '2024-03-16 20:43:03', '2024-09-19 16:20:25', NULL, NULL, NULL),
  60. (115, 'min_appwgt_version', 1, '最新app-wgt版本', 4, '1.0.294', '应用配置', '默认', '2024-03-16 20:43:03', '2024-10-31 19:58:38', NULL, NULL, NULL),
  61. (125, 'order_c_nopay_clear_hours', 1, '订单-投诉-虚假的付款-自动处理(取消)-等待小时数', 1, 1000, '订单配置', '默认', '2024-03-16 12:43:03', '2024-10-09 17:43:23', NULL, '等待多少小时对虚假付款的投诉进行自动处理: 取消订单', NULL),
  62. (127, 'verify_debug_code', 1, '验证码-debug-超级验证码', 4, '你好呀', '验证码', '默认', '2024-03-16 12:43:03', '2024-05-22 17:14:09', NULL, '', NULL),
  63. (2010, 'URAUS_BNB', 1, 'Uraus - bnb', 5, 18.15, '区块链', '默认', '2024-03-16 12:43:03', '2024-10-09 17:43:23', NULL, '等待多少小时对虚假付款的投诉进行自动处理: 取消订单', NULL),
  64. (2011, 'BNB_URAUS', 1, 'bnb - Uraus', 5, 0.081, '区块链', '默认', '2024-03-16 12:43:03', '2024-10-09 17:43:23', NULL, '等待多少小时对虚假付款的投诉进行自动处理: 取消订单', NULL),
  65. (2012, 'USDT_URAUS', 1, 'Usdt - Uraus', 5, 5.69, '区块链', '默认', '2024-03-16 12:43:03', '2024-10-09 17:43:23', NULL, '等待多少小时对虚假付款的投诉进行自动处理: 取消订单', NULL),
  66. (2013, 'URAUS_USDT', 1, 'Uraus -Usdt ', 5, 89.2, '区块链', '默认', '2024-03-16 12:43:03', '2024-10-09 17:43:23', NULL, '等待多少小时对虚假付款的投诉进行自动处理: 取消订单', NULL),
  67. (2014, 'BNB_USDT', 1, 'bnb - Usdt', 5, 15.8, '区块链', '默认', '2024-03-16 12:43:03', '2024-10-09 17:43:23', NULL, '等待多少小时对虚假付款的投诉进行自动处理: 取消订单', NULL),
  68. (2016, 'recharge_status50_to202', 1, '充值单,不补充tx,自动结束时间', 8, 3600, '充值', '默认', '2024-03-16 12:43:03', '2024-10-09 17:43:23', NULL, '等待多少小时对虚假付款的投诉进行自动处理: 取消订单', NULL);
  69. -- ==========================================
  70. -- 表: kku_item_items
  71. -- 模型: App\Module\GameItems\Models\Item
  72. -- ==========================================
  73. DROP TABLE IF EXISTS `kku_item_items`;
  74. CREATE TABLE `kku_item_items` (
  75. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '物品ID,主键',
  76. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '物品名称',
  77. `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '物品描述',
  78. `category_id` int(11) NOT NULL COMMENT '物品分类ID,外键关联kku_item_categories表',
  79. `type` tinyint(4) NOT NULL COMMENT '物品类型(1:可使用, 2:可装备, 3:可合成, 4:可交任务, 5:可开启...)',
  80. `is_unique` tinyint(4) DEFAULT '0' COMMENT '是否是单独属性物品(0:否,默认, 1:是)',
  81. `max_stack` int(11) DEFAULT '0' COMMENT '最大堆叠数量(0表示无限堆叠)',
  82. `sell_price` int(11) DEFAULT '0' COMMENT '出售价格',
  83. `tradable` tinyint(4) DEFAULT '1' COMMENT '是否可交易(0:不可交易, 1:可交易,默认)',
  84. `dismantlable` tinyint(4) DEFAULT '1' COMMENT '是否可分解(0:不可分解, 1:可分解,默认)',
  85. `default_expire_seconds` int(11) DEFAULT '0' COMMENT '玩家获取物品后的默认有效秒数(0表示永久有效)',
  86. `display_attributes` json DEFAULT NULL COMMENT '展示属性,以JSON格式存储键值对,用于界面展示和描述的属性',
  87. `numeric_attributes` json DEFAULT NULL COMMENT '数值属性,以JSON格式存储键值对,用于计算和游戏逻辑的属性',
  88. `global_expire_at` timestamp NULL DEFAULT NULL COMMENT '物品全局过期时间(可为空)',
  89. `chest_consume_group_id` int(11) DEFAULT NULL COMMENT '宝箱开启消耗组ID(仅宝箱类型物品使用)',
  90. `chest_reward_group_id` int(11) DEFAULT NULL COMMENT '宝箱开启奖励组ID(仅宝箱类型物品使用)',
  91. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  92. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  93. PRIMARY KEY (`id`) USING BTREE,
  94. KEY `idx_category_id` (`category_id`) USING BTREE,
  95. KEY `idx_type` (`type`) USING BTREE,
  96. KEY `idx_is_unique` (`is_unique`) USING BTREE,
  97. KEY `idx_tradable` (`tradable`) USING BTREE,
  98. KEY `idx_dismantlable` (`dismantlable`) USING BTREE,
  99. KEY `idx_global_expire_at` (`global_expire_at`) USING BTREE
  100. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='统一属性物品表';
  101. -- 数据插入
  102. INSERT INTO `kku_item_items` (`id`, `name`, `description`, `category_id`, `type`, `is_unique`, `max_stack`, `sell_price`, `tradable`, `dismantlable`, `default_expire_seconds`, `display_attributes`, `numeric_attributes`, `global_expire_at`, `chest_consume_group_id`, `chest_reward_group_id`, `created_at`, `updated_at`) VALUES
  103. (1, '神秘种子', '神秘种子', 1, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/4_1_png\", \"cate\": \"111\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:02:38', '2025-05-28 17:16:17'),
  104. (2, '萝卜', '萝卜', 11, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/1_80004_png\", \"cate\": \"112\", \"wareHouse_type\": \"果实\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:12:57', '2025-05-28 17:16:30'),
  105. (3, '辣椒', '辣椒', 11, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/1_80006_png\", \"cate\": \"112\", \"img_title\": null, \"wareHouse_type\": \"果实\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:16:22', '2025-06-23 17:03:12'),
  106. (4, '苹果', '苹果', 11, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/1_80005_png\", \"cate\": \"112\", \"wareHouse_type\": \"果实\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:16:54', '2025-05-28 17:16:55'),
  107. (5, '西瓜', '西瓜', 11, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/1_80007_png\", \"cate\": \"112\", \"wareHouse_type\": \"果实\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:16:57', '2025-05-28 17:17:07'),
  108. (6, '草莓', '草莓', 11, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/1_80013_png\", \"cate\": \"112\", \"wareHouse_type\": \"果实\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:17:01', '2025-05-28 17:17:19'),
  109. (7, '南瓜', '南瓜', 11, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/1_80012_png\", \"cate\": \"112\", \"wareHouse_type\": \"果实\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:17:04', '2025-05-28 17:17:36'),
  110. (8, '核桃', '核桃', 11, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/1_80008_png\", \"cate\": \"112\", \"wareHouse_type\": \"果实\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:17:05', '2025-05-28 17:17:47'),
  111. (9, '可可', '可可', 11, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/1_80009_png\", \"cate\": \"112\", \"wareHouse_type\": \"果实\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:17:07', '2025-05-28 17:17:57'),
  112. (10, '人参', '人参', 11, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/1_80010_png\", \"cate\": \"112\", \"wareHouse_type\": \"果实\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:17:09', '2025-05-28 17:18:14'),
  113. (11, '玫瑰', '玫瑰', 11, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/1_80011_png\", \"cate\": \"112\", \"wareHouse_type\": \"果实\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:17:10', '2025-05-28 17:18:25'),
  114. (12, '草莓种⼦', '草莓种⼦', 4, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/seed2\", \"cate\": \"111\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:17:12', '2025-05-29 16:17:49'),
  115. (13, '南⽠种⼦', '南⽠种⼦', 4, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/seed3\", \"cate\": \"111\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:17:14', '2025-05-29 16:21:11'),
  116. (14, '核桃种⼦', '核桃种⼦', 4, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/seed4\", \"cate\": \"111\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:17:15', '2025-05-29 16:21:31'),
  117. (15, '可可种⼦', '可可种⼦', 4, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/seed5\", \"cate\": \"111\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:17:16', '2025-05-29 16:21:55'),
  118. (16, '⼈参种⼦', '⼈参种⼦', 4, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/seed6\", \"cate\": \"111\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:17:19', '2025-05-29 16:22:15'),
  119. (17, '玫瑰种⼦', '玫瑰种⼦', 4, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/seed7\", \"cate\": \"111\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 08:17:20', '2025-05-29 16:22:34'),
  120. (18, '测试', '测试', 11, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/1_80006_png\"}', '{\"fint\": \"0.1\", \"stval\": \"null\", \"pet_exp\": 0, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0}', NULL, NULL, NULL, '2025-04-25 08:17:20', '2025-05-28 15:58:06'),
  121. (19, '普通化肥', '减少当前阶段农作物3小时生长期', 6, 1, 0, 0, 0, 0, 0, 0, '{\"img\": \"icon/item/4_unll_png\", \"cate\": \"113\", \"img_title\": null, \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": \"10800\", \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 10:16:52', '2025-06-26 20:24:18'),
  122. (20, '普通化肥 (复制)', '普通化肥', 6, 1, 0, 0, 0, 0, 0, 0, '{\"img\": \"icon/item/1_80006_png\", \"cate\": \"113\", \"wareHouse_type\": \"1\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 10:16:58', '2025-05-28 15:58:06'),
  123. (21, '高级化肥', '高级化肥,减少市场36000秒', 8, 1, 0, 0, 0, 0, 0, 0, '{\"img\": \"icon/item/4_9_png\", \"cate\": \"113\", \"img_title\": null, \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": \"36000\", \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 10:17:50', '2025-06-20 15:36:52'),
  124. (22, '除草剂', '去除农作物杂草灾害一次', 9, 1, 0, 0, 0, 0, 0, 0, '{\"img\": \"icon/item/4_11_png\", \"cate\": \"114\", \"img_title\": null, \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": \"100\", \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 10:18:33', '2025-06-23 16:20:59'),
  125. (23, '除虫剂', '去除农作物虫害一次', 9, 1, 0, 0, 0, 0, 0, 0, '{\"img\": \"icon/item/4_12_png\", \"cate\": \"115\", \"img_title\": null, \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": \"100\", \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 10:18:38', '2025-06-22 20:56:02'),
  126. (24, '洒水壶', '去除农作物干旱一次', 9, 1, 0, 0, 0, 0, 0, 0, '{\"img\": \"icon/item/4_10_png\", \"cate\": \"116\", \"img_title\": null, \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": \"100\", \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 10:18:56', '2025-06-22 20:55:15'),
  127. (25, '银锄头', '银锄头', 10, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/4_3_png\", \"cate\": \"117\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": \"5\"}', NULL, NULL, NULL, '2025-04-25 11:48:36', '2025-05-28 17:21:17'),
  128. (26, '金锄头', '金锄头', 9, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/4_2\", \"cate\": \"117\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": \"6\"}', NULL, NULL, NULL, '2025-04-25 11:48:56', '2025-05-28 17:21:27'),
  129. (27, '铜宝箱', '铜宝箱', 10, 5, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/4_4_png\", \"cate\": \"119\", \"img_title\": \"icon/item/20\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 11:49:28', '2025-06-06 17:37:50'),
  130. (28, '银宝箱', '银宝箱', 10, 5, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/4_5_png\", \"cate\": \"119\", \"img_title\": \"icon/item/26\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 11:49:35', '2025-06-06 17:38:21'),
  131. (29, '金宝箱', '金宝箱', 10, 5, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/4_6_png\", \"cate\": \"119\", \"img_title\": \"icon/item/24\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 11:49:38', '2025-06-06 17:38:43'),
  132. (30, '钻石宝箱', '钻石宝箱', 10, 5, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/4_7_png\", \"cate\": \"119\", \"img_title\": \"icon/item/23\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-04-25 11:49:43', '2025-06-06 17:39:07'),
  133. (31, '钥匙', '钥匙', 9, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/1_80006_png\"}', '{\"fint\": \"0\", \"stval\": \"0\", \"pet_exp\": 0, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0}', NULL, NULL, NULL, '2025-05-09 11:42:01', '2025-05-28 15:58:06'),
  134. (32, '神奇宝箱', '神奇宝箱', 10, 5, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/1_80006_png\", \"cate\": \"119\", \"img_title\": \"icon/item/23\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-05-09 11:42:09', '2025-06-06 17:39:24'),
  135. (33, '木材', '木材', 12, 6, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/2_1_png\", \"cate\": \"118\", \"wareHouse_type\": \"材料\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-05-12 07:15:28', '2025-05-28 17:43:07'),
  136. (34, '石材', '石材', 12, 6, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/2_2_png\", \"cate\": \"118\", \"wareHouse_type\": \"材料\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-05-12 07:15:32', '2025-05-28 17:43:23'),
  137. (35, '钢材', '钢材', 12, 6, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/2_3_png\", \"cate\": \"118\", \"wareHouse_type\": \"材料\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-05-12 07:15:48', '2025-05-28 17:43:44'),
  138. (36, '铁矿石', '一种常见的矿石,可以用来冶炼铁锭', 12, 6, 0, 0, 10, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, '2025-05-14 19:24:20', '2025-05-28 15:58:06'),
  139. (37, '铜矿石', '一种常见的矿石,可以用来冶炼铜锭', 12, 6, 0, 0, 8, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, '2025-05-14 19:24:20', '2025-05-28 15:58:06'),
  140. (38, '金矿石', '一种珍贵的矿石,可以用来冶炼金锭', 12, 6, 0, 0, 50, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, '2025-05-14 19:24:20', '2025-05-28 15:58:06'),
  141. (39, '铁锭', '由铁矿石冶炼而成,可用于制作各种工具和装备', 12, 6, 0, 0, 25, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, '2025-05-14 19:24:20', '2025-05-28 15:58:06'),
  142. (40, '铜锭', '由铜矿石冶炼而成,可用于制作各种工具和装备', 12, 6, 0, 0, 20, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, '2025-05-14 19:24:20', '2025-05-28 15:58:06'),
  143. (41, '金锭', '由金矿石冶炼而成,可用于制作高级工具和装备', 12, 6, 0, 0, 100, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, '2025-05-14 19:24:20', '2025-05-28 15:58:06'),
  144. (42, '铁质工具箱', '包含各种铁质工具的工具箱', 9, 1, 0, 0, 150, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, '2025-05-14 19:24:20', '2025-05-28 15:58:06'),
  145. (43, '高级肥料', '由多种材料混合而成的高效肥料,可以显著提高作物产量', 8, 1, 0, 0, 80, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, '2025-05-14 19:24:20', '2025-05-28 15:58:06'),
  146. (44, '丰收神像', NULL, 9, 1, 0, 0, 0, 1, 1, 0, '{\"img\": null, \"cate\": 0, \"wareHouse_type\": \"1\"}', '{\"pet_exp\": 0, \"god_type\": \"1\", \"pet_type\": null, \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": \"36000\", \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-05-24 21:45:28', '2025-05-28 15:55:29'),
  147. (45, '雨露之神', '雨露之神', 9, 1, 0, 0, 0, 1, 1, 0, '{\"img\": null, \"wareHouse_type\": null}', '{\"pet_exp\": 0, \"god_type\": \"2\", \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": \"36000\"}', NULL, NULL, NULL, '2025-05-24 21:45:53', '2025-05-28 15:58:06'),
  148. (46, '屠草之神', '屠草之神', 9, 1, 0, 0, 0, 1, 1, 0, '{\"img\": null, \"wareHouse_type\": \"1\"}', '{\"pet_exp\": 0, \"god_type\": \"3\", \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": \"36000\"}', NULL, NULL, NULL, '2025-05-24 21:46:54', '2025-05-28 15:58:06'),
  149. (47, '拭虫之神', '拭虫之神', 9, 1, 0, 0, 0, 1, 1, 0, '{\"img\": null, \"wareHouse_type\": \"1\"}', '{\"pet_exp\": 0, \"god_type\": \"4\", \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": \"36000\"}', NULL, NULL, NULL, '2025-05-24 21:49:18', '2025-05-28 15:58:06'),
  150. (48, '一只松狮', '使用后可以获得一只宠物', 2, 1, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/6_8_png\", \"cate\": 0, \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": \"1\", \"pet_power\": 0, \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-05-24 22:33:09', '2025-05-28 17:23:45'),
  151. (49, '宠物口粮', '小包的宠物口粮', 2, 1, 0, 0, 0, 0, 0, 0, '{\"img\": \"icon/item/10_1_png\", \"cate\": \"120\", \"img_title\": null, \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": \"1\", \"god_type\": 0, \"pet_type\": null, \"pet_power\": \"10\", \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-05-27 19:53:46', '2025-06-20 15:29:56'),
  152. (50, '宠物体力口粮', '宠物体力口粮,增加20体力', 2, 1, 0, 0, 0, 0, 0, 0, '{\"img\": \"icon/item/10_2_png\", \"cate\": \"120\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": \"20\", \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-05-27 19:54:01', '2025-06-04 15:14:41'),
  153. (51, '大宠物体力口粮', '大宠物体力口粮,增加40体力', 2, 1, 0, 0, 0, 0, 0, 0, '{\"img\": null, \"cate\": 0, \"wareHouse_type\": \"1\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": \"40\", \"max_drop_count\": 0, \"min_drop_count\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-05-27 19:55:13', '2025-05-28 15:58:06'),
  154. (55, '测试金币宝箱', '测试用金币宝箱,开启需要金币', 10, 5, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/4_7_png\", \"cate\": \"119\", \"img_title\": \"icon/item/23\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-06-06 09:36:49', '2025-06-06 17:40:00'),
  155. (56, '测试钻石宝箱', '测试用钻石宝箱,开需要钻石', 10, 5, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/4_7_png\", \"cate\": \"119\", \"img_title\": \"icon/item/23\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-06-06 09:37:01', '2025-06-06 17:40:16'),
  156. (57, '测试钻石宝箱 两个物品', '测试用钻石宝箱,开需要钻石,两个物品', 10, 5, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/4_7_png\", \"cate\": \"119\", \"img_title\": \"icon/item/23\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-06-06 17:41:51', '2025-06-06 17:51:34'),
  157. (58, '测试钻石宝箱 三个产出', '测试用钻石宝箱,开需要钻石,测试钻石宝箱 三个产出', 10, 5, 0, 0, 0, 1, 1, 0, '{\"img\": \"icon/item/4_7_png\", \"cate\": \"119\", \"img_title\": \"icon/item/23\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-06-06 17:41:55', '2025-06-06 17:51:44'),
  158. (59, '优质宠物口粮', '大包的宠物口粮', 2, 1, 0, 0, 0, 0, 0, 0, '{\"img\": \"icon/item/10_2_png\", \"cate\": \"120\", \"img_title\": null, \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": \"2\", \"god_type\": 0, \"pet_type\": null, \"pet_power\": \"30\", \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-06-06 18:02:31', '2025-06-20 15:30:43'),
  159. (60, '玫瑰之心', NULL, 9, 6, 0, 1, 1, 0, 0, 0, '{\"img\": \"1\", \"cate\": \"121\", \"img_title\": \"1\", \"wareHouse_type\": \"道具\"}', '{\"pet_exp\": 0, \"god_type\": 0, \"pet_type\": null, \"pet_power\": 0, \"reward_group_id\": 0, \"crop_growth_time\": 0, \"fram_drought_rate\": 0, \"fram_pesticide_rate\": 0, \"fram_weedicide_rate\": 0, \"god_duration_seconds\": 0, \"fram_remove_reward_group\": 0}', NULL, NULL, NULL, '2025-06-20 11:05:19', '2025-06-20 11:17:27');
  160. -- ==========================================
  161. -- 表: kku_item_categories
  162. -- 模型: App\Module\GameItems\Models\ItemCategory
  163. -- ==========================================
  164. DROP TABLE IF EXISTS `kku_item_categories`;
  165. CREATE TABLE `kku_item_categories` (
  166. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '分类ID,主键',
  167. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '分类名称',
  168. `code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '分类编码(唯一)',
  169. `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '分类图标',
  170. `sort` int(11) DEFAULT '0' COMMENT '排序权重',
  171. `parent_id` int(11) DEFAULT NULL COMMENT '父分类ID(可为空,用于实现分类层级)',
  172. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  173. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  174. PRIMARY KEY (`id`) USING BTREE,
  175. UNIQUE KEY `idx_code` (`code`) USING BTREE,
  176. KEY `idx_parent_id` (`parent_id`) USING BTREE
  177. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='物品分类表';
  178. -- 数据插入
  179. INSERT INTO `kku_item_categories` (`id`, `name`, `code`, `icon`, `sort`, `parent_id`, `created_at`, `updated_at`) VALUES
  180. (1, '种子', 'seed', NULL, 0, 0, '2025-04-24 11:47:14', '2025-04-24 11:47:14'),
  181. (2, '宠物', 'pet', NULL, 0, 0, '2025-04-24 11:47:38', '2025-04-24 11:47:38'),
  182. (3, '普通种子', 'ordinary_seeds', NULL, 0, 1, '2025-04-25 08:05:52', '2025-04-25 08:05:52'),
  183. (4, '巨化种子', 'giant_seed', NULL, 0, 1, '2025-04-25 08:06:25', '2025-04-25 08:06:25'),
  184. (5, '化肥', 'chemical_fertilizer', NULL, 0, 0, '2025-04-25 10:01:49', '2025-04-25 10:01:49'),
  185. (6, '普通化肥', 'universal_chemical_fertilizer', NULL, 0, 5, '2025-04-25 10:01:49', '2025-04-25 10:01:49'),
  186. (8, '高级化肥', 'high_chemical_fertilizer', NULL, 0, 5, '2025-04-25 10:01:49', '2025-04-25 10:01:49'),
  187. (9, '工具', 'tool', NULL, 0, 0, '2025-04-25 10:01:49', '2025-04-25 10:01:49'),
  188. (10, '宝箱', 'chest', NULL, 0, 0, '2025-04-25 10:01:49', '2025-04-25 10:01:49'),
  189. (11, '果实', 'guoshi', NULL, 0, 0, '2025-05-12 06:33:07', '2025-05-12 06:33:07'),
  190. (12, '材料', 'cailiao', NULL, 0, 0, '2025-05-12 07:14:39', '2025-05-12 07:14:39');
  191. -- ==========================================
  192. -- 表: kku_item_chest_configs
  193. -- 模型: App\Module\GameItems\Models\ItemChestConfig
  194. -- ==========================================
  195. DROP TABLE IF EXISTS `kku_item_chest_configs`;
  196. CREATE TABLE `kku_item_chest_configs` (
  197. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '记录ID,主键',
  198. `item_id` int(11) NOT NULL COMMENT '宝箱物品ID,外键关联kku_item_items表',
  199. `consume_group_id` int(11) DEFAULT NULL COMMENT '消耗组ID,外键关联kku_game_consume_groups表(可为空)',
  200. `reward_group_id` int(11) NOT NULL COMMENT '奖励组ID,外键关联kku_game_reward_groups表',
  201. `condition_group_id` int(11) DEFAULT NULL COMMENT '条件组ID,外键关联kku_game_condition_groups表(可为空)',
  202. `is_active` tinyint(4) DEFAULT '1' COMMENT '是否激活(0:否, 1:是)',
  203. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  204. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  205. PRIMARY KEY (`id`) USING BTREE,
  206. UNIQUE KEY `idx_item_id` (`item_id`) USING BTREE COMMENT '每个宝箱物品只能有一个配置',
  207. KEY `idx_consume_group` (`consume_group_id`) USING BTREE,
  208. KEY `idx_reward_group` (`reward_group_id`) USING BTREE,
  209. KEY `idx_condition_group` (`condition_group_id`) USING BTREE,
  210. KEY `idx_is_active` (`is_active`) USING BTREE
  211. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='宝箱配置表';
  212. -- 数据插入
  213. INSERT INTO `kku_item_chest_configs` (`id`, `item_id`, `consume_group_id`, `reward_group_id`, `condition_group_id`, `is_active`, `created_at`, `updated_at`) VALUES
  214. (1, 27, 31, 30, 1, 1, '2025-06-03 19:03:37', '2025-06-04 17:16:32'),
  215. (2, 28, 32, 31, 1, 1, '2025-06-03 19:03:37', '2025-06-04 17:16:52'),
  216. (3, 29, 33, 32, 1, 1, '2025-06-03 19:03:38', '2025-06-04 17:17:04'),
  217. (4, 30, 34, 33, 1, 1, '2025-06-03 19:03:38', '2025-06-04 17:17:16'),
  218. (5, 32, 30, 34, NULL, 1, '2025-06-03 19:03:38', '2025-06-03 19:03:38'),
  219. (6, 55, 13, 30, 1, 1, '2025-06-06 09:42:54', '2025-06-06 09:42:54'),
  220. (9, 56, 39, 30, 1, 1, '2025-06-06 15:37:50', '2025-06-06 16:08:48'),
  221. (10, 57, 39, 36, 1, 1, '2025-06-06 17:42:27', '2025-06-06 17:57:19'),
  222. (11, 58, 39, 37, 1, 1, '2025-06-06 17:42:41', '2025-06-06 17:57:25');
  223. -- ==========================================
  224. -- 表: kku_item_dismantle_rules
  225. -- 模型: App\Module\GameItems\Models\ItemDismantleRule
  226. -- ==========================================
  227. DROP TABLE IF EXISTS `kku_item_dismantle_rules`;
  228. CREATE TABLE `kku_item_dismantle_rules` (
  229. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '规则ID,主键',
  230. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '规则名称',
  231. `code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '规则编码(唯一)',
  232. `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '规则描述',
  233. `item_id` int(11) DEFAULT NULL COMMENT '物品ID,外键关联kku_item_items表',
  234. `category_id` int(11) DEFAULT NULL COMMENT '分类ID,外键关联kku_item_categories表',
  235. `consume_group_id` int(10) unsigned DEFAULT NULL COMMENT '消耗组ID',
  236. `reward_group_id` int(10) unsigned DEFAULT NULL COMMENT '奖励组ID',
  237. `condition_group_id` int(10) unsigned DEFAULT NULL COMMENT '条件组ID',
  238. `min_rarity` tinyint(4) DEFAULT '1' COMMENT '最小适用稀有度',
  239. `max_rarity` tinyint(4) DEFAULT '1' COMMENT '最大适用稀有度',
  240. `priority` int(11) DEFAULT '0' COMMENT '规则优先级',
  241. `sort_order` int(11) DEFAULT '0' COMMENT '排序权重',
  242. `is_active` tinyint(4) DEFAULT '1' COMMENT '是否激活(0:否, 1:是)',
  243. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  244. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  245. PRIMARY KEY (`id`) USING BTREE,
  246. UNIQUE KEY `item_dismantle_rules_code_unique` (`code`) USING BTREE,
  247. KEY `idx_item_id` (`item_id`) USING BTREE,
  248. KEY `idx_category_id` (`category_id`) USING BTREE,
  249. KEY `idx_priority` (`priority`) USING BTREE,
  250. KEY `idx_consume_group_id` (`consume_group_id`) USING BTREE,
  251. KEY `idx_reward_group_id` (`reward_group_id`) USING BTREE,
  252. KEY `idx_condition_group_id` (`condition_group_id`) USING BTREE,
  253. KEY `idx_sort_order` (`sort_order`) USING BTREE
  254. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='物品分解规则(使用组系统)';
  255. -- 数据插入
  256. INSERT INTO `kku_item_dismantle_rules` (`id`, `name`, `code`, `description`, `item_id`, `category_id`, `consume_group_id`, `reward_group_id`, `condition_group_id`, `min_rarity`, `max_rarity`, `priority`, `sort_order`, `is_active`, `created_at`, `updated_at`) VALUES
  257. (1, '物品分解规则-39', NULL, NULL, 39, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 1, '2025-05-14 19:29:16', '2025-05-14 19:29:16'),
  258. (2, '物品分解规则-40', NULL, NULL, 40, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 1, '2025-05-14 19:29:16', '2025-05-14 19:29:16'),
  259. (3, '物品分解规则-41', NULL, NULL, 41, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 1, '2025-05-14 19:29:16', '2025-05-14 19:29:16'),
  260. (4, '物品分解规则-42', NULL, NULL, 42, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 1, '2025-05-14 19:29:16', '2025-05-14 19:29:16'),
  261. (5, '分类分解规则-12', NULL, NULL, NULL, 12, NULL, NULL, NULL, 1, 1, 2, 0, 1, '2025-05-14 19:29:16', '2025-05-14 19:29:16'),
  262. (6, '物品分解规则-39 (复制)', '_copy_1749294305', NULL, 39, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, '2025-06-07 19:05:05', '2025-06-07 19:05:05');
  263. -- ==========================================
  264. -- 表: kku_item_groups
  265. -- 模型: App\Module\GameItems\Models\ItemGroup
  266. -- ==========================================
  267. DROP TABLE IF EXISTS `kku_item_groups`;
  268. CREATE TABLE `kku_item_groups` (
  269. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '物品组ID,主键',
  270. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '物品组名称',
  271. `code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '物品组编码(唯一)',
  272. `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '物品组描述',
  273. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  274. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  275. PRIMARY KEY (`id`) USING BTREE,
  276. UNIQUE KEY `idx_code` (`code`) USING BTREE
  277. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='物品组表';
  278. -- 数据插入
  279. INSERT INTO `kku_item_groups` (`id`, `name`, `code`, `description`, `created_at`, `updated_at`) VALUES
  280. (1, '银锄头', 'yinchutou', '银出头 奖池', '2025-04-26 07:43:15', '2025-04-26 08:03:39');
  281. -- ==========================================
  282. -- 表: kku_item_group_items
  283. -- 模型: App\Module\GameItems\Models\ItemGroupItem
  284. -- ==========================================
  285. DROP TABLE IF EXISTS `kku_item_group_items`;
  286. CREATE TABLE `kku_item_group_items` (
  287. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '记录ID,主键',
  288. `group_id` int(11) NOT NULL COMMENT '物品组ID,外键关联kku_item_groups表',
  289. `item_id` int(11) NOT NULL COMMENT '物品ID,外键关联kku_item_items表',
  290. `weight` decimal(5,3) NOT NULL COMMENT '权重,决定从物品组中选择该物品的概率',
  291. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  292. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  293. PRIMARY KEY (`id`) USING BTREE,
  294. KEY `idx_group_id` (`group_id`) USING BTREE,
  295. KEY `idx_item_id` (`item_id`) USING BTREE,
  296. CONSTRAINT `fk_group_group` FOREIGN KEY (`group_id`) REFERENCES `kku_item_groups` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
  297. CONSTRAINT `fk_group_item` FOREIGN KEY (`item_id`) REFERENCES `kku_item_items` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
  298. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='物品组内容表';
  299. -- 数据插入
  300. INSERT INTO `kku_item_group_items` (`id`, `group_id`, `item_id`, `weight`, `created_at`, `updated_at`) VALUES
  301. (1, 1, 1, 90.000, '2025-04-26 07:43:16', '2025-04-26 08:09:47'),
  302. (2, 1, 15, 10.000, '2025-04-26 08:09:47', '2025-04-26 08:09:47');
  303. -- ==========================================
  304. -- 表: kku_item_output_limits
  305. -- 模型: App\Module\GameItems\Models\ItemOutputLimit
  306. -- ==========================================
  307. DROP TABLE IF EXISTS `kku_item_output_limits`;
  308. CREATE TABLE `kku_item_output_limits` (
  309. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '记录ID,主键',
  310. `item_id` int(11) NOT NULL COMMENT '物品ID,外键关联kku_item_items表',
  311. `limit_type` tinyint(4) NOT NULL COMMENT '限制类型(1:全局总量, 2:单个用户, 3:单日全局, 4:单日用户)',
  312. `max_quantity` int(11) NOT NULL COMMENT '最大产出数量',
  313. `current_quantity` int(11) DEFAULT '0' COMMENT '当前已产出数量(全局限制时使用)',
  314. `reset_type` tinyint(4) DEFAULT '0' COMMENT '重置类型(0:不重置, 1:每日, 2:每周, 3:每月)',
  315. `last_reset_time` timestamp NULL DEFAULT NULL COMMENT '上次重置时间',
  316. `related_items` json DEFAULT NULL COMMENT '关联物品ID列表,这些物品共享同一个限制额度',
  317. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  318. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  319. PRIMARY KEY (`id`) USING BTREE,
  320. KEY `idx_item_id` (`item_id`) USING BTREE,
  321. KEY `idx_limit_reset` (`limit_type`,`reset_type`) USING BTREE,
  322. CONSTRAINT `fk_limit_item` FOREIGN KEY (`item_id`) REFERENCES `kku_item_items` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
  323. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='物品产出限制表';
  324. -- 该表无数据记录
  325. -- ==========================================
  326. -- 表: kku_item_recipes
  327. -- 模型: App\Module\GameItems\Models\ItemRecipe
  328. -- ==========================================
  329. DROP TABLE IF EXISTS `kku_item_recipes`;
  330. CREATE TABLE `kku_item_recipes` (
  331. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '配方ID,主键',
  332. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '配方名称',
  333. `code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '配方编码(唯一)',
  334. `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '配方描述',
  335. `consume_group_id` int(10) unsigned DEFAULT NULL COMMENT '消耗组ID',
  336. `reward_group_id` int(10) unsigned DEFAULT NULL COMMENT '奖励组ID',
  337. `condition_group_id` int(10) unsigned DEFAULT NULL COMMENT '条件组ID',
  338. `display_attributes` json DEFAULT NULL COMMENT '展示属性,以JSON格式存储键值对,用于界面展示和描述的属性',
  339. `success_rate` decimal(5,2) DEFAULT '100.00' COMMENT '成功率(0-100之间的小数,100 = 100%)',
  340. `cooldown_seconds` int(11) DEFAULT '0' COMMENT '冷却时间(秒)',
  341. `category_id` int(11) DEFAULT NULL COMMENT '配方分类ID',
  342. `sort_order` int(11) DEFAULT '0' COMMENT '排序权重',
  343. `is_active` tinyint(4) DEFAULT '1' COMMENT '是否激活(0:否, 1:是)',
  344. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  345. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  346. PRIMARY KEY (`id`) USING BTREE,
  347. UNIQUE KEY `item_recipes_code_unique` (`code`) USING BTREE,
  348. KEY `idx_category` (`category_id`) USING BTREE,
  349. KEY `idx_consume_group_id` (`consume_group_id`) USING BTREE,
  350. KEY `idx_reward_group_id` (`reward_group_id`) USING BTREE,
  351. KEY `idx_condition_group_id` (`condition_group_id`) USING BTREE
  352. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='物品合成配方(使用组系统)';
  353. -- 数据插入
  354. INSERT INTO `kku_item_recipes` (`id`, `name`, `code`, `description`, `consume_group_id`, `reward_group_id`, `condition_group_id`, `display_attributes`, `success_rate`, `cooldown_seconds`, `category_id`, `sort_order`, `is_active`, `created_at`, `updated_at`) VALUES
  355. (6, '木材 制作', '木材', '木材 制作的配方', 28, 27, NULL, '{\"icon\": \"/images/icons/wood_craft.png\", \"category\": \"材料\"}', 100.00, 0, NULL, 0, 1, '2025-05-29 20:40:15', '2025-06-20 15:23:57'),
  356. (10, '钢材合成', 'steel_craft', '钢材合成配方', 40, 38, NULL, '{\"icon\": null, \"category\": \"材料\"}', 100.00, 0, NULL, 0, 1, '2025-06-07 21:06:35', '2025-06-20 15:24:24'),
  357. (11, '石材合成', 'steel_1749448834', '石材合成配方', 29, 39, NULL, '{\"icon\": null, \"category\": \"材料\"}', 100.00, 0, NULL, 0, 1, '2025-06-09 14:00:34', '2025-06-20 15:24:58'),
  358. (12, '初级狗粮合成', 'steel_1749448956', '石材 合成配方', 41, 40, NULL, '{\"icon\": null, \"category\": \"宠物\"}', 100.00, 0, NULL, 0, 1, '2025-06-09 14:02:36', '2025-06-09 15:03:51'),
  359. (13, '高级狗粮合成', 'steel_1749449531', '石材 合成配方', 42, 41, NULL, '{\"icon\": null, \"category\": \"宠物\"}', 100.00, 0, NULL, 0, 1, '2025-06-09 14:12:11', '2025-06-09 15:03:59'),
  360. (14, '皮肤2', 'stee_1749467925', '皮肤2 兑换配方', 42, 44, NULL, '{\"icon\": \"2\", \"category\": \"皮肤\"}', 100.00, 0, NULL, 0, 0, '2025-06-09 19:18:45', '2025-06-20 15:29:01'),
  361. (15, '皮肤3', 'stee_1749467951', '皮肤3 合成配方', 42, 45, NULL, '{\"icon\": \"3\", \"category\": \"皮肤\"}', 100.00, 0, NULL, 0, 0, '2025-06-09 19:19:11', '2025-06-20 15:29:01'),
  362. (16, '皮肤4', 'stee_1749468032', '皮肤4 合成配方', 42, 46, NULL, '{\"icon\": \"4\", \"category\": \"皮肤\"}', 100.00, 0, NULL, 0, 0, '2025-06-09 19:20:32', '2025-06-20 15:29:02'),
  363. (17, '神秘种子50个', 'seed_1_1', '神秘种子50个', 60, 68, 1, '{\"icon\": \"4\", \"category\": \"种子\"}', 100.00, 0, NULL, 0, 1, '2025-06-20 13:59:49', '2025-06-23 15:52:25');
  364. -- ==========================================
  365. -- 表: kku_game_condition_groups
  366. -- 模型: App\Module\Game\Models\GameConditionGroup
  367. -- ==========================================
  368. DROP TABLE IF EXISTS `kku_game_condition_groups`;
  369. CREATE TABLE `kku_game_condition_groups` (
  370. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  371. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '条件组名称',
  372. `code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '条件组编码(唯一)',
  373. `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '条件组描述',
  374. `logic_type` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '逻辑类型(1:全部满足, 2:任一满足)',
  375. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  376. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  377. PRIMARY KEY (`id`) USING BTREE,
  378. UNIQUE KEY `game_condition_groups_code_unique` (`code`) USING BTREE
  379. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='条件组';
  380. -- 数据插入
  381. INSERT INTO `kku_game_condition_groups` (`id`, `name`, `code`, `description`, `logic_type`, `created_at`, `updated_at`) VALUES
  382. (1, '默认条件', 'c1', NULL, 1, '2025-05-20 11:45:41', '2025-05-20 11:45:41');
  383. -- ==========================================
  384. -- 表: kku_game_condition_items
  385. -- 模型: App\Module\Game\Models\GameConditionItem
  386. -- ==========================================
  387. DROP TABLE IF EXISTS `kku_game_condition_items`;
  388. CREATE TABLE `kku_game_condition_items` (
  389. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  390. `group_id` int(10) unsigned NOT NULL COMMENT '条件组ID,外键关联game_condition_groups表',
  391. `condition_type` tinyint(3) unsigned NOT NULL COMMENT '条件类型(1:土地等级, 2:房屋等级, 3:宠物等级, 4:物品持有数, 5:代币持有数)',
  392. `target_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '目标ID(土地类型ID、宠物ID、物品ID、代币ID等,根据condition_type解释)',
  393. `operator` tinyint(3) unsigned NOT NULL COMMENT '比较运算符(1:等于, 2:不等于, 3:大于, 4:大于等于, 5:小于, 6:小于等于)',
  394. `value` int(11) NOT NULL COMMENT '比较值',
  395. `param1` int(11) NOT NULL DEFAULT '0' COMMENT '参数1(根据condition_type不同含义)',
  396. `param2` int(11) NOT NULL DEFAULT '0' COMMENT '参数2(根据condition_type不同含义)',
  397. `extra_data` json DEFAULT NULL COMMENT '额外数据(JSON格式,可存储特定条件类型的额外参数)',
  398. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  399. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  400. PRIMARY KEY (`id`) USING BTREE,
  401. KEY `game_condition_items_group_id_foreign` (`group_id`) USING BTREE,
  402. CONSTRAINT `game_condition_items_group_id_foreign` FOREIGN KEY (`group_id`) REFERENCES `kku_game_condition_groups` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
  403. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='条件项';
  404. -- 该表无数据记录
  405. -- ==========================================
  406. -- 表: kku_game_consume_groups
  407. -- 模型: App\Module\Game\Models\GameConsumeGroup
  408. -- ==========================================
  409. DROP TABLE IF EXISTS `kku_game_consume_groups`;
  410. CREATE TABLE `kku_game_consume_groups` (
  411. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  412. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '消耗组名称',
  413. `code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '消耗组编码(唯一)',
  414. `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '消耗组描述',
  415. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  416. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  417. PRIMARY KEY (`id`) USING BTREE,
  418. UNIQUE KEY `game_consume_groups_code_unique` (`code`) USING BTREE
  419. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='消耗组';
  420. -- 数据插入
  421. INSERT INTO `kku_game_consume_groups` (`id`, `name`, `code`, `description`, `created_at`, `updated_at`) VALUES
  422. (1, '默认消耗', 'consume1', NULL, '2025-05-20 13:38:04', '2025-05-20 13:38:04'),
  423. (2, '房屋升级1-2', 'c_h_1', NULL, '2025-05-20 15:10:54', '2025-05-20 15:11:13'),
  424. (13, '商店-金币消耗', 'shop_gold_consume', '商店商品购买消耗金币', '2025-05-29 11:07:54', '2025-05-29 11:07:54'),
  425. (14, '商店-钻石消耗', 'shop_diamond_consume', '商店商品购买消耗钻石', '2025-05-29 11:07:54', '2025-05-29 11:07:54'),
  426. (15, '商店-积分消耗', 'shop_points_consume', '商店商品购买消耗积分', '2025-05-29 11:07:54', '2025-05-29 11:07:54'),
  427. (16, '商店-道具消耗5钻', 'shop_tool_5_diamond', '购买道具类商品消耗5钻石', '2025-05-29 11:17:04', '2025-05-29 11:17:04'),
  428. (17, '商店-道具消耗10钻', 'shop_tool_10_diamond', '购买道具类商品消耗10钻石', '2025-05-29 11:17:04', '2025-05-29 11:17:04'),
  429. (18, '商店-宝箱消耗10钻', 'shop_chest_10_diamond', '购买宝箱类商品消耗10钻石', '2025-05-29 11:17:04', '2025-05-29 11:17:04'),
  430. (19, '商店-宝箱消耗20钻', 'shop_chest_20_diamond', '购买宝箱类商品消耗20钻石', '2025-05-29 11:17:04', '2025-05-29 11:17:04'),
  431. (20, '商店-宝箱消耗30钻', 'shop_chest_30_diamond', '购买宝箱类商品消耗30钻石', '2025-05-29 11:17:04', '2025-05-29 11:17:04'),
  432. (21, '商店-宝箱消耗100钻', 'shop_chest_100_diamond', '购买宝箱类商品消耗100钻石', '2025-05-29 11:17:04', '2025-05-29 11:17:04'),
  433. (22, '商店-神器消耗700钻', 'shop_artifact_700_diamond', '购买神器类商品消耗700钻石', '2025-05-29 11:17:04', '2025-05-29 11:17:04'),
  434. (23, '商店-神器消耗2880钻', 'shop_artifact_2880_diamond', '购买神器类商品消耗2880钻石', '2025-05-29 11:17:04', '2025-05-29 11:17:04'),
  435. (25, '合成消耗: 金矿石冶炼', 'craft_consume_3', '配方 金矿石冶炼 的消耗组', '2025-05-29 22:52:55', '2025-05-29 22:52:55'),
  436. (26, '合成消耗: 铁质工具箱制作', 'craft_consume_4', '配方 铁质工具箱制作 的消耗组', '2025-05-29 22:54:47', '2025-05-29 22:54:47'),
  437. (28, '合成消耗: 木材制作', 'craft_consume_6', '配方 木材制作 的消耗组', '2025-05-29 22:57:42', '2025-06-20 15:18:01'),
  438. (29, '合成消耗: 石材 加工', 'craft_consume_7', '配方 石材加工 的消耗组', '2025-05-29 22:58:23', '2025-06-20 15:19:16'),
  439. (30, '神奇宝箱_消耗组', 'chest_32_consume_1748948618', '宝箱 神奇宝箱 的开启消耗配置(从旧系统迁移)', '2025-06-03 19:03:38', '2025-06-03 19:03:38'),
  440. (31, '铜宝箱-开启消耗', 'box-open-tong', NULL, '2025-06-04 17:09:15', '2025-06-04 17:09:15'),
  441. (32, '银宝箱-开启消耗', 'box-open-yin', NULL, '2025-06-04 17:10:58', '2025-06-04 17:11:31'),
  442. (33, '金宝箱-开启消耗', 'box-open-jin', NULL, '2025-06-04 17:11:07', '2025-06-04 17:12:00'),
  443. (34, '钻石宝箱-开启消耗', 'box-open-zuan', NULL, '2025-06-04 17:12:41', '2025-06-04 17:13:02'),
  444. (35, '多账户测试消耗组', 'test_fund_configs', '用于测试多账户种类消耗功能', '2025-06-06 11:08:03', '2025-06-06 11:08:03'),
  445. (36, '多账户不足测试消耗组', 'test_fund_configs_insufficient', '用于测试多账户种类消耗功能(主账户不足)', '2025-06-06 11:10:41', '2025-06-06 11:10:41'),
  446. (37, '宝箱-金币100', 'box-fun110', NULL, '2025-06-06 11:20:32', '2025-06-06 11:20:32'),
  447. (38, '宝箱-金币100', 'box-fun110_copy_1749196804', NULL, '2025-06-06 16:00:04', '2025-06-06 16:00:28'),
  448. (39, '宝箱-钻石100', 'box-fun110_copy_1749196967', NULL, '2025-06-06 16:02:47', '2025-06-06 16:03:41'),
  449. (40, '合成消耗: 钢材 制作', 'craft_consume_8', '配方 钢材制作 的消耗组', '2025-06-07 21:40:24', '2025-06-20 15:18:50'),
  450. (41, '合成消耗: 初级宠物口粮 制作', 'craft_1749449055', '合成消耗: 初级宠物口粮 制作', '2025-06-09 14:04:15', '2025-06-09 14:04:50'),
  451. (42, '合成消耗: 高级宠物口粮 制作', 'craft_1749449123', '合成消耗: 高级宠物口粮 制作', '2025-06-09 14:05:23', '2025-06-09 14:06:05'),
  452. (43, '土地升级1-2', 'land_update_2', NULL, '2025-06-20 13:44:25', '2025-06-20 13:45:00'),
  453. (44, '土地升级2-3', 'land_update_3', NULL, '2025-06-20 13:45:12', '2025-06-20 13:45:28'),
  454. (45, '土地升级3-4', 'land_update_4', NULL, '2025-06-20 13:45:14', '2025-06-20 13:48:33'),
  455. (46, '土地升级1-2 (复制)', 'land_update_2_copy_1750398316', NULL, '2025-06-20 13:45:16', '2025-06-20 13:45:16'),
  456. (47, '钻石10', 'fun1-10', NULL, '2025-06-20 13:56:08', '2025-06-20 13:56:22'),
  457. (48, '房屋升级2-3', 'c_h_2', NULL, '2025-06-20 14:59:40', '2025-06-20 15:00:15'),
  458. (49, '房屋升级3-4', 'c_h_3', NULL, '2025-06-20 14:59:43', '2025-06-20 15:00:29'),
  459. (50, '房屋升级4-5', 'c_h_4', NULL, '2025-06-20 14:59:45', '2025-06-20 15:00:49'),
  460. (51, '房屋升级5-6', 'c_h_5', NULL, '2025-06-20 14:59:47', '2025-06-20 15:00:59'),
  461. (52, '房屋升级6-7', 'c_h_6', NULL, '2025-06-20 14:59:50', '2025-06-20 15:01:15'),
  462. (53, '房屋升级7-8', 'c_h_7', NULL, '2025-06-20 14:59:52', '2025-06-20 15:01:28'),
  463. (54, '房屋升级8-9', 'c_h_8', NULL, '2025-06-20 14:59:56', '2025-06-20 15:01:38'),
  464. (55, '房屋升级9-10', 'c_h_9', NULL, '2025-06-20 14:59:59', '2025-06-20 15:01:51'),
  465. (56, '房屋升级10-11', 'c_h_10', NULL, '2025-06-20 15:00:03', '2025-06-20 15:02:11'),
  466. (57, '房屋升级11-12', 'c_h_11', NULL, '2025-06-20 15:02:16', '2025-06-20 15:02:26'),
  467. (58, '钻石5个', 'fun1-5', NULL, '2025-06-20 15:44:39', '2025-06-20 15:45:04'),
  468. (59, '钻石15', 'fun1-15', NULL, '2025-06-20 15:44:42', '2025-06-20 15:45:13'),
  469. (60, '钻石100', 'fun1-100', NULL, '2025-06-20 15:48:25', '2025-06-20 15:48:56'),
  470. (61, '钻石200', 'fun1-200', NULL, '2025-06-20 15:48:40', '2025-06-20 15:49:09'),
  471. (62, '钻石300', 'fun1-300', NULL, '2025-06-20 15:48:43', '2025-06-20 15:49:19'),
  472. (63, '钻石1000', 'fun1-1000', NULL, '2025-06-20 15:48:45', '2025-06-20 15:49:29');
  473. -- ==========================================
  474. -- 表: kku_game_consume_items
  475. -- 模型: App\Module\Game\Models\GameConsumeItem
  476. -- ==========================================
  477. DROP TABLE IF EXISTS `kku_game_consume_items`;
  478. CREATE TABLE `kku_game_consume_items` (
  479. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  480. `group_id` int(10) unsigned NOT NULL COMMENT '消耗组ID,外键关联game_consume_groups表',
  481. `consume_type` tinyint(3) unsigned NOT NULL COMMENT '消耗类型(1:物品, 2:货币)',
  482. `target_id` int(10) unsigned NOT NULL COMMENT '目标ID(物品ID、货币ID等,根据consume_type解释)',
  483. `param1` int(11) NOT NULL DEFAULT '0' COMMENT '参数1(根据consume_type不同含义,如物品的品质、货币的来源等)',
  484. `param2` int(11) NOT NULL DEFAULT '0' COMMENT '参数2(根据consume_type不同含义,如物品的绑定状态、货币的类型等)',
  485. `quantity` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '数量',
  486. `extra_data` json DEFAULT NULL COMMENT '额外数据(JSON格式,可存储特定消耗类型的额外参数)',
  487. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  488. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  489. PRIMARY KEY (`id`) USING BTREE,
  490. KEY `game_consume_items_group_id_foreign` (`group_id`) USING BTREE,
  491. CONSTRAINT `game_consume_items_group_id_foreign` FOREIGN KEY (`group_id`) REFERENCES `kku_game_consume_groups` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
  492. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='消耗项';
  493. -- 数据插入
  494. INSERT INTO `kku_game_consume_items` (`id`, `group_id`, `consume_type`, `target_id`, `param1`, `param2`, `quantity`, `extra_data`, `created_at`, `updated_at`) VALUES
  495. (1, 1, 1, 33, 1, 0, 112, NULL, '2025-05-20 13:49:19', '2025-05-20 14:23:22'),
  496. (3, 1, 3, 2, 0, 0, 100, NULL, '2025-05-20 14:09:07', '2025-05-20 14:09:07'),
  497. (4, 1, 1, 34, 1, 0, 120, NULL, '2025-05-20 14:23:46', '2025-05-20 14:24:00'),
  498. (5, 2, 1, 33, 1, 0, 1, NULL, '2025-05-20 15:10:54', '2025-06-20 14:58:47'),
  499. (7, 2, 1, 34, 1, 0, 1, NULL, '2025-05-20 15:10:54', '2025-06-20 14:58:51'),
  500. (39, 14, 2, 2, 0, 0, 50, NULL, '2025-05-29 11:09:16', '2025-05-29 11:09:16'),
  501. (40, 15, 2, 3, 0, 0, 200, NULL, '2025-05-29 11:09:16', '2025-05-29 11:09:16'),
  502. (41, 16, 2, 2, 0, 0, 5, NULL, '2025-05-29 11:17:15', '2025-05-29 11:17:15'),
  503. (42, 17, 2, 2, 0, 0, 10, NULL, '2025-05-29 11:17:15', '2025-05-29 11:17:15'),
  504. (43, 18, 2, 2, 0, 0, 10, NULL, '2025-05-29 11:17:15', '2025-05-29 11:17:15'),
  505. (44, 19, 2, 2, 0, 0, 20, NULL, '2025-05-29 11:17:15', '2025-05-29 11:17:15'),
  506. (45, 20, 2, 2, 0, 0, 30, NULL, '2025-05-29 11:17:15', '2025-05-29 11:17:15'),
  507. (46, 21, 2, 2, 0, 0, 100, NULL, '2025-05-29 11:17:15', '2025-05-29 11:17:15'),
  508. (47, 22, 2, 2, 0, 0, 700, NULL, '2025-05-29 11:17:15', '2025-05-29 11:17:15'),
  509. (48, 23, 2, 2, 0, 0, 2880, NULL, '2025-05-29 11:17:15', '2025-05-29 11:17:15'),
  510. (51, 25, 1, 38, 0, 0, 3, NULL, '2025-05-29 22:53:03', '2025-05-29 22:53:03'),
  511. (52, 25, 2, 1, 0, 0, 10, NULL, '2025-05-29 22:53:10', '2025-05-29 22:53:10'),
  512. (53, 26, 1, 39, 0, 0, 5, NULL, '2025-05-29 22:54:55', '2025-05-29 22:54:55'),
  513. (54, 26, 1, 40, 0, 0, 2, NULL, '2025-05-29 22:54:55', '2025-05-29 22:54:55'),
  514. (56, 26, 2, 1, 0, 0, 20, NULL, '2025-05-29 22:55:02', '2025-05-29 22:55:02'),
  515. (61, 28, 1, 4, 0, 0, 400, NULL, '2025-05-29 22:57:48', '2025-06-21 15:10:37'),
  516. (63, 29, 1, 4, 0, 0, 800, NULL, '2025-05-29 22:58:30', '2025-06-21 15:12:41'),
  517. (65, 30, 1, 31, 0, 0, 1, NULL, '2025-06-03 19:03:38', '2025-06-03 19:03:38'),
  518. (66, 31, 1, 2, 0, 0, 500, NULL, '2025-06-04 17:09:40', '2025-06-04 17:09:40'),
  519. (67, 31, 1, 3, 0, 0, 500, NULL, '2025-06-04 17:09:55', '2025-06-04 17:10:10'),
  520. (68, 32, 1, 4, 0, 0, 500, NULL, '2025-06-04 17:10:58', '2025-06-04 17:13:46'),
  521. (69, 32, 1, 5, 0, 0, 500, NULL, '2025-06-04 17:10:58', '2025-06-04 17:13:55'),
  522. (70, 33, 1, 6, 0, 0, 500, NULL, '2025-06-04 17:11:07', '2025-06-04 17:14:14'),
  523. (71, 33, 1, 7, 0, 0, 500, NULL, '2025-06-04 17:11:07', '2025-06-04 17:14:37'),
  524. (72, 34, 1, 4, 0, 0, 100, NULL, '2025-06-04 17:12:41', '2025-06-04 17:15:13'),
  525. (73, 34, 1, 5, 0, 0, 100, NULL, '2025-06-04 17:12:41', '2025-06-04 17:15:29'),
  526. (74, 35, 4, 1, 0, 0, 100, '{\"fund_config_ids\": [2]}', '2025-06-06 11:08:10', '2025-06-06 11:08:10'),
  527. (75, 36, 4, 1, 0, 0, 10000000, '{\"fund_config_ids\": [2]}', '2025-06-06 11:10:49', '2025-06-06 11:10:49'),
  528. (76, 13, 3, 1, 0, 0, 100, NULL, '2025-06-06 15:23:22', '2025-06-06 15:23:22'),
  529. (77, 37, 3, 1, 0, 0, 100, NULL, '2025-06-06 16:01:12', '2025-06-06 16:01:12'),
  530. (78, 38, 3, 1, 0, 0, 200, NULL, '2025-06-06 16:01:40', '2025-06-06 16:01:40'),
  531. (79, 39, 3, 2, 0, 0, 100, NULL, '2025-06-06 16:02:47', '2025-06-06 16:07:25'),
  532. (80, 28, 1, 5, 0, 0, 400, NULL, '2025-06-07 21:12:32', '2025-06-20 15:21:20'),
  533. (81, 40, 1, 6, 0, 0, 150, NULL, '2025-06-07 21:40:24', '2025-06-20 15:22:29'),
  534. (82, 40, 1, 5, 0, 0, 800, NULL, '2025-06-07 21:40:24', '2025-06-20 15:22:33'),
  535. (83, 41, 1, 2, 0, 0, 35, NULL, '2025-06-09 14:04:15', '2025-06-09 14:05:15'),
  536. (85, 42, 1, 4, 0, 0, 70, NULL, '2025-06-09 14:05:23', '2025-06-30 18:35:30'),
  537. (86, 43, 1, 2, 1, 0, 300, NULL, '2025-06-20 13:44:25', '2025-06-20 13:53:18'),
  538. (87, 43, 3, 2, 0, 0, 300, NULL, '2025-06-20 13:44:25', '2025-06-20 13:52:22'),
  539. (88, 43, 1, 3, 1, 0, 300, NULL, '2025-06-20 13:44:25', '2025-06-20 13:53:26'),
  540. (89, 44, 1, 4, 1, 0, 1000, NULL, '2025-06-20 13:45:12', '2025-06-20 13:54:01'),
  541. (90, 44, 3, 2, 0, 0, 1000, NULL, '2025-06-20 13:45:12', '2025-06-20 13:54:04'),
  542. (91, 44, 1, 5, 1, 0, 1000, NULL, '2025-06-20 13:45:12', '2025-06-20 13:54:12'),
  543. (92, 45, 1, 5, 1, 0, 8000, NULL, '2025-06-20 13:45:14', '2025-06-20 13:55:28'),
  544. (93, 45, 3, 2, 0, 0, 2000, NULL, '2025-06-20 13:45:14', '2025-06-20 13:55:02'),
  545. (94, 45, 1, 7, 1, 0, 800, NULL, '2025-06-20 13:45:14', '2025-06-20 13:55:16'),
  546. (95, 46, 1, 33, 1, 0, 112, NULL, '2025-06-20 13:45:16', '2025-06-20 13:45:16'),
  547. (96, 46, 3, 2, 0, 0, 100, NULL, '2025-06-20 13:45:16', '2025-06-20 13:45:16'),
  548. (97, 46, 1, 34, 1, 0, 120, NULL, '2025-06-20 13:45:16', '2025-06-20 13:45:16'),
  549. (98, 47, 3, 2, 0, 0, 10, NULL, '2025-06-20 13:56:08', '2025-06-20 13:56:32'),
  550. (99, 2, 1, 35, 1, 0, 1, NULL, '2025-06-20 14:58:37', '2025-06-20 14:58:58'),
  551. (100, 48, 1, 33, 1, 0, 4, NULL, '2025-06-20 14:59:40', '2025-06-20 15:16:22'),
  552. (101, 48, 1, 34, 1, 0, 4, NULL, '2025-06-20 14:59:40', '2025-06-20 15:16:24'),
  553. (102, 48, 1, 35, 1, 0, 4, NULL, '2025-06-20 14:59:40', '2025-06-20 15:16:27'),
  554. (103, 49, 1, 33, 1, 0, 8, NULL, '2025-06-20 14:59:43', '2025-06-20 15:15:57'),
  555. (104, 49, 1, 34, 1, 0, 8, NULL, '2025-06-20 14:59:43', '2025-06-20 15:16:01'),
  556. (105, 49, 1, 35, 1, 0, 8, NULL, '2025-06-20 14:59:43', '2025-06-20 15:16:04'),
  557. (106, 50, 1, 33, 1, 0, 12, NULL, '2025-06-20 14:59:45', '2025-06-20 15:15:23'),
  558. (107, 50, 1, 34, 1, 0, 12, NULL, '2025-06-20 14:59:45', '2025-06-20 15:15:20'),
  559. (108, 50, 1, 35, 1, 0, 12, NULL, '2025-06-20 14:59:45', '2025-06-20 15:15:26'),
  560. (109, 51, 1, 33, 1, 0, 18, NULL, '2025-06-20 14:59:47', '2025-06-20 15:14:49'),
  561. (110, 51, 1, 34, 1, 0, 18, NULL, '2025-06-20 14:59:47', '2025-06-20 15:14:53'),
  562. (111, 51, 1, 35, 1, 0, 18, NULL, '2025-06-20 14:59:47', '2025-06-20 15:14:56'),
  563. (112, 52, 1, 33, 1, 0, 26, NULL, '2025-06-20 14:59:50', '2025-06-20 15:13:41'),
  564. (113, 52, 1, 34, 1, 0, 23, NULL, '2025-06-20 14:59:50', '2025-06-20 15:13:44'),
  565. (114, 52, 1, 35, 1, 0, 26, NULL, '2025-06-20 14:59:50', '2025-06-20 15:13:49'),
  566. (115, 53, 1, 33, 1, 0, 33, NULL, '2025-06-20 14:59:52', '2025-06-20 15:12:42'),
  567. (116, 53, 1, 34, 1, 0, 29, NULL, '2025-06-20 14:59:52', '2025-06-20 15:12:45'),
  568. (117, 53, 1, 35, 1, 0, 33, NULL, '2025-06-20 14:59:52', '2025-06-20 15:12:49'),
  569. (118, 54, 1, 33, 1, 0, 39, NULL, '2025-06-20 14:59:56', '2025-06-20 15:05:20'),
  570. (119, 54, 1, 34, 1, 0, 35, NULL, '2025-06-20 14:59:56', '2025-06-20 15:05:23'),
  571. (120, 54, 1, 35, 1, 0, 39, NULL, '2025-06-20 14:59:56', '2025-06-20 15:05:26'),
  572. (121, 55, 1, 33, 1, 0, 43, NULL, '2025-06-20 14:59:59', '2025-06-20 15:04:34'),
  573. (122, 55, 1, 34, 1, 0, 41, NULL, '2025-06-20 14:59:59', '2025-06-20 15:04:40'),
  574. (123, 55, 1, 35, 1, 0, 43, NULL, '2025-06-20 14:59:59', '2025-06-20 15:04:52'),
  575. (124, 56, 1, 33, 1, 0, 47, NULL, '2025-06-20 15:00:03', '2025-06-20 15:04:00'),
  576. (125, 56, 1, 34, 1, 0, 46, NULL, '2025-06-20 15:00:03', '2025-06-20 15:03:56'),
  577. (126, 56, 1, 35, 1, 0, 47, NULL, '2025-06-20 15:00:03', '2025-06-20 15:03:42'),
  578. (127, 57, 1, 33, 1, 0, 51, NULL, '2025-06-20 15:02:16', '2025-06-20 15:03:00'),
  579. (128, 57, 1, 34, 1, 0, 53, NULL, '2025-06-20 15:02:16', '2025-06-20 15:02:55'),
  580. (129, 57, 1, 35, 1, 0, 51, NULL, '2025-06-20 15:02:16', '2025-06-20 15:03:04'),
  581. (130, 29, 1, 7, 0, 0, 150, NULL, '2025-06-20 15:21:33', '2025-06-20 15:22:03'),
  582. (131, 58, 3, 2, 0, 0, 5, NULL, '2025-06-20 15:44:39', '2025-06-20 15:45:21'),
  583. (132, 59, 3, 2, 0, 0, 15, NULL, '2025-06-20 15:44:42', '2025-06-20 15:45:30'),
  584. (133, 60, 3, 2, 0, 0, 100, NULL, '2025-06-20 15:48:25', '2025-06-20 15:49:43'),
  585. (134, 61, 3, 2, 0, 0, 200, NULL, '2025-06-20 15:48:41', '2025-06-20 15:49:54'),
  586. (135, 62, 3, 2, 0, 0, 300, NULL, '2025-06-20 15:48:43', '2025-06-20 15:49:59'),
  587. (136, 63, 3, 2, 0, 0, 1000, NULL, '2025-06-20 15:48:45', '2025-06-20 15:50:04');
  588. -- ==========================================
  589. -- 表: kku_game_reward_groups
  590. -- 模型: App\Module\Game\Models\GameRewardGroup
  591. -- ==========================================
  592. DROP TABLE IF EXISTS `kku_game_reward_groups`;
  593. CREATE TABLE `kku_game_reward_groups` (
  594. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  595. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '奖励组名称',
  596. `code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '奖励组编码(唯一)',
  597. `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '奖励组描述',
  598. `is_random` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否随机发放(0:全部发放, 1:随机发放)',
  599. `random_count` int(11) DEFAULT '1' COMMENT '随机发放时的奖励数量',
  600. `reward_mode` tinyint(4) DEFAULT '1' COMMENT '奖励模式(1:权重选择模式, 2:独立概率模式)',
  601. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  602. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  603. PRIMARY KEY (`id`) USING BTREE,
  604. UNIQUE KEY `idx_code` (`code`) USING BTREE
  605. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='奖励组表';
  606. -- 数据插入
  607. INSERT INTO `kku_game_reward_groups` (`id`, `name`, `code`, `description`, `is_random`, `random_count`, `reward_mode`, `created_at`, `updated_at`) VALUES
  608. (1, '默认奖励', 'r1', '默认奖励', 0, 1, 1, '2025-05-20 10:41:38', '2025-05-20 10:41:38'),
  609. (2, '奖励2', 'r1_1747709722', '默认奖励', 0, 1, 1, '2025-05-20 10:55:22', '2025-05-20 11:10:29'),
  610. (3, '默认奖励 (复制) (复制)', 'r1_copy_1747709722_copy_1747709725', '默认奖励', 0, 1, 1, '2025-05-20 10:55:25', '2025-05-20 10:55:25'),
  611. (4, '默认奖励 (复制)', 'r1_copy_1747709728', '默认奖励', 0, 1, 1, '2025-05-20 10:55:28', '2025-05-20 10:55:28'),
  612. (5, '银锄头奖励', 'r1748332896', '默认奖励', 0, 1, 1, '2025-05-27 16:01:36', '2025-05-27 16:02:04'),
  613. (6, '金锄头奖励', 'r1748332927', '默认奖励', 0, 1, 1, '2025-05-27 16:02:07', '2025-05-27 16:02:20'),
  614. (7, '商店-道具包(测试大宝)', 'shop_item_pack', '商店购买获得道具包', 0, 10, 1, '2025-05-29 11:08:01', '2025-06-23 20:38:30'),
  615. (8, '商店-种子包', 'shop_seed_pack', '商店购买获得种子包', 0, 1, 1, '2025-05-29 11:08:01', '2025-05-29 11:08:01'),
  616. (9, '商店-资源包', 'shop_resource_pack', '商店购买获得资源包', 0, 1, 1, '2025-05-29 11:08:01', '2025-05-29 11:08:01'),
  617. (10, '商店-随机奖励', 'shop_random_reward', '商店购买获得随机奖励', 1, 2, 1, '2025-05-29 11:08:01', '2025-05-29 11:08:01'),
  618. (11, '商店-洒水壶奖励', 'shop_watering_can_reward', '购买洒水壶获得的奖励', 0, 1, 1, '2025-05-29 11:17:25', '2025-05-29 11:17:25'),
  619. (12, '商店-除草剂奖励', 'shop_herbicide_reward', '购买除草剂获得的奖励', 0, 1, 1, '2025-05-29 11:17:25', '2025-05-29 11:17:25'),
  620. (13, '商店-除虫剂奖励', 'shop_pesticide_reward', '购买除虫剂获得的奖励', 0, 1, 1, '2025-05-29 11:17:25', '2025-05-29 11:17:25'),
  621. (14, '商店-化肥奖励', 'shop_fertilizer_reward', '购买化肥获得的奖励', 0, 1, 1, '2025-05-29 11:17:25', '2025-05-29 11:17:25'),
  622. (15, '商店铜宝箱1个', 'shop_copper_chest_reward', '购买-获得的奖励', 0, 1, 1, '2025-05-29 11:17:25', '2025-06-25 20:50:43'),
  623. (16, '商店-银宝箱奖励', 'shop_silver_chest_reward', '购买银宝箱获得的奖励', 0, 1, 1, '2025-05-29 11:17:25', '2025-05-29 11:17:25'),
  624. (17, '商店-金宝箱奖励', 'shop_gold_chest_reward', '购买金宝箱获得的奖励', 0, 1, 1, '2025-05-29 11:17:25', '2025-05-29 16:22:45'),
  625. (18, '商店-K钻宝箱奖励', 'shop_k_diamond_chest_reward', '购买K钻宝箱获得的奖励', 0, 1, 1, '2025-05-29 11:17:25', '2025-05-29 11:17:25'),
  626. (19, '商店-除草之神奖励', 'shop_grasshopper_god_reward', '购买蚱蜢之神获得的奖励', 0, 1, 1, '2025-05-29 11:17:25', '2025-05-29 14:59:35'),
  627. (20, '商店-除虫之神奖励', 'shop_locust_god_reward', '购买 除虫之神获得的奖励', 0, 1, 1, '2025-05-29 11:17:25', '2025-05-29 16:39:36'),
  628. (21, '商店-雨露之神奖励', 'shop_dew_god_reward', '购买雨露之神获得的奖励', 0, 1, 1, '2025-05-29 11:17:25', '2025-05-29 11:17:25'),
  629. (22, '商店-丰收之神奖励', 'shop_harvest_god_reward', '购买丰收之神获得的奖励', 0, 1, 1, '2025-05-29 11:17:25', '2025-05-29 11:17:25'),
  630. (23, '合成奖励: 铜矿石冶炼', 'craft_reward_2', '配方 铜矿石冶炼 的奖励组', 0, 1, 1, '2025-05-29 22:51:52', '2025-05-29 22:51:52'),
  631. (24, '合成奖励: 金矿石冶炼', 'craft_reward_3', '配方 金矿石冶炼 的奖励组', 0, 1, 1, '2025-05-29 22:53:17', '2025-05-29 22:53:17'),
  632. (25, '合成奖励: 铁质工具箱制作', 'craft_reward_4', '配方 铁质工具箱制作 的奖励组', 0, 1, 1, '2025-05-29 22:55:09', '2025-05-29 22:55:09'),
  633. (26, '合成奖励: 高级肥料制作', 'craft_reward_5', '配方 高级肥料制作 的奖励组', 0, 1, 1, '2025-05-29 22:56:50', '2025-05-29 22:56:50'),
  634. (27, '合成奖励: 木材制作', 'craft_reward_6', '配方 木材制作 的奖励组', 0, 1, 1, '2025-05-29 22:58:02', '2025-06-20 15:23:07'),
  635. (28, '合成奖励: 高级木材加工', 'craft_reward_7', '配方 高级木材加工 的奖励组', 0, 1, 1, '2025-05-29 22:58:44', '2025-05-29 22:58:44'),
  636. (29, '商店-宠物', 'shop-pet1', '商店宠物', 0, 1, 1, '2025-06-01 11:07:12', '2025-06-01 11:07:12'),
  637. (30, '铜宝箱_奖励组', 'chest_27_reward_1748948617', '宝箱 铜宝箱 的奖励配置', 1, 1, 2, '2025-06-03 19:03:37', '2025-06-25 20:11:11'),
  638. (31, '银宝箱_奖励组', 'chest_28_reward_1748948617', '宝箱 银宝箱 的奖励配置(从旧系统迁移)', 1, 1, 2, '2025-06-03 19:03:37', '2025-06-04 15:38:26'),
  639. (32, '金宝箱_奖励组', 'chest_29_reward_1748948618', '宝箱 金宝箱 的奖励配置(从旧系统迁移)', 1, 1, 2, '2025-06-03 19:03:38', '2025-06-04 16:33:58'),
  640. (33, '钻石宝箱_奖励组', 'chest_30_reward_1748948618', '宝箱 钻石宝箱 的奖励配置(从旧系统迁移)', 1, 1, 2, '2025-06-03 19:03:38', '2025-06-04 17:07:04'),
  641. (34, '神奇宝箱_奖励组', 'chest_32_reward_1748948618', '宝箱 神奇宝箱 的奖励配置(从旧系统迁移)', 1, 1, 2, '2025-06-03 19:03:38', '2025-06-04 16:55:56'),
  642. (35, '商店-宠物口粮奖励', 'shop_fertilizer_reward_copy_1749199223', '购买化 宠物口粮 得的奖励', 0, 1, 1, '2025-06-06 16:40:23', '2025-06-06 16:40:56'),
  643. (36, '宝箱_奖励组*2', 'chest_copy_1749200764', '宝箱 神奇宝箱 的奖励配置(从旧系统迁移)', 0, 1, 2, '2025-06-06 17:06:04', '2025-06-06 17:15:22'),
  644. (37, '宝箱_奖励组*3', 'copy_1749201010', '宝箱 神奇宝箱 的奖励配置(从旧系统迁移)', 0, 1, 2, '2025-06-06 17:10:10', '2025-06-06 17:17:11'),
  645. (38, '合成奖励: 钢材制作', 'craft_1749293310', '配方 钢材制作 的奖励组', 0, 1, 1, '2025-06-07 18:48:30', '2025-06-07 18:51:44'),
  646. (39, '合成奖励: 石材制作', 'craft_1749293412', '配方 石材制作 的奖励组', 0, 1, 1, '2025-06-07 18:50:12', '2025-06-07 18:51:36'),
  647. (40, '合成奖励: 宠物口粮制作', 'craft_1749449202', '配方 宠物口粮制作 的奖励组', 0, 1, 1, '2025-06-09 14:06:42', '2025-06-09 14:07:30'),
  648. (41, '合成奖励: 高级宠物口粮制', 'craft_1749449263', '配方 高级宠物口粮制作 的奖励组', 0, 1, 1, '2025-06-09 14:07:43', '2025-06-09 14:08:06'),
  649. (44, '合成奖励: 皮肤2 的奖励', 'craft_1749468113', '配方 皮肤2 的奖励组', 0, 1, 1, '2025-06-09 19:21:53', '2025-06-09 19:23:18'),
  650. (45, '合成奖励: 皮肤3 的奖励', 'craft_1749468202', '配方 皮肤3 的奖励组', 0, 1, 1, '2025-06-09 19:23:22', '2025-06-09 19:23:37'),
  651. (46, '合成奖励: 皮肤4 的奖励', 'craft_1749468234', '配方 皮肤4 的奖励组', 0, 1, 1, '2025-06-09 19:23:54', '2025-06-09 19:24:15'),
  652. (47, '推广奖励urs-青铜-一代', 'urs-l0-1', NULL, 0, 1, 1, '2025-06-15 09:57:31', '2025-06-15 10:10:41'),
  653. (48, '推广奖励urs-青铜-2代', 'urs-l0-2', NULL, 0, 1, 1, '2025-06-15 10:02:25', '2025-06-15 10:10:41'),
  654. (49, '推广奖励urs-白银-2代', 'urs-l1-2', NULL, 0, 1, 1, '2025-06-15 10:02:51', '2025-06-15 10:10:27'),
  655. (50, '推广奖励urs-白银-1代', 'urs-l1-1', NULL, 0, 1, 1, '2025-06-15 10:04:10', '2025-06-23 14:57:34'),
  656. (51, '推广奖励urs-白银-3代', 'urs-l1-3', NULL, 0, 1, 1, '2025-06-15 10:07:28', '2025-06-15 10:10:11'),
  657. (52, '推广奖励urs-黄金-3代', 'urs-l2-3', NULL, 0, 1, 1, '2025-06-15 10:07:43', '2025-06-15 10:10:11'),
  658. (53, '推广奖励urs-黄金-2代', 'urs-l2-2', NULL, 0, 1, 1, '2025-06-15 10:10:54', '2025-06-15 10:12:17'),
  659. (54, '推广奖励urs-黄金-1代', 'urs-l2-1', NULL, 0, 1, 1, '2025-06-15 10:10:56', '2025-06-15 10:12:17'),
  660. (55, '推广奖励urs-钻石-1代', 'urs-l3-1', NULL, 0, 1, 1, '2025-06-15 10:12:23', '2025-06-15 10:12:43'),
  661. (56, '推广奖励urs-钻石-2代', 'urs-l3-2', NULL, 0, 1, 1, '2025-06-15 10:12:47', '2025-06-15 10:13:33'),
  662. (57, '推广奖励urs-钻石-3代', 'urs-l3-3', NULL, 0, 1, 1, '2025-06-15 10:12:50', '2025-06-15 10:13:33'),
  663. (58, '推广奖励urs-至尊-1代', 'urs-l4-1', NULL, 0, 1, 1, '2025-06-15 10:13:53', '2025-06-15 10:27:36'),
  664. (59, '推广奖励urs-至尊-2代', 'urs-l4-2', NULL, 0, 1, 1, '2025-06-15 10:27:40', '2025-06-15 10:28:08'),
  665. (60, '推广奖励urs-至尊-3代', 'urs-l4-3', NULL, 0, 1, 1, '2025-06-15 10:27:46', '2025-06-15 10:28:18'),
  666. (61, '推广奖励urs-合伙人-1代', 'urs-l5-1', NULL, 0, 1, 1, '2025-06-15 10:29:12', '2025-06-15 10:29:27'),
  667. (62, '推广奖励urs-合伙人-2代', 'urs-l5-2', NULL, 0, 1, 1, '2025-06-15 10:29:31', '2025-06-15 10:52:59'),
  668. (63, '推广奖励urs-合伙人-3代', 'urs-l5-3', NULL, 0, 1, 1, '2025-06-15 10:29:36', '2025-06-15 10:53:17'),
  669. (64, '农场初始化奖励', 'fram_int', '农场 初始化奖励', 0, 1, 1, '2025-06-17 16:33:59', '2025-06-17 16:33:59'),
  670. (66, '神秘种子1各', 'seed_1_1', '商店购买获得种子包', 0, 1, 1, '2025-06-20 13:56:54', '2025-06-20 13:57:16'),
  671. (68, '神秘种子50个', '神秘50', '神秘种子50个', 0, 1, 1, '2025-06-23 15:48:46', '2025-06-23 15:48:46');
  672. -- ==========================================
  673. -- 表: kku_game_reward_group_pity_counts
  674. -- 模型: App\Module\Game\Models\GameRewardGroupPityCount
  675. -- ==========================================
  676. DROP TABLE IF EXISTS `kku_game_reward_group_pity_counts`;
  677. CREATE TABLE `kku_game_reward_group_pity_counts` (
  678. `id` int(11) NOT NULL AUTO_INCREMENT,
  679. `user_id` bigint(20) unsigned NOT NULL COMMENT '用户ID',
  680. `reward_group_id` int(11) NOT NULL COMMENT '奖励组ID',
  681. `reward_item_id` int(11) NOT NULL COMMENT '奖励项ID',
  682. `count` int(11) NOT NULL DEFAULT '0' COMMENT '当前计数',
  683. `pity_threshold` int(11) NOT NULL DEFAULT '0' COMMENT '保底阈值',
  684. `last_attempt_at` timestamp NULL DEFAULT NULL COMMENT '最后尝试时间',
  685. `last_hit_at` timestamp NULL DEFAULT NULL COMMENT '最后命中时间',
  686. `created_at` timestamp NULL DEFAULT NULL,
  687. `updated_at` timestamp NULL DEFAULT NULL,
  688. PRIMARY KEY (`id`) USING BTREE,
  689. UNIQUE KEY `unique_user_reward_item` (`user_id`,`reward_group_id`,`reward_item_id`) USING BTREE,
  690. KEY `idx_user_reward_group` (`user_id`,`reward_group_id`) USING BTREE,
  691. KEY `idx_reward_group_item` (`reward_group_id`,`reward_item_id`) USING BTREE,
  692. KEY `game_reward_group_pity_counts_user_id_foreign` (`user_id`) USING BTREE,
  693. KEY `game_reward_group_pity_counts_reward_group_id_foreign` (`reward_group_id`) USING BTREE,
  694. KEY `game_reward_group_pity_counts_reward_item_id_foreign` (`reward_item_id`) USING BTREE,
  695. CONSTRAINT `game_reward_group_pity_counts_reward_group_id_foreign` FOREIGN KEY (`reward_group_id`) REFERENCES `kku_game_reward_groups` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
  696. CONSTRAINT `game_reward_group_pity_counts_reward_item_id_foreign` FOREIGN KEY (`reward_item_id`) REFERENCES `kku_game_reward_items` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
  697. CONSTRAINT `game_reward_group_pity_counts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `kku_users` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
  698. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
  699. -- 该表无数据记录
  700. -- ==========================================
  701. -- 表: kku_game_reward_items
  702. -- 模型: App\Module\Game\Models\GameRewardItem
  703. -- ==========================================
  704. DROP TABLE IF EXISTS `kku_game_reward_items`;
  705. CREATE TABLE `kku_game_reward_items` (
  706. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  707. `group_id` int(11) NOT NULL COMMENT '奖励组ID,外键关联game_reward_groups表',
  708. `reward_type` tinyint(4) NOT NULL COMMENT '奖励类型(1:物品, 2:货币, 3:宠物经验, 4:宠物体力, 5:其他)',
  709. `target_id` int(11) NOT NULL COMMENT '目标ID(物品ID、货币ID等,根据reward_type解释)',
  710. `param1` int(11) DEFAULT '0' COMMENT '参数1(根据reward_type不同含义,如物品的品质、货币的来源等)',
  711. `param2` int(11) DEFAULT '0' COMMENT '参数2(根据reward_type不同含义,如物品的绑定状态、货币的类型等)',
  712. `quantity` int(11) NOT NULL DEFAULT '1' COMMENT '数量',
  713. `min_quantity` int(11) DEFAULT NULL COMMENT '最小数量(NULL表示使用quantity字段)',
  714. `max_quantity` int(11) DEFAULT NULL COMMENT '最大数量(NULL表示使用quantity字段)',
  715. `weight` decimal(5,2) NOT NULL DEFAULT '1.00' COMMENT '权重(随机发放时使用)',
  716. `probability` decimal(5,2) DEFAULT NULL COMMENT '获得概率(百分比,0-100,NULL表示使用权重机制)',
  717. `is_guaranteed` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否必中(0:非必中, 1:必中)',
  718. `pity_threshold` int(11) NOT NULL DEFAULT '0' COMMENT '保底阈值(0表示不启用保底)',
  719. `pity_weight_factor` decimal(8,4) NOT NULL DEFAULT '1.0000' COMMENT '保底权重因子(递增概率的倍数)',
  720. `pity_enabled` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否启用保底机制',
  721. `extra_data` json DEFAULT NULL COMMENT '额外数据(JSON格式,可存储特定奖励类型的额外参数)',
  722. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  723. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  724. PRIMARY KEY (`id`) USING BTREE,
  725. KEY `idx_group_id` (`group_id`) USING BTREE,
  726. KEY `idx_reward_type` (`reward_type`) USING BTREE,
  727. KEY `idx_probability` (`probability`) USING BTREE,
  728. CONSTRAINT `fk_reward_group` FOREIGN KEY (`group_id`) REFERENCES `kku_game_reward_groups` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
  729. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='奖励项表';
  730. -- 数据插入
  731. INSERT INTO `kku_game_reward_items` (`id`, `group_id`, `reward_type`, `target_id`, `param1`, `param2`, `quantity`, `min_quantity`, `max_quantity`, `weight`, `probability`, `is_guaranteed`, `pity_threshold`, `pity_weight_factor`, `pity_enabled`, `extra_data`, `created_at`, `updated_at`) VALUES
  732. (1, 1, 1, 1, 0, 0, 1, 3, 8, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-05-20 10:41:38', '2025-06-04 17:18:57'),
  733. (2, 2, 1, 1, 0, 0, 1, 0, 0, 1.00, NULL, 0, 0, 1.0000, 0, NULL, '2025-05-20 10:55:22', '2025-06-20 10:26:06'),
  734. (3, 3, 1, 1, 0, 0, 1, 0, 0, 1.00, NULL, 0, 0, 1.0000, 0, NULL, '2025-05-20 10:55:25', '2025-06-20 10:26:06'),
  735. (4, 4, 1, 1, 0, 0, 1, 0, 0, 1.00, NULL, 0, 0, 1.0000, 0, NULL, '2025-05-20 10:55:28', '2025-06-20 10:26:06'),
  736. (5, 5, 1, 23, 0, 0, 4, 4, 4, 2.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-27 16:01:36', '2025-05-29 22:31:27'),
  737. (6, 6, 1, 22, 0, 0, 2, 2, 2, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-27 16:02:08', '2025-05-29 22:31:27'),
  738. (7, 7, 1, 1, 0, 0, 100, 0, 0, 1.00, 0.00, 1, 0, 1.0000, 0, NULL, '2025-05-29 11:10:04', '2025-06-20 10:25:56'),
  739. (9, 7, 5, 2, 0, 0, 500000, 0, 1, 1.00, 0.00, 1, 0, 1.0000, 0, NULL, '2025-05-29 11:10:04', '2025-06-18 10:08:45'),
  740. (10, 8, 1, 3, 0, 0, 5, 5, 5, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-29 11:10:04', '2025-05-29 22:31:27'),
  741. (11, 8, 1, 6, 0, 0, 3, 3, 3, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-29 11:10:04', '2025-05-29 22:31:27'),
  742. (12, 8, 1, 7, 0, 0, 2, 2, 2, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-29 11:10:04', '2025-05-29 22:31:27'),
  743. (13, 9, 5, 1, 0, 0, 200, 200, 200, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-29 11:10:04', '2025-05-29 22:31:27'),
  744. (14, 9, 5, 2, 0, 0, 20, 20, 20, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-29 11:10:04', '2025-05-29 22:31:27'),
  745. (15, 9, 1, 10, 0, 0, 1, 0, 0, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-29 11:10:04', '2025-06-20 10:26:06'),
  746. (16, 10, 1, 4, 0, 0, 3, 3, 3, 0.50, NULL, 0, 0, 1.0000, 0, NULL, '2025-05-29 11:10:04', '2025-05-29 22:31:27'),
  747. (17, 10, 1, 5, 0, 0, 2, 2, 2, 0.30, NULL, 0, 0, 1.0000, 0, NULL, '2025-05-29 11:10:04', '2025-05-29 22:31:27'),
  748. (18, 10, 1, 8, 0, 0, 5, 5, 5, 0.20, NULL, 0, 0, 1.0000, 0, NULL, '2025-05-29 11:10:04', '2025-05-29 22:31:27'),
  749. (19, 10, 5, 1, 0, 0, 100, 100, 100, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-29 11:10:04', '2025-05-29 22:31:27'),
  750. (23, 14, 1, 19, 0, 0, 1, 0, 0, 1.00, NULL, 0, 0, 1.0000, 0, NULL, '2025-05-29 11:17:37', '2025-06-20 10:26:06'),
  751. (36, 16, 1, 28, 0, 0, 1, 0, 0, 0.00, 0.00, 1, 0, 1.0000, 0, NULL, '2025-05-29 16:24:06', '2025-06-20 10:26:06'),
  752. (37, 11, 1, 24, 0, 0, 1, 0, 0, 1.00, 0.00, 1, 0, 1.0000, 0, NULL, '2025-05-29 16:25:16', '2025-06-20 10:22:57'),
  753. (38, 12, 1, 22, 0, 0, 1, 0, 0, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-29 16:26:02', '2025-06-20 10:26:06'),
  754. (39, 13, 1, 23, 0, 0, 1, 0, 0, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-29 16:26:51', '2025-06-20 10:26:06'),
  755. (40, 19, 6, 3, 0, 24, 1, 0, 0, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-29 16:34:17', '2025-06-20 10:26:06'),
  756. (41, 20, 6, 4, 0, 24, 1, 0, 0, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-29 16:53:12', '2025-06-20 10:26:06'),
  757. (42, 21, 6, 2, 0, 0, 1, 0, 0, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-29 16:54:18', '2025-06-20 10:26:06'),
  758. (43, 22, 6, 1, 0, 0, 1, 0, 0, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-05-29 16:55:09', '2025-06-20 10:26:06'),
  759. (44, 23, 1, 40, 1, 1, 1, 0, 0, 1.00, 100.00, 1, 0, 1.0000, 0, NULL, '2025-05-29 22:51:59', '2025-06-20 10:24:17'),
  760. (45, 24, 1, 41, 1, 1, 1, 0, 0, 1.00, 90.00, 0, 0, 1.0000, 0, NULL, '2025-05-29 22:53:26', '2025-06-20 10:24:17'),
  761. (46, 25, 1, 42, 1, 1, 1, 0, 0, 1.00, 100.00, 1, 0, 1.0000, 0, NULL, '2025-05-29 22:55:28', '2025-06-20 10:24:17'),
  762. (47, 26, 1, 43, 2, 3, 2, 0, 0, 1.00, 80.00, 0, 0, 1.0000, 0, NULL, '2025-05-29 22:56:58', '2025-06-20 10:24:17'),
  763. (48, 27, 1, 33, 4, 4, 1, 0, 0, 1.00, 1.00, 1, 0, 1.0000, 0, NULL, '2025-05-29 22:58:10', '2025-06-09 13:59:51'),
  764. (49, 28, 1, 33, 2, 3, 2, 0, 0, 1.00, 0.80, 0, 0, 1.0000, 0, NULL, '2025-05-29 22:58:52', '2025-06-20 10:24:17'),
  765. (50, 29, 7, 1, 0, 0, 1, 0, 0, 1.00, NULL, 1, 0, 1.0000, 0, NULL, '2025-06-01 11:09:36', '2025-06-20 10:24:17'),
  766. (51, 30, 1, 2, 0, 0, 3, 200, 2000, 50.00, 20.00, 0, 0, 1.0000, 0, NULL, '2025-06-03 19:03:37', '2025-06-25 20:12:02'),
  767. (52, 30, 1, 3, 0, 0, 3, 200, 2000, 50.00, 20.00, 0, 0, 1.0000, 0, NULL, '2025-06-03 19:03:37', '2025-06-25 20:12:13'),
  768. (53, 34, 1, 2, 0, 0, 2, 200, 2000, 10.00, 50.00, 0, 0, 1.0000, 0, NULL, '2025-06-03 19:03:38', '2025-06-04 15:04:08'),
  769. (54, 1, 1, 1, 0, 0, 1, 0, 0, 1.00, NULL, 0, 0, 1.0000, 0, NULL, '2025-06-04 15:09:03', '2025-06-20 10:26:07'),
  770. (55, 34, 1, 3, 0, 0, 2, 200, 2000, 10.00, 50.00, 0, 0, 1.0000, 0, NULL, '2025-06-04 15:35:22', '2025-06-04 15:36:53'),
  771. (56, 31, 1, 4, 0, 0, 1, 200, 2000, 1.00, 20.00, 0, 0, 1.0000, 0, NULL, '2025-06-04 16:59:43', '2025-06-26 21:52:02'),
  772. (57, 31, 1, 5, 0, 0, 1, 200, 2000, 1.00, 20.00, 0, 0, 1.0000, 0, NULL, '2025-06-04 16:59:52', '2025-06-26 21:52:11'),
  773. (58, 32, 1, 6, 0, 0, 1, 200, 2000, 1.00, 20.00, 0, 0, 1.0000, 0, NULL, '2025-06-04 17:00:08', '2025-06-26 22:47:51'),
  774. (59, 32, 1, 7, 0, 0, 1, 200, 2000, 1.00, 20.00, 0, 0, 1.0000, 0, NULL, '2025-06-04 17:00:11', '2025-06-26 22:48:02'),
  775. (62, 33, 2, 2, 0, 0, 1, 100, 1000, 1.00, 0.00, 1, 0, 1.0000, 0, NULL, '2025-06-04 17:05:23', '2025-06-25 23:20:29'),
  776. (63, 35, 1, 49, 0, 0, 1, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-06 16:40:23', '2025-06-20 10:26:07'),
  777. (64, 35, 1, 50, 0, 0, 1, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-06 16:41:41', '2025-06-06 16:41:41'),
  778. (65, 35, 1, 51, 0, 0, 1, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-06 16:43:03', '2025-06-06 16:43:03'),
  779. (66, 36, 1, 2, 0, 0, 2, 200, 2000, 10.00, 50.00, 0, 0, 1.0000, 0, NULL, '2025-06-06 17:06:04', '2025-06-06 17:06:04'),
  780. (67, 36, 1, 3, 0, 0, 2, 200, 2000, 10.00, 50.00, 0, 0, 1.0000, 0, NULL, '2025-06-06 17:06:04', '2025-06-06 17:06:04'),
  781. (68, 37, 1, 2, 0, 0, 2, 200, 2000, 10.00, 50.00, 0, 0, 1.0000, 0, NULL, '2025-06-06 17:10:10', '2025-06-06 17:10:10'),
  782. (69, 37, 1, 3, 0, 0, 2, 200, 2000, 10.00, 50.00, 0, 0, 1.0000, 0, NULL, '2025-06-06 17:10:10', '2025-06-06 17:10:10'),
  783. (70, 37, 1, 7, 0, 0, 1, 100, 2000, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-06 17:11:12', '2025-06-06 17:11:12'),
  784. (71, 38, 1, 35, 0, 0, 1, 0, 0, 1.00, 1.00, 1, 0, 1.0000, 0, NULL, '2025-06-07 18:48:30', '2025-06-09 14:01:57'),
  785. (72, 39, 1, 34, 0, 0, 1, 0, 0, 1.00, 1.00, 0, 0, 1.0000, 0, NULL, '2025-06-07 18:50:12', '2025-06-07 18:54:54'),
  786. (73, 40, 1, 49, 0, 0, 1, 0, 0, 1.00, 1.00, 0, 0, 1.0000, 0, NULL, '2025-06-09 14:06:42', '2025-06-09 14:08:24'),
  787. (74, 41, 1, 59, 0, 0, 1, 0, 0, 1.00, 1.00, 0, 0, 1.0000, 0, NULL, '2025-06-09 14:07:43', '2025-06-09 14:09:10'),
  788. (80, 44, 9, 2, 0, 0, 1, 0, 0, 1.00, 0.00, 1, 0, 1.0000, 0, NULL, '2025-06-09 19:31:50', '2025-06-09 19:31:50'),
  789. (81, 45, 9, 3, 0, 0, 1, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-09 19:32:09', '2025-06-09 19:32:09'),
  790. (83, 46, 9, 4, 0, 0, 1, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-09 19:33:18', '2025-06-09 19:33:18'),
  791. (84, 47, 1, 19, 0, 0, 1, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:02:03', '2025-06-15 10:02:03'),
  792. (85, 48, 1, 19, 0, 0, 1, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:02:25', '2025-06-15 10:02:25'),
  793. (86, 49, 1, 19, 0, 0, 1, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:02:51', '2025-06-15 10:02:51'),
  794. (87, 50, 1, 19, 0, 0, 2, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:04:10', '2025-06-23 14:57:45'),
  795. (88, 51, 1, 19, 0, 0, 1, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:07:28', '2025-06-15 10:07:28'),
  796. (89, 52, 1, 19, 0, 0, 1, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:07:43', '2025-06-15 10:07:43'),
  797. (90, 53, 1, 19, 0, 0, 2, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:10:54', '2025-06-23 15:02:49'),
  798. (91, 54, 1, 19, 0, 0, 3, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:10:56', '2025-06-23 15:01:32'),
  799. (92, 55, 1, 19, 0, 0, 4, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:12:23', '2025-06-23 15:05:33'),
  800. (93, 56, 1, 19, 0, 0, 3, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:12:47', '2025-06-23 15:07:16'),
  801. (94, 57, 1, 19, 0, 0, 2, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:12:50', '2025-06-23 15:08:01'),
  802. (95, 58, 1, 19, 0, 0, 5, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:13:53', '2025-06-23 15:10:30'),
  803. (96, 59, 1, 19, 0, 0, 4, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:27:40', '2025-06-23 15:11:06'),
  804. (97, 60, 1, 19, 0, 0, 3, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:27:46', '2025-06-23 15:11:50'),
  805. (98, 61, 1, 19, 0, 0, 6, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:29:12', '2025-06-23 15:13:36'),
  806. (99, 62, 1, 19, 0, 0, 5, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:29:31', '2025-06-23 15:14:11'),
  807. (100, 63, 1, 19, 0, 0, 4, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-15 10:29:36', '2025-06-23 15:14:59'),
  808. (101, 64, 1, 1, 0, 0, 100, 0, 0, 1.00, 0.00, 1, 0, 1.0000, 0, NULL, '2025-06-17 16:34:21', '2025-06-23 15:40:41'),
  809. (102, 7, 1, 19, 0, 0, 100, 0, 0, 1.00, 0.00, 1, 0, 1.0000, 0, NULL, '2025-06-17 20:33:43', '2025-06-17 20:34:11'),
  810. (103, 7, 1, 22, 0, 0, 100, 0, 0, 1.00, 0.00, 1, 0, 1.0000, 0, NULL, '2025-06-17 20:34:09', '2025-06-17 20:35:12'),
  811. (104, 7, 1, 23, 0, 0, 100, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-17 20:34:15', '2025-06-23 15:34:30'),
  812. (105, 7, 1, 24, 0, 0, 100, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-17 20:34:19', '2025-06-23 15:34:31'),
  813. (106, 7, 1, 21, 0, 0, 100, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-17 20:34:21', '2025-06-23 15:34:31'),
  814. (107, 7, 1, 33, 0, 0, 10000, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-17 20:34:23', '2025-06-23 15:34:32'),
  815. (108, 7, 1, 34, 0, 0, 10000, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-17 20:34:32', '2025-06-23 15:34:32'),
  816. (109, 7, 1, 35, 0, 0, 10000, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-17 20:34:34', '2025-06-23 15:34:33'),
  817. (111, 7, 1, 3, 0, 0, 10000, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-19 09:37:58', '2025-06-24 19:19:57'),
  818. (112, 7, 1, 2, 0, 0, 10000, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-19 09:38:07', '2025-06-24 19:19:49'),
  819. (113, 66, 1, 1, 0, 0, 1, 1, 1, 1.00, 0.00, 1, 0, 1.0000, 0, NULL, '2025-06-20 13:56:54', '2025-06-20 13:58:40'),
  820. (116, 7, 1, 4, 0, 0, 10000, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-22 21:00:55', '2025-06-24 19:19:37'),
  821. (117, 7, 1, 5, 0, 0, 10000, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-22 21:01:09', '2025-06-24 19:19:29'),
  822. (118, 7, 1, 6, 0, 0, 10000, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-22 21:01:19', '2025-06-24 19:19:21'),
  823. (119, 7, 1, 7, 0, 0, 10000, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-22 21:01:33', '2025-06-24 19:19:14'),
  824. (121, 64, 1, 24, 0, 0, 20, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-23 15:40:05', '2025-06-23 15:40:05'),
  825. (122, 64, 1, 23, 0, 0, 20, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-23 15:41:16', '2025-06-23 15:41:16'),
  826. (123, 64, 1, 22, 0, 0, 20, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-23 15:43:14', '2025-06-23 15:43:14'),
  827. (124, 68, 1, 1, 0, 0, 50, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-23 15:49:24', '2025-06-23 15:49:24'),
  828. (136, 15, 1, 27, 0, 0, 1, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-25 22:08:28', '2025-06-25 22:08:28'),
  829. (138, 18, 1, 30, 0, 0, 1, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-25 23:03:34', '2025-06-25 23:03:34'),
  830. (140, 17, 1, 29, 0, 0, 1, 0, 0, 1.00, 0.00, 0, 0, 1.0000, 0, NULL, '2025-06-25 23:29:25', '2025-06-25 23:29:25'),
  831. (142, 31, 1, 4, 0, 0, 1, 200, 1000, 1.00, 30.00, 0, 0, 1.0000, 0, NULL, '2025-06-26 21:47:55', '2025-06-26 21:52:31'),
  832. (144, 31, 1, 5, 0, 0, 1, 200, 1000, 1.00, 30.00, 0, 0, 1.0000, 0, NULL, '2025-06-26 21:53:11', '2025-06-26 21:53:11'),
  833. (146, 32, 1, 6, 0, 0, 1, 200, 1000, 1.00, 30.00, 0, 0, 1.0000, 0, NULL, '2025-06-26 22:40:17', '2025-06-26 22:40:17'),
  834. (148, 32, 1, 7, 0, 0, 1, 200, 1000, 1.00, 30.00, 0, 0, 1.0000, 0, NULL, '2025-06-26 22:48:44', '2025-06-26 22:48:44');
  835. -- ==========================================
  836. -- 表: kku_game_tags
  837. -- 模型: App\Module\Game\Models\GameTag
  838. -- ==========================================
  839. DROP TABLE IF EXISTS `kku_game_tags`;
  840. CREATE TABLE `kku_game_tags` (
  841. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  842. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '标签名称',
  843. `code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '标签编码(唯一)',
  844. `color` varchar(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '#007bff' COMMENT '标签颜色(十六进制)',
  845. `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '标签描述',
  846. `sort_order` int(11) NOT NULL DEFAULT '0' COMMENT '排序权重',
  847. `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否激活(0:否, 1:是)',
  848. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  849. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  850. PRIMARY KEY (`id`) USING BTREE,
  851. UNIQUE KEY `idx_code` (`code`) USING BTREE,
  852. KEY `idx_name` (`name`) USING BTREE,
  853. KEY `idx_sort_order` (`sort_order`) USING BTREE,
  854. KEY `idx_is_active` (`is_active`) USING BTREE
  855. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='游戏标签表';
  856. -- 数据插入
  857. INSERT INTO `kku_game_tags` (`id`, `name`, `code`, `color`, `description`, `sort_order`, `is_active`, `created_at`, `updated_at`) VALUES
  858. (1, '新手', 'newbie', '#28a745', '适合新手的配置', 1, 0, '2025-06-01 11:19:45', '2025-06-03 17:13:05'),
  859. (2, '高级', 'advanced', '#dc3545', '高级玩家配置', 2, 1, '2025-06-01 11:19:45', '2025-06-01 11:19:45'),
  860. (3, '活动', 'event', '#ffc107', '活动相关配置', 3, 1, '2025-06-01 11:19:45', '2025-06-01 11:19:45'),
  861. (4, '日常', 'daily', '#17a2b8', '日常任务配置', 4, 1, '2025-06-01 11:19:45', '2025-06-01 11:19:45'),
  862. (5, '特殊', 'special', '#6f42c1', '特殊功能配置', 5, 1, '2025-06-01 11:19:45', '2025-06-01 11:19:45'),
  863. (6, '测试', 'test', '#6c757d', '测试用配置', 6, 1, '2025-06-01 11:19:45', '2025-06-01 11:19:45'),
  864. (7, '商店', 'shop', '#007BFF', NULL, 0, 1, '2025-06-03 17:21:36', '2025-06-03 17:21:36'),
  865. (8, '宝箱', 'box', '#C800FF', NULL, 0, 1, '2025-06-03 17:43:05', '2025-06-03 17:43:05');
  866. -- ==========================================
  867. -- 表: kku_game_tag_relations
  868. -- 模型: App\Module\Game\Models\GameTagRelation
  869. -- ==========================================
  870. DROP TABLE IF EXISTS `kku_game_tag_relations`;
  871. CREATE TABLE `kku_game_tag_relations` (
  872. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  873. `tag_id` bigint(20) unsigned NOT NULL COMMENT '标签ID,外键关联game_tags表',
  874. `taggable_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '关联模型类型(如:reward_group, consume_group, condition_group)',
  875. `taggable_id` bigint(20) unsigned NOT NULL COMMENT '关联模型ID',
  876. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  877. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  878. PRIMARY KEY (`id`) USING BTREE,
  879. UNIQUE KEY `idx_tag_taggable` (`tag_id`,`taggable_type`,`taggable_id`) USING BTREE,
  880. KEY `idx_taggable` (`taggable_type`,`taggable_id`) USING BTREE,
  881. KEY `idx_tag_id` (`tag_id`) USING BTREE,
  882. CONSTRAINT `fk_game_tag_relations_tag_id` FOREIGN KEY (`tag_id`) REFERENCES `kku_game_tags` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
  883. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='游戏标签关联表';
  884. -- 数据插入
  885. INSERT INTO `kku_game_tag_relations` (`id`, `tag_id`, `taggable_type`, `taggable_id`, `created_at`, `updated_at`) VALUES
  886. (1, 8, 'App\\Module\\Game\\Models\\GameConsumeGroup', 31, '2025-06-04 17:09:15', '2025-06-04 17:09:15'),
  887. (2, 8, 'App\\Module\\Game\\Models\\GameConsumeGroup', 37, '2025-06-06 11:20:33', '2025-06-06 11:20:33'),
  888. (3, 8, 'App\\Module\\Game\\Models\\GameConsumeGroup', 38, '2025-06-06 16:00:29', '2025-06-06 16:00:29'),
  889. (4, 7, 'App\\Module\\Game\\Models\\GameRewardGroup', 35, '2025-06-06 16:47:06', '2025-06-06 16:47:06'),
  890. (5, 8, 'App\\Module\\Game\\Models\\GameRewardGroup', 36, '2025-06-06 17:17:01', '2025-06-06 17:17:01'),
  891. (6, 8, 'App\\Module\\Game\\Models\\GameRewardGroup', 37, '2025-06-06 17:17:11', '2025-06-06 17:17:11'),
  892. (7, 8, 'App\\Module\\Game\\Models\\GameRewardGroup', 15, '2025-06-06 17:17:47', '2025-06-06 17:17:47'),
  893. (8, 8, 'App\\Module\\Game\\Models\\GameRewardGroup', 16, '2025-06-06 17:17:54', '2025-06-06 17:17:54'),
  894. (9, 8, 'App\\Module\\Game\\Models\\GameRewardGroup', 17, '2025-06-06 17:17:59', '2025-06-06 17:17:59'),
  895. (10, 8, 'App\\Module\\Game\\Models\\GameRewardGroup', 18, '2025-06-06 17:18:03', '2025-06-06 17:18:03'),
  896. (11, 8, 'App\\Module\\Game\\Models\\GameRewardGroup', 30, '2025-06-06 17:18:07', '2025-06-06 17:18:07'),
  897. (12, 8, 'App\\Module\\Game\\Models\\GameRewardGroup', 31, '2025-06-06 17:18:11', '2025-06-06 17:18:11'),
  898. (13, 8, 'App\\Module\\Game\\Models\\GameRewardGroup', 32, '2025-06-06 17:18:15', '2025-06-06 17:18:15'),
  899. (14, 8, 'App\\Module\\Game\\Models\\GameRewardGroup', 33, '2025-06-06 17:18:22', '2025-06-06 17:18:22'),
  900. (15, 8, 'App\\Module\\Game\\Models\\GameRewardGroup', 34, '2025-06-06 17:18:27', '2025-06-06 17:18:27'),
  901. (16, 3, 'App\\Module\\Game\\Models\\GameRewardGroup', 37, '2025-06-06 17:39:49', '2025-06-06 17:39:49');
  902. -- ==========================================
  903. -- 表: kku_farm_configs
  904. -- 模型: App\Module\Farm\Models\FarmConfig
  905. -- ==========================================
  906. DROP TABLE IF EXISTS `kku_farm_configs`;
  907. CREATE TABLE `kku_farm_configs` (
  908. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  909. `config_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '配置键',
  910. `config_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '配置名称',
  911. `config_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '配置值',
  912. `config_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'string' COMMENT '配置类型:string,integer,float,boolean,json',
  913. `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '配置描述',
  914. `default_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '默认值',
  915. `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用:0否,1是',
  916. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  917. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  918. PRIMARY KEY (`id`) USING BTREE,
  919. UNIQUE KEY `uk_config_key` (`config_key`) USING BTREE,
  920. KEY `idx_is_active` (`is_active`) USING BTREE
  921. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='农场配置表';
  922. -- 数据插入
  923. INSERT INTO `kku_farm_configs` (`id`, `config_key`, `config_name`, `config_value`, `config_type`, `description`, `default_value`, `is_active`, `created_at`, `updated_at`) VALUES
  924. (1, 'farm_init_reward_group_id', '农场初始化奖励组ID', 64, 'integer', '用户首次创建农场时发放的奖励组ID,0表示不发放奖励', 0, 1, '2025-06-16 17:39:01', '2025-06-22 13:12:42');
  925. -- ==========================================
  926. -- 表: kku_farm_shrine_configs
  927. -- 模型: App\Module\Farm\Models\FarmShrineConfig
  928. -- ==========================================
  929. DROP TABLE IF EXISTS `kku_farm_shrine_configs`;
  930. CREATE TABLE `kku_farm_shrine_configs` (
  931. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  932. `buff_type` tinyint(3) unsigned NOT NULL COMMENT '神像类型:1丰收之神,2雨露之神,3屠草之神,4拭虫之神',
  933. `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '神像名称',
  934. `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '神像描述',
  935. `duration_hours` int(10) unsigned NOT NULL DEFAULT '24' COMMENT '默认持续时间(小时)',
  936. `item_id` bigint(20) unsigned NOT NULL COMMENT '对应物品ID',
  937. `display_attributes` json DEFAULT NULL COMMENT '显示属性',
  938. `numeric_attributes` json DEFAULT NULL COMMENT '数值 属性',
  939. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  940. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  941. PRIMARY KEY (`id`) USING BTREE,
  942. UNIQUE KEY `idx_buff_type` (`buff_type`) USING BTREE
  943. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='神像配置表';
  944. -- 数据插入
  945. INSERT INTO `kku_farm_shrine_configs` (`id`, `buff_type`, `name`, `description`, `duration_hours`, `item_id`, `display_attributes`, `numeric_attributes`, `created_at`, `updated_at`) VALUES
  946. (1, 1, '丰收之神', '确保收获时获得最高产量', 24, 3001, '{\"icon\": \"icon/item/7_20_png\", \"badge\": null, \"color\": \"#FFD700\", \"animation\": null, \"background\": null, \"description\": \"激活后,收获作物时将获得最高产量\"}', '{\"effect_bonus\": \"0\", \"cost_reduction\": \"0\", \"duration_bonus\": 0, \"extra_effect_id\": 0, \"cooldown_reduction\": \"0\"}', '2025-05-18 13:50:09', '2025-06-01 17:09:08'),
  947. (2, 2, '雨露之神', '防止干旱灾害', 24, 3002, '{\"icon\": \"icon/item/7_19_png\", \"badge\": null, \"color\": \"#4169E1\", \"animation\": null, \"background\": null, \"description\": \"激活后,土地将不会受到干旱灾害的影响\"}', '{\"effect_bonus\": \"0\", \"cost_reduction\": \"0\", \"duration_bonus\": 0, \"extra_effect_id\": 0, \"cooldown_reduction\": \"0\"}', '2025-05-18 13:50:09', '2025-06-01 17:09:40'),
  948. (3, 3, '弑草之神', '防止杂草灾害', 24, 3003, '{\"icon\": \"icon/item/7_17_png\", \"badge\": null, \"color\": \"#32CD32\", \"animation\": null, \"background\": null, \"description\": \"激活后,土地将不会受到杂草灾害的影响\"}', '{\"effect_bonus\": \"0\", \"cost_reduction\": \"0\", \"duration_bonus\": 0, \"extra_effect_id\": 0, \"cooldown_reduction\": \"0\"}', '2025-05-18 13:50:09', '2025-06-26 20:52:20'),
  949. (4, 4, '屠虫之神', '防止虫害灾害', 24, 3004, '{\"icon\": \"icon/item/7_18_png\", \"badge\": null, \"color\": \"#FF6347\", \"animation\": null, \"background\": null, \"description\": \"激活后,土地将不会受到虫害灾害的影响\"}', '{\"effect_bonus\": \"0\", \"cost_reduction\": \"0\", \"duration_bonus\": 0, \"extra_effect_id\": 0, \"cooldown_reduction\": \"0\"}', '2025-05-18 13:50:09', '2025-06-26 20:51:46');
  950. -- ==========================================
  951. -- 表: kku_farm_house_configs
  952. -- 模型: App\Module\Farm\Models\FarmHouseConfig
  953. -- ==========================================
  954. DROP TABLE IF EXISTS `kku_farm_house_configs`;
  955. CREATE TABLE `kku_farm_house_configs` (
  956. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  957. `level` tinyint(3) unsigned NOT NULL COMMENT '等级',
  958. `output_bonus` decimal(5,2) NOT NULL DEFAULT '0.00' COMMENT '产出加成',
  959. `special_land_limit` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '特殊土地上限',
  960. `upgrade_materials` int(10) unsigned DEFAULT NULL COMMENT '升级所需消耗组ID,关联game_consume_groups表',
  961. `available_lands` int(10) unsigned DEFAULT '1' COMMENT '该等级可用的土地数量',
  962. `downgrade_days` int(10) unsigned DEFAULT NULL COMMENT '降级天数,NULL表示不降级',
  963. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  964. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  965. PRIMARY KEY (`id`) USING BTREE,
  966. UNIQUE KEY `idx_level` (`level`) USING BTREE,
  967. KEY `idx_upgrade_materials` (`upgrade_materials`) USING BTREE
  968. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='房屋等级配置表';
  969. -- 数据插入
  970. INSERT INTO `kku_farm_house_configs` (`id`, `level`, `output_bonus`, `special_land_limit`, `upgrade_materials`, `available_lands`, `downgrade_days`, `created_at`, `updated_at`) VALUES
  971. (13, 1, 0.00, 0, 0, 1, 999, '2025-05-12 07:30:41', '2025-06-21 14:16:58'),
  972. (14, 2, 0.00, 0, 2, 2, 999, '2025-05-12 07:30:42', '2025-06-21 14:17:14'),
  973. (15, 3, 0.00, 0, 48, 3, 999, '2025-05-12 07:30:42', '2025-06-21 14:17:44'),
  974. (16, 4, 0.00, 0, 49, 4, 999, '2025-05-12 07:30:42', '2025-06-21 14:18:18'),
  975. (17, 5, 0.00, 0, 50, 5, 999, '2025-05-12 07:30:42', '2025-06-21 14:18:56'),
  976. (18, 6, 0.00, 2, 51, 6, 999, '2025-05-12 07:30:42', '2025-06-21 14:27:15'),
  977. (19, 7, 0.00, 4, 52, 7, 999, '2025-05-12 07:30:42', '2025-06-21 14:27:07'),
  978. (20, 8, 0.00, 6, 53, 8, 999, '2025-05-12 07:30:43', '2025-06-21 14:26:55'),
  979. (21, 9, 0.00, 8, 54, 9, 999, '2025-05-12 07:30:43', '2025-06-21 14:26:42'),
  980. (22, 10, 0.00, 10, 55, 10, 999, '2025-05-12 07:30:43', '2025-06-21 14:26:32'),
  981. (23, 11, 0.00, 11, 56, 11, 999, '2025-05-12 07:30:43', '2025-06-21 14:26:20'),
  982. (24, 12, 0.00, 12, 57, 12, 999, '2025-05-12 07:30:43', '2025-06-21 14:26:06');
  983. -- ==========================================
  984. -- 表: kku_farm_fruit_growth_cycles
  985. -- 模型: App\Module\Farm\Models\FarmFruitGrowthCycle
  986. -- ==========================================
  987. DROP TABLE IF EXISTS `kku_farm_fruit_growth_cycles`;
  988. CREATE TABLE `kku_farm_fruit_growth_cycles` (
  989. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  990. `fruit_item_id` bigint(20) unsigned NOT NULL COMMENT '果实物品ID',
  991. `sprout_time` int(10) unsigned NOT NULL COMMENT '发芽期时间(秒)',
  992. `growth_time` int(10) unsigned NOT NULL COMMENT '成长期时间(秒)',
  993. `fruit_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '果实期时间(秒)',
  994. `mature_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '成熟期时间(秒,0表示无限)',
  995. `wither_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '枯萎期时间(秒,0表示无限)',
  996. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  997. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  998. PRIMARY KEY (`id`) USING BTREE,
  999. UNIQUE KEY `idx_fruit_item_id` (`fruit_item_id`) USING BTREE,
  1000. KEY `idx_sprout_time` (`sprout_time`) USING BTREE,
  1001. KEY `idx_growth_time` (`growth_time`) USING BTREE,
  1002. KEY `idx_fruit_time` (`fruit_time`) USING BTREE
  1003. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='果实生长周期配置表';
  1004. -- 数据插入
  1005. INSERT INTO `kku_farm_fruit_growth_cycles` (`id`, `fruit_item_id`, `sprout_time`, `growth_time`, `fruit_time`, `mature_time`, `wither_time`, `created_at`, `updated_at`) VALUES
  1006. (1, 2, 10800, 10800, 10800, 0, 0, '2025-05-29 11:32:56', '2025-06-30 15:22:28'),
  1007. (2, 3, 10800, 10800, 10800, 0, 0, '2025-05-29 11:32:56', '2025-06-30 15:22:39'),
  1008. (3, 4, 14400, 14400, 14400, 0, 0, '2025-05-29 11:32:56', '2025-06-30 15:22:15'),
  1009. (4, 5, 14400, 14400, 14400, 0, 0, '2025-05-29 11:32:56', '2025-06-30 15:22:08'),
  1010. (5, 6, 18000, 18000, 18000, 0, 0, '2025-05-29 11:32:56', '2025-06-30 15:21:58'),
  1011. (6, 7, 18000, 18000, 18000, 0, 0, '2025-05-29 11:32:56', '2025-06-30 15:21:27'),
  1012. (7, 8, 18000, 25000, 0, 0, 0, '2025-05-29 11:32:56', '2025-05-29 11:32:56'),
  1013. (8, 9, 18000, 25000, 0, 0, 0, '2025-05-29 11:32:56', '2025-05-29 11:32:56'),
  1014. (9, 10, 18000, 25000, 0, 0, 0, '2025-05-29 11:32:56', '2025-05-29 11:32:56'),
  1015. (10, 11, 21600, 21600, 21600, 0, 0, '2025-05-29 11:32:56', '2025-06-30 15:21:08');
  1016. -- ==========================================
  1017. -- 表: kku_farm_land_types
  1018. -- 模型: App\Module\Farm\Models\FarmLandType
  1019. -- ==========================================
  1020. DROP TABLE IF EXISTS `kku_farm_land_types`;
  1021. CREATE TABLE `kku_farm_land_types` (
  1022. `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT COMMENT '土地类型ID',
  1023. `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '土地类型名称',
  1024. `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '土地类型编码',
  1025. `output_bonus` decimal(5,2) NOT NULL DEFAULT '0.00' COMMENT '产量加成',
  1026. `disaster_resistance` decimal(5,2) NOT NULL DEFAULT '0.00' COMMENT '灾害抵抗',
  1027. `unlock_house_level` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '解锁所需房屋等级',
  1028. `display_attributes` json DEFAULT NULL COMMENT '显示属性配置',
  1029. `is_special` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否为特殊土地',
  1030. `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '描述',
  1031. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1032. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  1033. PRIMARY KEY (`id`) USING BTREE,
  1034. UNIQUE KEY `idx_code` (`code`) USING BTREE
  1035. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='土地类型配置表';
  1036. -- 数据插入
  1037. INSERT INTO `kku_farm_land_types` (`id`, `name`, `code`, `output_bonus`, `disaster_resistance`, `unlock_house_level`, `display_attributes`, `is_special`, `description`, `created_at`, `updated_at`) VALUES
  1038. (1, '普通土地', 1, 0.00, 0.00, 0, '{\"icon\": \"icon/land/land1\", \"badge\": null, \"color\": null, \"animation\": null, \"background\": null}', 0, '普通土地', '2025-05-15 18:26:02', '2025-06-20 14:35:55'),
  1039. (2, '红土地', 2, 0.00, 0.00, 0, '{\"icon\": \"icon/item/8_2_png\", \"badge\": null, \"color\": null, \"animation\": null, \"background\": null}', 0, '红土地', '2025-05-15 18:26:16', '2025-06-20 14:36:01'),
  1040. (3, '黑土地', 3, 0.00, 0.00, 0, '{\"icon\": \"icon/item/8_3_png\", \"badge\": null, \"color\": null, \"animation\": null, \"background\": null}', 0, '黑土地', '2025-05-15 18:26:27', '2025-06-20 14:36:04'),
  1041. (4, '金土地', 4, 0.00, 0.00, 6, '{\"icon\": \"icon/item/8_4_png\", \"badge\": null, \"color\": null, \"animation\": null, \"background\": null}', 1, '金土地', '2025-05-15 18:26:54', '2025-06-24 21:25:29');
  1042. -- ==========================================
  1043. -- 表: kku_farm_land_upgrade_configs
  1044. -- 模型: App\Module\Farm\Models\FarmLandUpgradeConfig
  1045. -- ==========================================
  1046. DROP TABLE IF EXISTS `kku_farm_land_upgrade_configs`;
  1047. CREATE TABLE `kku_farm_land_upgrade_configs` (
  1048. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  1049. `from_type_id` int(10) unsigned NOT NULL COMMENT '起始土地类型ID',
  1050. `to_type_id` int(10) unsigned NOT NULL COMMENT '目标土地类型ID',
  1051. `materials` int(10) unsigned DEFAULT NULL COMMENT '消耗组ID,关联game_consume_groups表',
  1052. `conditions` int(10) unsigned DEFAULT NULL COMMENT '条件组ID,关联game_condition_groups表',
  1053. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  1054. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  1055. PRIMARY KEY (`id`) USING BTREE,
  1056. KEY `idx_from_to_type` (`from_type_id`,`to_type_id`) USING BTREE,
  1057. KEY `idx_materials_group_id` (`materials`) USING BTREE,
  1058. KEY `idx_conditions_group_id` (`conditions`) USING BTREE
  1059. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='土地升级配置';
  1060. -- 数据插入
  1061. INSERT INTO `kku_farm_land_upgrade_configs` (`id`, `from_type_id`, `to_type_id`, `materials`, `conditions`, `created_at`, `updated_at`) VALUES
  1062. (1, 1, 2, 43, 1, '2025-05-20 14:25:02', '2025-06-20 14:12:12'),
  1063. (2, 2, 3, 44, 1, '2025-05-20 14:25:02', '2025-06-20 14:12:40'),
  1064. (3, 3, 4, 45, 1, '2025-05-20 14:25:02', '2025-06-20 14:12:28');
  1065. -- ==========================================
  1066. -- 表: kku_farm_mystery_seed_land_effects
  1067. -- 模型: App\Module\Farm\Models\FarmMysterySeeLandEffect
  1068. -- ==========================================
  1069. DROP TABLE IF EXISTS `kku_farm_mystery_seed_land_effects`;
  1070. CREATE TABLE `kku_farm_mystery_seed_land_effects` (
  1071. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  1072. `seed_id` bigint(20) unsigned NOT NULL COMMENT '种子ID(神秘种子)',
  1073. `land_type_id` tinyint(3) unsigned NOT NULL COMMENT '土地类型ID',
  1074. `output_item_id` bigint(20) unsigned NOT NULL COMMENT '产出物品ID',
  1075. `probability_modifier` decimal(7,4) NOT NULL DEFAULT '0.0000' COMMENT '概率修正值(百分比,可为负数)',
  1076. `probability_override` decimal(7,4) DEFAULT NULL COMMENT '概率覆盖值(百分比,覆盖种子的物品原产出概率,优先级高于修正值)',
  1077. `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用',
  1078. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  1079. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  1080. PRIMARY KEY (`id`) USING BTREE,
  1081. UNIQUE KEY `unique_seed_land_output` (`seed_id`,`land_type_id`,`output_item_id`) USING BTREE,
  1082. KEY `idx_seed_id` (`seed_id`) USING BTREE,
  1083. KEY `idx_land_type_id` (`land_type_id`) USING BTREE,
  1084. KEY `idx_output_item_id` (`output_item_id`) USING BTREE,
  1085. CONSTRAINT `farm_mystery_seed_land_effects_land_type_id_foreign` FOREIGN KEY (`land_type_id`) REFERENCES `kku_farm_land_types` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
  1086. CONSTRAINT `farm_mystery_seed_land_effects_seed_id_foreign` FOREIGN KEY (`seed_id`) REFERENCES `kku_farm_seeds` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
  1087. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='神秘种子土地影响配置表';
  1088. -- 数据插入
  1089. INSERT INTO `kku_farm_mystery_seed_land_effects` (`id`, `seed_id`, `land_type_id`, `output_item_id`, `probability_modifier`, `probability_override`, `is_active`, `created_at`, `updated_at`) VALUES
  1090. (19, 1, 1, 2, 0.0000, 50.0000, 1, '2025-05-27 18:54:50', '2025-06-19 12:21:33'),
  1091. (20, 1, 1, 3, 0.0000, 50.0000, 1, '2025-05-27 18:54:50', '2025-06-19 12:21:40'),
  1092. (21, 1, 1, 4, 0.0000, 0.0000, 1, '2025-05-27 18:54:50', '2025-06-19 12:21:46'),
  1093. (22, 1, 1, 5, 0.0000, 0.0000, 1, '2025-05-27 18:54:50', '2025-06-19 12:22:01'),
  1094. (23, 1, 1, 6, 0.0000, 0.0000, 1, '2025-05-27 18:54:50', '2025-06-19 12:22:04'),
  1095. (24, 1, 1, 7, 0.0000, 0.0000, 1, '2025-05-27 18:54:50', '2025-06-19 12:22:07'),
  1096. (25, 1, 1, 8, 0.0000, 0.0000, 1, '2025-05-27 18:54:50', '2025-06-19 12:22:20'),
  1097. (26, 1, 1, 9, 0.0000, 0.0000, 1, '2025-05-27 18:54:50', '2025-06-19 12:31:04'),
  1098. (27, 1, 1, 10, 0.0000, 0.0000, 1, '2025-05-27 18:54:50', '2025-06-19 12:31:10'),
  1099. (28, 1, 1, 11, 0.0000, 0.0000, 1, '2025-05-27 18:54:50', '2025-06-19 12:22:12'),
  1100. (29, 1, 2, 2, 0.0000, 47.0000, 1, '2025-05-27 18:55:03', '2025-06-20 14:08:48'),
  1101. (30, 1, 2, 3, 0.0000, 47.0000, 1, '2025-05-27 18:55:03', '2025-06-20 14:08:41'),
  1102. (31, 1, 2, 4, 0.0000, 3.0000, 1, '2025-05-27 18:55:03', '2025-06-20 14:08:34'),
  1103. (32, 1, 2, 5, 0.0000, 3.0000, 1, '2025-05-27 18:55:03', '2025-06-20 14:08:23'),
  1104. (33, 1, 2, 6, 0.0000, 0.0000, 1, '2025-05-27 18:55:03', '2025-06-20 14:08:07'),
  1105. (34, 1, 2, 7, 0.0000, 0.0000, 1, '2025-05-27 18:55:03', '2025-06-20 14:07:54'),
  1106. (35, 1, 2, 8, 0.0000, 0.0000, 1, '2025-05-27 18:55:03', '2025-06-20 14:07:40'),
  1107. (36, 1, 2, 9, 0.0000, 0.0000, 1, '2025-05-27 18:55:03', '2025-06-20 14:07:33'),
  1108. (37, 1, 2, 10, 0.0000, 0.0000, 1, '2025-05-27 18:55:03', '2025-06-20 14:07:18'),
  1109. (38, 1, 2, 11, 0.0000, 0.0000, 1, '2025-05-27 18:55:03', '2025-06-20 14:07:01'),
  1110. (39, 1, 3, 2, 0.0000, 8.0000, 1, '2025-05-27 18:55:13', '2025-06-20 14:09:51'),
  1111. (40, 1, 3, 3, 0.0000, 8.0000, 1, '2025-05-27 18:55:13', '2025-06-20 14:10:01'),
  1112. (41, 1, 3, 4, 0.0000, 40.0000, 1, '2025-05-27 18:55:13', '2025-06-20 14:10:16'),
  1113. (42, 1, 3, 5, 0.0000, 40.0000, 1, '2025-05-27 18:55:13', '2025-06-20 14:10:22'),
  1114. (43, 1, 3, 6, 0.0000, 2.0000, 1, '2025-05-27 18:55:13', '2025-06-20 14:10:35'),
  1115. (44, 1, 3, 7, 0.0000, 2.0000, 1, '2025-05-27 18:55:13', '2025-06-20 14:10:40'),
  1116. (45, 1, 3, 8, 0.0000, 0.0000, 1, '2025-05-27 18:55:13', '2025-06-20 14:10:45'),
  1117. (46, 1, 3, 9, 0.0000, 0.0000, 1, '2025-05-27 18:55:13', '2025-06-20 14:10:54'),
  1118. (47, 1, 3, 10, 0.0000, 0.0000, 1, '2025-05-27 18:55:13', '2025-06-20 14:11:20'),
  1119. (48, 1, 3, 11, 0.0000, 0.0000, 1, '2025-05-27 18:55:13', '2025-06-20 14:11:09'),
  1120. (49, 1, 4, 2, 0.0000, 0.0000, 1, '2025-05-27 18:55:26', '2025-06-21 14:04:04'),
  1121. (50, 1, 4, 3, 0.0000, 0.0000, 1, '2025-05-27 18:55:26', '2025-06-21 14:04:20'),
  1122. (51, 1, 4, 4, 0.0000, 40.0000, 1, '2025-05-27 18:55:26', '2025-06-21 14:04:31'),
  1123. (52, 1, 4, 5, 0.0000, 40.0000, 1, '2025-05-27 18:55:26', '2025-06-21 14:04:39'),
  1124. (53, 1, 4, 6, 0.0000, 10.0000, 1, '2025-05-27 18:55:26', '2025-05-27 18:55:26'),
  1125. (54, 1, 4, 7, 0.0000, 10.0000, 1, '2025-05-27 18:55:26', '2025-06-21 14:04:57'),
  1126. (55, 1, 4, 8, 0.0000, 0.0000, 1, '2025-05-27 18:55:26', '2025-06-21 14:05:12'),
  1127. (56, 1, 4, 9, 0.0000, 0.0000, 1, '2025-05-27 18:55:26', '2025-06-21 14:05:22'),
  1128. (57, 1, 4, 10, 0.0000, 0.0000, 1, '2025-05-27 18:55:26', '2025-06-21 14:05:31'),
  1129. (58, 1, 4, 11, 0.0000, 0.0000, 1, '2025-05-27 18:55:26', '2025-06-21 14:05:40');
  1130. -- ==========================================
  1131. -- 表: kku_farm_seeds
  1132. -- 模型: App\Module\Farm\Models\FarmSeed
  1133. -- ==========================================
  1134. DROP TABLE IF EXISTS `kku_farm_seeds`;
  1135. CREATE TABLE `kku_farm_seeds` (
  1136. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  1137. `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '种子名称',
  1138. `type` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '种子类型:1普通,2神秘,3巨化',
  1139. `seed_time` int(10) unsigned NOT NULL COMMENT '种子期时间(秒)',
  1140. `min_output` int(10) unsigned NOT NULL COMMENT '最小产出',
  1141. `max_output` int(10) unsigned NOT NULL COMMENT '最大产出',
  1142. `disaster_min_output` int(10) unsigned NOT NULL DEFAULT '500' COMMENT '有灾害时最小产出',
  1143. `disaster_max_output` int(10) unsigned NOT NULL DEFAULT '2000' COMMENT '有灾害时最大产出',
  1144. `item_id` bigint(20) unsigned NOT NULL COMMENT '对应的物品ID',
  1145. `disaster_resistance` json DEFAULT NULL COMMENT '灾害抵抗',
  1146. `display_attributes` json DEFAULT NULL COMMENT '显示属性',
  1147. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1148. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1149. PRIMARY KEY (`id`) USING BTREE,
  1150. KEY `idx_type` (`type`) USING BTREE,
  1151. KEY `idx_item_id` (`item_id`) USING BTREE
  1152. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='种子配置表';
  1153. -- 数据插入
  1154. INSERT INTO `kku_farm_seeds` (`id`, `name`, `type`, `seed_time`, `min_output`, `max_output`, `disaster_min_output`, `disaster_max_output`, `item_id`, `disaster_resistance`, `display_attributes`, `created_at`, `updated_at`) VALUES
  1155. (1, '神秘种子', 2, 10800, 200, 300, 100, 200, 1, '{\"pest\": \"1\", \"weed\": \"1\", \"drought\": \"1\"}', '{\"icon\": \"1\", \"badge\": \"1\", \"color\": \"1\", \"animation\": \"1\", \"background\": \"1\", \"description\": \"1\"}', '2025-05-12 03:31:59', '2025-06-21 13:54:26'),
  1156. (2, '草莓种子', 3, 1800, 200, 300, 100, 200, 12, '{\"pest\": 1, \"weed\": 1, \"drought\": 1}', '{\"icon\": 1, \"badge\": 1, \"color\": 1, \"animation\": 1, \"background\": 1, \"description\": 1}', '2025-05-12 06:12:45', '2025-06-20 12:51:11'),
  1157. (3, '南⽠种⼦', 3, 1800, 200, 300, 100, 200, 13, '{\"pest\": 1, \"weed\": 1, \"drought\": 1}', '{\"icon\": 1, \"badge\": 1, \"color\": 1, \"animation\": 1, \"background\": 1, \"description\": 1}', '2025-05-12 06:23:03', '2025-06-20 12:51:12'),
  1158. (4, '核桃种⼦', 3, 1800, 200, 300, 100, 200, 14, '{\"pest\": 1, \"weed\": 1, \"drought\": 1}', '{\"icon\": 1, \"badge\": 1, \"color\": 1, \"animation\": 1, \"background\": 1, \"description\": 1}', '2025-05-12 06:43:23', '2025-06-20 12:51:12'),
  1159. (5, '可可种⼦', 3, 1800, 200, 300, 100, 200, 15, '{\"pest\": 1, \"weed\": 1, \"drought\": 1}', '{\"icon\": 1, \"badge\": 1, \"color\": 1, \"animation\": 1, \"background\": 1, \"description\": 1}', '2025-05-12 06:44:47', '2025-06-20 12:51:12'),
  1160. (6, '⼈参种⼦', 3, 1800, 200, 300, 100, 200, 16, '{\"pest\": 1, \"weed\": 1, \"drought\": 1}', '{\"icon\": 1, \"badge\": 1, \"color\": 1, \"animation\": 1, \"background\": 1, \"description\": 1}', '2025-05-12 06:45:19', '2025-06-20 12:51:12'),
  1161. (7, '玫瑰种⼦', 3, 1800, 200, 300, 100, 200, 17, '{\"pest\": 1, \"weed\": 1, \"drought\": 1}', '{\"icon\": 1, \"badge\": 1, \"color\": 1, \"animation\": 1, \"background\": 1, \"description\": 1}', '2025-05-12 06:45:24', '2025-06-20 12:51:12');
  1162. -- ==========================================
  1163. -- 表: kku_farm_seed_outputs
  1164. -- 模型: App\Module\Farm\Models\FarmSeedOutput
  1165. -- ==========================================
  1166. DROP TABLE IF EXISTS `kku_farm_seed_outputs`;
  1167. CREATE TABLE `kku_farm_seed_outputs` (
  1168. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  1169. `seed_id` bigint(20) unsigned NOT NULL COMMENT '种子ID',
  1170. `item_id` bigint(20) unsigned NOT NULL COMMENT '产出物品ID',
  1171. `min_amount` int(10) unsigned NOT NULL COMMENT '最小产出数量',
  1172. `max_amount` int(10) unsigned NOT NULL COMMENT '最大产出数量',
  1173. `disaster_min_amount` int(10) unsigned NOT NULL DEFAULT '500' COMMENT '有灾害时最小产出数量',
  1174. `disaster_max_amount` int(10) unsigned NOT NULL DEFAULT '2000' COMMENT '有灾害时最大产出数量',
  1175. `probability` decimal(7,4) NOT NULL COMMENT '产出概率(0-1)',
  1176. `is_default` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否为默认产出',
  1177. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1178. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1179. PRIMARY KEY (`id`) USING BTREE,
  1180. KEY `idx_seed_id` (`seed_id`) USING BTREE,
  1181. KEY `idx_item_id` (`item_id`) USING BTREE,
  1182. KEY `idx_probability` (`probability`) USING BTREE
  1183. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='种子产出配置表';
  1184. -- 数据插入
  1185. INSERT INTO `kku_farm_seed_outputs` (`id`, `seed_id`, `item_id`, `min_amount`, `max_amount`, `disaster_min_amount`, `disaster_max_amount`, `probability`, `is_default`, `created_at`, `updated_at`) VALUES
  1186. (4, 2, 6, 200, 300, 100, 200, 100.0000, 1, '2025-05-12 05:55:10', '2025-06-20 13:29:48'),
  1187. (5, 3, 7, 200, 300, 100, 200, 100.0000, 1, '2025-05-12 06:55:14', '2025-06-20 13:29:51'),
  1188. (6, 4, 8, 200, 300, 100, 200, 10.0000, 1, '2025-05-12 06:55:20', '2025-06-20 13:29:51'),
  1189. (7, 5, 9, 200, 300, 100, 200, 10.0000, 1, '2025-05-12 06:55:26', '2025-06-20 13:29:51'),
  1190. (8, 6, 10, 200, 300, 100, 200, 10.0000, 1, '2025-05-12 06:55:29', '2025-06-20 13:29:51'),
  1191. (9, 7, 11, 200, 300, 100, 200, 10.0000, 1, '2025-05-12 06:55:31', '2025-06-20 13:29:51'),
  1192. (15, 1, 2, 200, 300, 100, 200, 10.0000, 0, '2025-05-27 18:54:11', '2025-06-20 13:29:51'),
  1193. (16, 1, 3, 200, 300, 100, 200, 10.0000, 0, '2025-05-27 18:54:11', '2025-06-20 14:43:41'),
  1194. (17, 1, 4, 200, 300, 100, 200, 10.0000, 0, '2025-05-27 18:54:11', '2025-06-20 13:29:51'),
  1195. (18, 1, 5, 200, 300, 100, 200, 10.0000, 0, '2025-05-27 18:54:11', '2025-06-20 13:29:51'),
  1196. (19, 1, 6, 200, 300, 100, 200, 10.0000, 0, '2025-05-27 18:54:11', '2025-06-20 13:29:51'),
  1197. (20, 1, 7, 200, 300, 100, 200, 10.0000, 0, '2025-05-27 18:54:11', '2025-06-20 13:29:52'),
  1198. (21, 1, 8, 200, 300, 100, 200, 10.0000, 0, '2025-05-27 18:54:11', '2025-06-20 13:29:52'),
  1199. (22, 1, 9, 200, 300, 100, 200, 10.0000, 0, '2025-05-27 18:54:11', '2025-06-20 13:29:52'),
  1200. (23, 1, 10, 200, 300, 100, 200, 10.0000, 0, '2025-05-27 18:54:11', '2025-06-20 13:29:52'),
  1201. (24, 1, 11, 200, 300, 100, 200, 10.0000, 0, '2025-05-27 18:54:11', '2025-06-20 13:29:52');
  1202. -- ==========================================
  1203. -- 表: kku_farm_shrine_configs
  1204. -- 模型: App\Module\Farm\Models\FarmShrineConfig
  1205. -- ==========================================
  1206. DROP TABLE IF EXISTS `kku_farm_shrine_configs`;
  1207. CREATE TABLE `kku_farm_shrine_configs` (
  1208. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  1209. `buff_type` tinyint(3) unsigned NOT NULL COMMENT '神像类型:1丰收之神,2雨露之神,3屠草之神,4拭虫之神',
  1210. `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '神像名称',
  1211. `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '神像描述',
  1212. `duration_hours` int(10) unsigned NOT NULL DEFAULT '24' COMMENT '默认持续时间(小时)',
  1213. `item_id` bigint(20) unsigned NOT NULL COMMENT '对应物品ID',
  1214. `display_attributes` json DEFAULT NULL COMMENT '显示属性',
  1215. `numeric_attributes` json DEFAULT NULL COMMENT '数值 属性',
  1216. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1217. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1218. PRIMARY KEY (`id`) USING BTREE,
  1219. UNIQUE KEY `idx_buff_type` (`buff_type`) USING BTREE
  1220. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='神像配置表';
  1221. -- 数据插入
  1222. INSERT INTO `kku_farm_shrine_configs` (`id`, `buff_type`, `name`, `description`, `duration_hours`, `item_id`, `display_attributes`, `numeric_attributes`, `created_at`, `updated_at`) VALUES
  1223. (1, 1, '丰收之神', '确保收获时获得最高产量', 24, 3001, '{\"icon\": \"icon/item/7_20_png\", \"badge\": null, \"color\": \"#FFD700\", \"animation\": null, \"background\": null, \"description\": \"激活后,收获作物时将获得最高产量\"}', '{\"effect_bonus\": \"0\", \"cost_reduction\": \"0\", \"duration_bonus\": 0, \"extra_effect_id\": 0, \"cooldown_reduction\": \"0\"}', '2025-05-18 13:50:09', '2025-06-01 17:09:08'),
  1224. (2, 2, '雨露之神', '防止干旱灾害', 24, 3002, '{\"icon\": \"icon/item/7_19_png\", \"badge\": null, \"color\": \"#4169E1\", \"animation\": null, \"background\": null, \"description\": \"激活后,土地将不会受到干旱灾害的影响\"}', '{\"effect_bonus\": \"0\", \"cost_reduction\": \"0\", \"duration_bonus\": 0, \"extra_effect_id\": 0, \"cooldown_reduction\": \"0\"}', '2025-05-18 13:50:09', '2025-06-01 17:09:40'),
  1225. (3, 3, '弑草之神', '防止杂草灾害', 24, 3003, '{\"icon\": \"icon/item/7_17_png\", \"badge\": null, \"color\": \"#32CD32\", \"animation\": null, \"background\": null, \"description\": \"激活后,土地将不会受到杂草灾害的影响\"}', '{\"effect_bonus\": \"0\", \"cost_reduction\": \"0\", \"duration_bonus\": 0, \"extra_effect_id\": 0, \"cooldown_reduction\": \"0\"}', '2025-05-18 13:50:09', '2025-06-26 20:52:20'),
  1226. (4, 4, '屠虫之神', '防止虫害灾害', 24, 3004, '{\"icon\": \"icon/item/7_18_png\", \"badge\": null, \"color\": \"#FF6347\", \"animation\": null, \"background\": null, \"description\": \"激活后,土地将不会受到虫害灾害的影响\"}', '{\"effect_bonus\": \"0\", \"cost_reduction\": \"0\", \"duration_bonus\": 0, \"extra_effect_id\": 0, \"cooldown_reduction\": \"0\"}', '2025-05-18 13:50:09', '2025-06-26 20:51:46');
  1227. -- ==========================================
  1228. -- 表: kku_mex_price_configs
  1229. -- 模型: App\Module\Mex\Models\MexPriceConfig
  1230. -- ==========================================
  1231. DROP TABLE IF EXISTS `kku_mex_price_configs`;
  1232. CREATE TABLE `kku_mex_price_configs` (
  1233. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置ID,主键',
  1234. `item_id` int(11) NOT NULL COMMENT '商品ID,关联物品表',
  1235. `min_price` decimal(15,5) NOT NULL COMMENT '最低价(保底价)',
  1236. `max_price` decimal(15,5) NOT NULL COMMENT '最高价(参考价)',
  1237. `protection_threshold` int(11) NOT NULL DEFAULT '300' COMMENT '数量保护阈值',
  1238. `is_enabled` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用:0禁用,1启用',
  1239. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1240. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1241. PRIMARY KEY (`id`) USING BTREE,
  1242. UNIQUE KEY `uk_item_id` (`item_id`) USING BTREE,
  1243. KEY `idx_is_enabled` (`is_enabled`) USING BTREE,
  1244. KEY `idx_min_price` (`min_price`) USING BTREE,
  1245. KEY `idx_max_price` (`max_price`) USING BTREE
  1246. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='农贸市场价格配置表';
  1247. -- 数据插入
  1248. INSERT INTO `kku_mex_price_configs` (`id`, `item_id`, `min_price`, `max_price`, `protection_threshold`, `is_enabled`, `created_at`, `updated_at`) VALUES
  1249. (1, 2, 0.02500, 0.03500, 1000, 1, '2025-06-12 16:58:14', '2025-06-26 19:21:02'),
  1250. (3, 3, 0.02500, 0.03500, 1000, 1, '2025-06-12 16:58:14', '2025-06-23 15:58:04'),
  1251. (4, 4, 3.50000, 4.00000, 500, 1, '2025-06-12 16:58:14', '2025-06-26 19:41:32'),
  1252. (5, 5, 3.50000, 4.00000, 500, 1, '2025-06-12 16:58:14', '2025-06-26 19:21:30'),
  1253. (6, 6, 25.00000, 30.00000, 300, 1, '2025-06-12 16:58:14', '2025-06-23 16:58:12'),
  1254. (7, 7, 25.00000, 30.00000, 300, 1, '2025-06-12 16:58:14', '2025-06-23 16:58:23');
  1255. -- ==========================================
  1256. -- 表: kku_pet_configs
  1257. -- 模型: App\Module\Pet\Models\PetConfig
  1258. -- ==========================================
  1259. DROP TABLE IF EXISTS `kku_pet_configs`;
  1260. CREATE TABLE `kku_pet_configs` (
  1261. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1262. `pet_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '宠物类型',
  1263. `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '宠物名字',
  1264. `grade_probability` json NOT NULL COMMENT '品阶概率配置',
  1265. `display_attributes` json DEFAULT NULL COMMENT '显示属性配置',
  1266. `numeric_attributes` json DEFAULT NULL COMMENT '数值属性配置',
  1267. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  1268. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  1269. PRIMARY KEY (`id`) USING BTREE,
  1270. UNIQUE KEY `idx_pet_type` (`pet_type`) USING BTREE
  1271. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='宠物 配置';
  1272. -- 数据插入
  1273. INSERT INTO `kku_pet_configs` (`id`, `pet_type`, `name`, `grade_probability`, `display_attributes`, `numeric_attributes`, `created_at`, `updated_at`) VALUES
  1274. (1, '松狮', '松狮', '{\"grade1\": 20, \"grade2\": 20, \"grade3\": 20, \"grade4\": 20, \"grade5\": 20}', NULL, '{\"stamina_recovery\": 0}', '2025-04-29 08:50:19', '2025-05-20 12:19:10');
  1275. -- ==========================================
  1276. -- 表: kku_pet_level_configs
  1277. -- 模型: App\Module\Pet\Models\PetLevelConfig
  1278. -- ==========================================
  1279. DROP TABLE IF EXISTS `kku_pet_level_configs`;
  1280. CREATE TABLE `kku_pet_level_configs` (
  1281. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1282. `pet_id` int(10) unsigned NOT NULL COMMENT '宠物 ID',
  1283. `level` tinyint(3) unsigned NOT NULL COMMENT '等级',
  1284. `exp_required` int(10) unsigned NOT NULL COMMENT '升级所需经验值',
  1285. `skills` json DEFAULT NULL COMMENT '可用技能',
  1286. `display_attributes` json DEFAULT NULL COMMENT '等级显示属性配置',
  1287. `numeric_attributes` json DEFAULT NULL COMMENT '等级数值属性配置',
  1288. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  1289. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  1290. PRIMARY KEY (`id`) USING BTREE,
  1291. UNIQUE KEY `idx_level` (`level`) USING BTREE
  1292. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='宠物 等级配置';
  1293. -- 数据插入
  1294. INSERT INTO `kku_pet_level_configs` (`id`, `pet_id`, `level`, `exp_required`, `skills`, `display_attributes`, `numeric_attributes`, `created_at`, `updated_at`) VALUES
  1295. (1, 1, 1, 0, '[\"1\", \"2\"]', '{\"image\": null}', '{\"base_power\": \"100\", \"stamina_max\": \"100\", \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-05 10:21:44'),
  1296. (2, 1, 2, 100, '[\"1\", \"2\"]', '[]', '{\"stamina_max\": 100, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-04-29 09:31:33'),
  1297. (3, 1, 3, 100, '[\"1\", \"2\"]', '[]', '{\"stamina_max\": 120, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:54'),
  1298. (4, 1, 4, 100, '[\"1\", \"2\"]', '[]', '{\"stamina_max\": 130, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:51'),
  1299. (5, 1, 5, 100, '[\"1\", \"2\"]', '[]', '{\"stamina_max\": 150, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:48'),
  1300. (6, 1, 6, 100, '[\"1\", \"2\", \"3\"]', '[]', '{\"stamina_max\": 160, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:45'),
  1301. (7, 1, 7, 100, '[\"1\", \"2\", \"3\"]', '[]', '{\"stamina_max\": 170, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:42'),
  1302. (8, 1, 8, 100, '[\"1\", \"2\", \"3\"]', '[]', '{\"stamina_max\": 180, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:39'),
  1303. (9, 1, 9, 100, '[\"1\", \"2\", \"3\"]', '[]', '{\"stamina_max\": 200, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:35'),
  1304. (10, 1, 10, 100, '[\"1\", \"2\", \"3\"]', '[]', '{\"stamina_max\": 200, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:32'),
  1305. (11, 1, 11, 100, '[\"1\", \"2\", \"3\", \"4\"]', '[]', '{\"stamina_max\": 200, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:28'),
  1306. (12, 1, 12, 100, '[\"1\", \"2\", \"3\", \"4\"]', '[]', '{\"stamina_max\": 300, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:24'),
  1307. (13, 1, 13, 100, '[\"1\", \"2\", \"3\", \"4\"]', '[]', '{\"stamina_max\": 300, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:21'),
  1308. (14, 1, 14, 100, '[\"1\", \"2\", \"3\", \"4\"]', '[]', '{\"stamina_max\": 400, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:18'),
  1309. (15, 1, 15, 100, '[\"1\", \"2\", \"3\", \"4\"]', '[]', '{\"stamina_max\": 400, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:16'),
  1310. (16, 1, 16, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 400, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:12'),
  1311. (17, 1, 17, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 500, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:09'),
  1312. (18, 1, 18, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 500, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:06'),
  1313. (19, 1, 19, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 500, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:04'),
  1314. (20, 1, 20, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 500, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:33:00'),
  1315. (21, 1, 21, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 600, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:32:57'),
  1316. (22, 1, 22, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 600, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:32:54'),
  1317. (23, 1, 23, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 600, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:32:50'),
  1318. (24, 1, 24, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 700, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:32:47'),
  1319. (25, 1, 25, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 700, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:32:43'),
  1320. (26, 1, 26, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 800, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:32:39'),
  1321. (27, 1, 27, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 800, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:32:36'),
  1322. (28, 1, 28, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 900, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:32:32'),
  1323. (29, 1, 29, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 900, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:32:27'),
  1324. (30, 1, 30, 100, '[\"1\", \"2\", \"3\", \"4\", \"5\"]', '[]', '{\"stamina_max\": 1000, \"stamina_recovery\": 0}', '2025-04-29 09:16:26', '2025-06-06 18:32:22');
  1325. -- ==========================================
  1326. -- 表: kku_pet_skills
  1327. -- 模型: App\Module\Pet\Models\PetSkill
  1328. -- ==========================================
  1329. DROP TABLE IF EXISTS `kku_pet_skills`;
  1330. CREATE TABLE `kku_pet_skills` (
  1331. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1332. `skill_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '技能名称',
  1333. `stamina_cost` smallint(6) NOT NULL COMMENT '体力消耗',
  1334. `cool_down` int(11) DEFAULT NULL COMMENT '冷却时间(秒)',
  1335. `duration_time` int(11) DEFAULT NULL COMMENT '持续时间(秒)',
  1336. `effect_desc` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '效果描述',
  1337. `min_level` tinyint(3) unsigned DEFAULT '1' COMMENT '最低等级要求',
  1338. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  1339. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  1340. PRIMARY KEY (`id`) USING BTREE
  1341. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='技能配置';
  1342. -- 数据插入
  1343. INSERT INTO `kku_pet_skills` (`id`, `skill_name`, `stamina_cost`, `cool_down`, `duration_time`, `effect_desc`, `min_level`, `created_at`, `updated_at`) VALUES
  1344. (1, '自动除草', 10, 0, 72000, NULL, 1, '2025-04-29 07:51:43', '2025-05-27 20:03:19'),
  1345. (2, '自动种植', 10, 0, 72000, NULL, 1, '2025-04-29 07:51:43', '2025-05-27 20:03:23'),
  1346. (3, '自动收获', 10, 0, 7200, NULL, 1, '2025-04-29 07:51:43', '2025-04-29 16:11:33'),
  1347. (4, '自动浇水', 10, 0, 7200, NULL, 1, '2025-04-29 07:51:43', '2025-04-29 16:11:33'),
  1348. (5, '自动杀虫', 10, 0, 7200, NULL, 1, '2025-04-29 07:51:43', '2025-04-29 16:11:33');
  1349. -- ==========================================
  1350. -- 表: kku_urs_promotion_talent_configs
  1351. -- 模型: App\Module\UrsPromotion\Models\UrsTalentConfig
  1352. -- ==========================================
  1353. DROP TABLE IF EXISTS `kku_urs_promotion_talent_configs`;
  1354. CREATE TABLE `kku_urs_promotion_talent_configs` (
  1355. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  1356. `level` tinyint(4) NOT NULL COMMENT '等级:0无,1初级,2中级,3高级,4资深,5顶级',
  1357. `name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '等级名称',
  1358. `direct_count_required` int(11) NOT NULL DEFAULT '0' COMMENT '所需直推人数',
  1359. `promotion_count_required` int(11) NOT NULL DEFAULT '0' COMMENT '所需团队总人数',
  1360. `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '等级图标',
  1361. `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '等级描述',
  1362. `sort_order` int(11) NOT NULL DEFAULT '0' COMMENT '排序权重',
  1363. `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态:1启用,0禁用',
  1364. `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1365. `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1366. `promotion_direct_group` int(11) DEFAULT '0' COMMENT '直推奖励组ID',
  1367. `promotion_indirect_group` int(11) DEFAULT '0' COMMENT '间推奖励组ID',
  1368. `promotion_third_group` int(11) DEFAULT '0' COMMENT '三推奖励组ID',
  1369. `planting_direct_rate` decimal(7,4) DEFAULT '0.0000' COMMENT '直推分成比例',
  1370. `planting_indirect_rate` decimal(7,4) DEFAULT '0.0000' COMMENT '间推分成比例',
  1371. `planting_third_rate` decimal(7,4) DEFAULT '0.0000' COMMENT '三推分成比例',
  1372. `active_direct_required` int(11) NOT NULL DEFAULT '0' COMMENT '直推所需活跃人数',
  1373. `active_count_required` int(11) NOT NULL DEFAULT '0' COMMENT '团队所需活跃人数',
  1374. PRIMARY KEY (`id`) USING BTREE,
  1375. UNIQUE KEY `uk_level` (`level`) USING BTREE,
  1376. KEY `idx_sort_order` (`sort_order`) USING BTREE,
  1377. KEY `idx_status` (`status`) USING BTREE
  1378. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='URS达人等级配置表';
  1379. -- 数据插入
  1380. INSERT INTO `kku_urs_promotion_talent_configs` (`id`, `level`, `name`, `direct_count_required`, `promotion_count_required`, `icon`, `description`, `sort_order`, `status`, `created_at`, `updated_at`, `promotion_direct_group`, `promotion_indirect_group`, `promotion_third_group`, `planting_direct_rate`, `planting_indirect_rate`, `planting_third_rate`, `active_direct_required`, `active_count_required`) VALUES
  1381. (1, 0, '青铜', 0, 0, NULL, '普通用户,无达人等级,无推广收益', 0, 1, '2025-06-15 00:24:14', '2025-06-23 15:00:01', 47, 0, 0, 0.0200, 0.0100, 0.0000, 0, 0),
  1382. (2, 1, '白银', 50, 600, 0, '初级达人,享有基础推广收益:直推5%,间推2%,三推1%', 1, 1, '2025-06-15 00:24:14', '2025-06-23 15:24:04', 50, 49, 0, 0.0300, 0.0200, 0.0100, 50, 0),
  1383. (3, 2, '黄金', 500, 3000, NULL, '中级达人,享有更高推广收益:直推8%,间推4%,三推2%', 2, 1, '2025-06-15 00:24:14', '2025-06-23 15:32:43', 54, 53, 52, 0.0400, 0.0300, 0.0200, 500, 0),
  1384. (4, 3, '钻石', 1500, 9000, NULL, '高级达人,享有优质推广收益:直推12%,间推6%,三推3%', 3, 1, '2025-06-15 00:24:14', '2025-06-23 16:07:59', 55, 56, 57, 0.0800, 0.0600, 0.0400, 1500, 0),
  1385. (5, 4, '至尊', 3000, 18000, NULL, '资深达人,享有专业推广收益:直推15%,间推8%,三推4%', 4, 1, '2025-06-15 00:24:14', '2025-06-23 16:08:32', 58, 59, 60, 0.1000, 0.0800, 0.0600, 3000, 0),
  1386. (6, 5, '合伙人', 5000, 30000, NULL, '顶级达人,享有最高推广收益:直推20%,间推10%,三推5%', 5, 1, '2025-06-15 00:24:14', '2025-06-23 16:08:55', 61, 62, 63, 0.1000, 0.1000, 0.1000, 5000, 0);
  1387. -- ==========================================
  1388. -- 表: kku_urs_promotion_transfer_fee_configs
  1389. -- 模型: App\Module\UrsPromotion\Models\UrsTransferFeeConfig
  1390. -- ==========================================
  1391. DROP TABLE IF EXISTS `kku_urs_promotion_transfer_fee_configs`;
  1392. CREATE TABLE `kku_urs_promotion_transfer_fee_configs` (
  1393. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  1394. `house_level` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '房屋等级(0表示所有等级)',
  1395. `talent_level` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '达人等级(0表示所有等级)',
  1396. `transfer_type` enum('in','out') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'out' COMMENT '转账类型:in转入,out转出',
  1397. `fee_rate` decimal(6,4) NOT NULL DEFAULT '0.0000' COMMENT '手续费率(0-1之间的小数)',
  1398. `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '配置描述',
  1399. `priority` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '优先级(数值越大优先级越高)',
  1400. `status` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '状态:1启用,0禁用',
  1401. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1402. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1403. PRIMARY KEY (`id`) USING BTREE,
  1404. KEY `idx_house_talent_level` (`house_level`,`talent_level`) USING BTREE,
  1405. KEY `idx_status_priority` (`status`,`priority`) USING BTREE,
  1406. KEY `idx_type_house_talent_status` (`transfer_type`,`house_level`,`talent_level`,`status`) USING BTREE
  1407. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='URS推广模块转出手续费配置表';
  1408. -- 数据插入
  1409. INSERT INTO `kku_urs_promotion_transfer_fee_configs` (`id`, `house_level`, `talent_level`, `transfer_type`, `fee_rate`, `description`, `priority`, `status`, `created_at`, `updated_at`) VALUES
  1410. (1, 1, 0, 'out', 0.6000, 0, 1, 1, '2025-06-19 00:21:27', '2025-06-20 14:21:29'),
  1411. (2, 2, 0, 'out', 0.5000, 0, 10, 1, '2025-06-19 00:21:27', '2025-06-20 14:21:29'),
  1412. (21, 3, 0, 'out', 0.4000, 0, 11, 1, '2025-06-19 00:21:27', '2025-06-20 14:32:03'),
  1413. (22, 4, 0, 'out', 0.3000, 0, 12, 1, '2025-06-19 00:21:27', '2025-06-20 14:32:19'),
  1414. (23, 5, 0, 'out', 0.2000, 0, 13, 1, '2025-06-19 00:21:27', '2025-06-20 14:32:31'),
  1415. (24, 6, 0, 'out', 0.1000, 0, 14, 1, '2025-06-19 00:21:27', '2025-06-20 14:32:31'),
  1416. (25, 7, 0, 'out', 0.0800, 0, 15, 1, '2025-06-19 00:21:27', '2025-06-20 14:32:48'),
  1417. (26, 8, 0, 'out', 0.0600, 0, 16, 1, '2025-06-19 00:21:27', '2025-06-20 14:33:13'),
  1418. (27, 9, 0, 'out', 0.0400, 0, 17, 1, '2025-06-19 00:21:27', '2025-06-20 14:33:13'),
  1419. (28, 10, 0, 'out', 0.0200, 0, 18, 1, '2025-06-19 00:21:27', '2025-06-20 14:33:13'),
  1420. (29, 11, 0, 'out', 0.0100, 0, 19, 1, '2025-06-19 00:21:27', '2025-06-20 14:33:13'),
  1421. (30, 12, 0, 'out', 0.0000, 0, 20, 1, '2025-06-19 00:21:27', '2025-06-20 14:32:55');
  1422. -- ==========================================
  1423. -- 表: kku_fund_config
  1424. -- 模型: App\Module\Fund\Models\FundConfigModel
  1425. -- ==========================================
  1426. DROP TABLE IF EXISTS `kku_fund_config`;
  1427. CREATE TABLE `kku_fund_config` (
  1428. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增',
  1429. `name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '资金名字',
  1430. `currency_id` int(11) DEFAULT NULL COMMENT '关联的币种ID,外键关联kku_fund_currency表',
  1431. `type` int(11) DEFAULT NULL COMMENT '账户种类类型,关联FUND_TYPE枚举',
  1432. `display_attributes` json DEFAULT NULL COMMENT '显示属性,如图标、颜色等',
  1433. `create_time` int(11) NOT NULL,
  1434. `update_time` int(11) NOT NULL COMMENT '更新时间',
  1435. PRIMARY KEY (`id`) USING BTREE,
  1436. KEY `idx_currency_id` (`currency_id`) USING BTREE
  1437. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='资金设置';
  1438. -- 数据插入
  1439. INSERT INTO `kku_fund_config` (`id`, `name`, `currency_id`, `type`, `display_attributes`, `create_time`, `update_time`) VALUES
  1440. (1, '金币', 1, 1, '{\"icon\": \"icon/item/coin_1_png\", \"badge\": \"\", \"color\": \"\", \"animation\": \"\", \"background\": \"\", \"description\": \"神秘的交易货币\"}', 1, 1),
  1441. (2, '钻石', 2, 2, '{\"icon\": \"icon/item/999_0_png\", \"badge\": \"\", \"color\": \"\", \"animation\": \"\", \"background\": \"\", \"description\": \"可用来购买商城中的物品,也可兑换背景,升级房屋和土地.\"}', 1, 1),
  1442. (3, '钻石冻结', 2, 3, '{\"icon\": \"icon/item/999_0_png\", \"badge\": \"冻结\", \"color\": \"#ff6b6b\", \"animation\": \"\", \"background\": \"\", \"description\": \"被冻结的钻石资金,冻结期间不可使用\"}', 1749709642, 1749709642);
  1443. -- ==========================================
  1444. -- 表: kku_fund_currency
  1445. -- 模型: App\Module\Fund\Models\FundCurrencyModel
  1446. -- ==========================================
  1447. DROP TABLE IF EXISTS `kku_fund_currency`;
  1448. CREATE TABLE `kku_fund_currency` (
  1449. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增',
  1450. `identification` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '资金标识',
  1451. `type` int(11) DEFAULT NULL COMMENT '币种类型,关联FUND_CURRENCY_TYPE枚举',
  1452. `icon` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '资金标识',
  1453. `name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '资金名字',
  1454. `display_attributes` json DEFAULT NULL COMMENT '显示属性,如图标、颜色等',
  1455. `create_time` int(11) NOT NULL,
  1456. `update_time` int(11) NOT NULL COMMENT '更新时间',
  1457. PRIMARY KEY (`id`) USING BTREE
  1458. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='货币 设置';
  1459. -- 数据插入
  1460. INSERT INTO `kku_fund_currency` (`id`, `identification`, `type`, `icon`, `name`, `display_attributes`, `create_time`, `update_time`) VALUES
  1461. (1, 'GOLD', 1, '', '金币', NULL, 1, 1),
  1462. (2, 'OWG', 2, '', '钻石', NULL, 1, 1),
  1463. (3, 'CNY', 3, '', '余额', NULL, 1, 1),
  1464. (4, 'USD', 4, '', '美元', NULL, 1, 1);
  1465. -- ==========================================
  1466. -- 表: kku_point_config
  1467. -- 模型: App\Module\Point\Models\PointConfigModel
  1468. -- ==========================================
  1469. DROP TABLE IF EXISTS `kku_point_config`;
  1470. CREATE TABLE `kku_point_config` (
  1471. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增',
  1472. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '积分名称',
  1473. `currency_id` int(11) NOT NULL DEFAULT '0' COMMENT '关联的积分类型ID,外键关联kku_point_currency表',
  1474. `type` int(11) NOT NULL DEFAULT '0' COMMENT '积分账户类型,关联POINT_TYPE枚举',
  1475. `display_attributes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '显示属性,如图标、颜色等',
  1476. `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  1477. `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
  1478. PRIMARY KEY (`id`) USING BTREE,
  1479. UNIQUE KEY `uk_type` (`type`) USING BTREE,
  1480. KEY `idx_currency_id` (`currency_id`) USING BTREE,
  1481. KEY `idx_create_time` (`create_time`) USING BTREE
  1482. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='积分配置表';
  1483. -- 数据插入
  1484. INSERT INTO `kku_point_config` (`id`, `name`, `currency_id`, `type`, `display_attributes`, `create_time`, `update_time`) VALUES
  1485. (1, '种植点数', 1, 1, '{\"icon\":\"\\ud83c\\udf31\",\"color\":\"#32CD32\",\"description\":\"\\u7528\\u6237\\u79cd\\u690d\\u6d3b\\u52a8\\u83b7\\u5f97\\u7684\\u70b9\\u6570\\uff0c\\u6bcf\\u79cd\\u4e0b\\u4e00\\u4e2a\\u79cd\\u5b50\\u589e\\u957f1\\u70b9\"}', 1749631386, 1749635668);
  1486. -- ==========================================
  1487. -- 表: kku_point_currency
  1488. -- 模型: App\Module\Point\Models\PointCurrencyModel
  1489. -- ==========================================
  1490. DROP TABLE IF EXISTS `kku_point_currency`;
  1491. CREATE TABLE `kku_point_currency` (
  1492. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增',
  1493. `identification` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '积分标识',
  1494. `type` int(11) NOT NULL DEFAULT '0' COMMENT '积分类型,关联POINT_CURRENCY_TYPE枚举',
  1495. `icon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '积分图标',
  1496. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '积分名称',
  1497. `display_attributes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '显示属性,如图标、颜色等',
  1498. `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  1499. `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
  1500. PRIMARY KEY (`id`) USING BTREE,
  1501. UNIQUE KEY `uk_identification` (`identification`) USING BTREE,
  1502. UNIQUE KEY `uk_type` (`type`) USING BTREE,
  1503. KEY `idx_create_time` (`create_time`) USING BTREE
  1504. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='积分类型表';
  1505. -- 数据插入
  1506. INSERT INTO `kku_point_currency` (`id`, `identification`, `type`, `icon`, `name`, `display_attributes`, `create_time`, `update_time`) VALUES
  1507. (1, 'EXP', 1, '⭐', '经验积分', '{\"icon\":\"\\u2b50\",\"color\":\"#FFD700\",\"description\":\"\\u7528\\u6237\\u901a\\u8fc7\\u5404\\u79cd\\u6d3b\\u52a8\\u548c\\u4efb\\u52a1\\u83b7\\u5f97\\u7684\\u7ecf\\u9a8c\\u79ef\\u5206\"}', 1749631376, 1749635668);
  1508. -- ==========================================
  1509. -- 表: kku_thirdparty_services
  1510. -- 模型: App\Module\ThirdParty\Models\ThirdPartyService
  1511. -- ==========================================
  1512. DROP TABLE IF EXISTS `kku_thirdparty_services`;
  1513. CREATE TABLE `kku_thirdparty_services` (
  1514. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  1515. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '服务名称',
  1516. `code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '服务代码(唯一标识)',
  1517. `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '服务类型',
  1518. `provider` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '服务提供商',
  1519. `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '服务描述',
  1520. `base_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '基础URL',
  1521. `version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'v1' COMMENT 'API版本',
  1522. `auth_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '认证类型',
  1523. `status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'INACTIVE' COMMENT '服务状态',
  1524. `priority` int(11) DEFAULT '0' COMMENT '优先级(数字越小优先级越高)',
  1525. `timeout` int(11) DEFAULT '30' COMMENT '超时时间(秒)',
  1526. `retry_times` int(11) DEFAULT '3' COMMENT '重试次数',
  1527. `retry_delay` int(11) DEFAULT '1000' COMMENT '重试延迟(毫秒)',
  1528. `config` json DEFAULT NULL COMMENT '服务配置信息',
  1529. `headers` json DEFAULT NULL COMMENT '默认请求头',
  1530. `params` json DEFAULT NULL COMMENT '默认参数',
  1531. `webhook_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Webhook回调地址',
  1532. `webhook_secret` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Webhook密钥',
  1533. `health_check_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '健康检查URL',
  1534. `health_check_interval` int(11) DEFAULT '300' COMMENT '健康检查间隔(秒)',
  1535. `last_health_check` timestamp NULL DEFAULT NULL COMMENT '最后健康检查时间',
  1536. `health_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'UNKNOWN' COMMENT '健康状态',
  1537. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1538. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1539. PRIMARY KEY (`id`) USING BTREE,
  1540. UNIQUE KEY `uk_code` (`code`) USING BTREE,
  1541. KEY `idx_type` (`type`) USING BTREE,
  1542. KEY `idx_provider` (`provider`) USING BTREE,
  1543. KEY `idx_status` (`status`) USING BTREE,
  1544. KEY `idx_priority` (`priority`) USING BTREE,
  1545. KEY `idx_created_at` (`created_at`) USING BTREE
  1546. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='第三方服务配置表';
  1547. -- 数据插入
  1548. INSERT INTO `kku_thirdparty_services` (`id`, `name`, `code`, `type`, `provider`, `description`, `base_url`, `version`, `auth_type`, `status`, `priority`, `timeout`, `retry_times`, `retry_delay`, `config`, `headers`, `params`, `webhook_url`, `webhook_secret`, `health_check_url`, `health_check_interval`, `last_health_check`, `health_status`, `created_at`, `updated_at`) VALUES
  1549. (11, 'urs', 'urs', 'SOCIAL', '田', NULL, 'https://api.urausii.top', '/', 'CUSTOM', 'ACTIVE', 0, 30, 3, 1000, '[]', '[]', '[]', NULL, 'Hy0LmLKJSbDQY2oaaZOZKR1XKpFHSY8Y', 'http://test-uraus.wooyo.cc', 300, NULL, 'UNKNOWN', '2025-06-14 19:29:10', '2025-06-24 15:45:25');
  1550. -- ==========================================
  1551. -- 表: kku_thirdparty_credentials
  1552. -- 模型: App\Module\ThirdParty\Models\ThirdPartyCredential
  1553. -- ==========================================
  1554. DROP TABLE IF EXISTS `kku_thirdparty_credentials`;
  1555. CREATE TABLE `kku_thirdparty_credentials` (
  1556. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  1557. `service_id` bigint(20) unsigned NOT NULL COMMENT '服务ID',
  1558. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '凭证名称',
  1559. `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '凭证类型',
  1560. `credentials` json NOT NULL COMMENT '凭证信息(加密存储)',
  1561. `environment` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'production' COMMENT '环境(production/staging/development)',
  1562. `is_active` tinyint(1) DEFAULT '1' COMMENT '是否激活',
  1563. `expires_at` timestamp NULL DEFAULT NULL COMMENT '过期时间',
  1564. `last_used_at` timestamp NULL DEFAULT NULL COMMENT '最后使用时间',
  1565. `usage_count` bigint(20) DEFAULT '0' COMMENT '使用次数',
  1566. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1567. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1568. PRIMARY KEY (`id`) USING BTREE,
  1569. KEY `idx_service_id` (`service_id`) USING BTREE,
  1570. KEY `idx_type` (`type`) USING BTREE,
  1571. KEY `idx_environment` (`environment`) USING BTREE,
  1572. KEY `idx_is_active` (`is_active`) USING BTREE,
  1573. KEY `idx_expires_at` (`expires_at`) USING BTREE,
  1574. CONSTRAINT `fk_credentials_service` FOREIGN KEY (`service_id`) REFERENCES `kku_thirdparty_services` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
  1575. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='认证凭证表';
  1576. -- 数据插入
  1577. INSERT INTO `kku_thirdparty_credentials` (`id`, `service_id`, `name`, `type`, `credentials`, `environment`, `is_active`, `expires_at`, `last_used_at`, `usage_count`, `created_at`, `updated_at`) VALUES
  1578. (2, 11, '测试环境', 'API_KEY', '{\"api_key\": \"Hy0LmLKJSbDQY2oaaZOZKR1XKpFHSY8Y\", \"ecology_id\": \"1\"}', 'testing', 1, NULL, '2025-07-02 19:10:07', 2055, '2025-06-15 12:58:42', '2025-07-02 19:10:07');
  1579. -- ==========================================
  1580. -- 表: kku_thirdparty_quotas
  1581. -- 模型: App\Module\ThirdParty\Models\ThirdPartyQuota
  1582. -- ==========================================
  1583. DROP TABLE IF EXISTS `kku_thirdparty_quotas`;
  1584. CREATE TABLE `kku_thirdparty_quotas` (
  1585. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  1586. `service_id` bigint(20) unsigned NOT NULL COMMENT '服务ID',
  1587. `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '配额类型',
  1588. `limit_value` bigint(20) NOT NULL COMMENT '限制值',
  1589. `used_value` bigint(20) DEFAULT '0' COMMENT '已使用值',
  1590. `reset_at` timestamp NULL DEFAULT NULL COMMENT '重置时间',
  1591. `window_start` timestamp NULL DEFAULT NULL COMMENT '时间窗口开始',
  1592. `window_end` timestamp NULL DEFAULT NULL COMMENT '时间窗口结束',
  1593. `is_active` tinyint(1) DEFAULT '1' COMMENT '是否激活',
  1594. `alert_threshold` decimal(5,2) DEFAULT '80.00' COMMENT '告警阈值(百分比)',
  1595. `is_exceeded` tinyint(1) DEFAULT '0' COMMENT '是否已超限',
  1596. `exceeded_at` timestamp NULL DEFAULT NULL COMMENT '超限时间',
  1597. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1598. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1599. PRIMARY KEY (`id`) USING BTREE,
  1600. UNIQUE KEY `uk_service_type` (`service_id`,`type`) USING BTREE,
  1601. KEY `idx_type` (`type`) USING BTREE,
  1602. KEY `idx_is_active` (`is_active`) USING BTREE,
  1603. KEY `idx_is_exceeded` (`is_exceeded`) USING BTREE,
  1604. KEY `idx_reset_at` (`reset_at`) USING BTREE,
  1605. CONSTRAINT `fk_quotas_service` FOREIGN KEY (`service_id`) REFERENCES `kku_thirdparty_services` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
  1606. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='配额管理表';
  1607. -- 该表无数据记录
  1608. -- ==========================================
  1609. -- 表: kku_transfer_apps
  1610. -- 模型: App\Module\Transfer\Models\TransferApp
  1611. -- ==========================================
  1612. DROP TABLE IF EXISTS `kku_transfer_apps`;
  1613. CREATE TABLE `kku_transfer_apps` (
  1614. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  1615. `keyname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '应用标识符',
  1616. `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '应用显示名称',
  1617. `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '应用描述信息',
  1618. `out_id2` int(11) DEFAULT NULL COMMENT '外部应用ID2-开放接口',
  1619. `out_id3` int(11) DEFAULT NULL COMMENT '外部应用ID3-三方平台ID',
  1620. `currency_id` int(11) NOT NULL COMMENT '货币类型ID',
  1621. `fund_id` int(11) NOT NULL COMMENT '资金账户类型ID',
  1622. `fund_to_uid` int(11) DEFAULT NULL COMMENT '转入目标账户UID',
  1623. `fund_in_uid` int(11) DEFAULT NULL COMMENT '转入来源账户UID',
  1624. `exchange_rate` decimal(10,4) NOT NULL DEFAULT '1.0000' COMMENT '汇率(钱包:业务)',
  1625. `order_callback_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '结果通知API地址(为空则不通知)',
  1626. `order_in_info_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '转入查询API地址(为空则不查询)',
  1627. `order_out_create_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '转出创建API地址(为空则不创建)',
  1628. `order_out_info_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '转出查询API地址(为空则不查询)',
  1629. `is_enabled` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用(1=启用,0=禁用)',
  1630. `allow_transfer_in` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否允许转入(1=允许,0=禁止)',
  1631. `allow_transfer_out` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否允许转出(1=允许,0=禁止)',
  1632. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  1633. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  1634. `deleted_at` timestamp NULL DEFAULT NULL COMMENT '删除时间',
  1635. `fee_in_rate` decimal(5,4) DEFAULT '0.0000' COMMENT '转入手续费率(0.0000-1.0000)',
  1636. `fee_out_rate` decimal(5,4) DEFAULT '0.0000' COMMENT '转出手续费率(0.0000-1.0000)',
  1637. `fee_in_min` decimal(15,4) DEFAULT '0.0000' COMMENT '转入最低手续费',
  1638. `fee_in_max` decimal(15,4) DEFAULT '0.0000' COMMENT '转入最高手续费(0为不限制)',
  1639. `fee_out_min` decimal(15,4) DEFAULT '0.0000' COMMENT '转出最低手续费',
  1640. `fee_out_max` decimal(15,4) DEFAULT '0.0000' COMMENT '转出最高手续费(0为不限制)',
  1641. `fee_account_uid` int(11) DEFAULT '1' COMMENT '手续费收取账户UID',
  1642. PRIMARY KEY (`id`) USING BTREE,
  1643. UNIQUE KEY `uk_keyname` (`keyname`) USING BTREE,
  1644. KEY `idx_currency_id` (`currency_id`) USING BTREE,
  1645. KEY `idx_enabled` (`is_enabled`) USING BTREE,
  1646. KEY `idx_allow_transfer_in` (`allow_transfer_in`) USING BTREE,
  1647. KEY `idx_allow_transfer_out` (`allow_transfer_out`) USING BTREE
  1648. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='划转应用配置表';
  1649. -- 数据插入
  1650. INSERT INTO `kku_transfer_apps` (`id`, `keyname`, `title`, `description`, `out_id2`, `out_id3`, `currency_id`, `fund_id`, `fund_to_uid`, `fund_in_uid`, `exchange_rate`, `order_callback_url`, `order_in_info_url`, `order_out_create_url`, `order_out_info_url`, `is_enabled`, `allow_transfer_in`, `allow_transfer_out`, `created_at`, `updated_at`, `deleted_at`, `fee_in_rate`, `fee_out_rate`, `fee_in_min`, `fee_in_max`, `fee_out_min`, `fee_out_max`, `fee_account_uid`) VALUES
  1651. (2, 'urs', 'urs', 'urs', 1, 11, 2, 2, 15, 16, 100.0000, NULL, NULL, NULL, NULL, 1, 1, 1, '2025-06-18 19:02:12', '2025-06-25 23:11:56', NULL, 0.0000, 0.0100, 0.0000, 0.0000, 0.5000, 10.0000, 10),
  1652. (11, 'URS_TEST', 'URS测试应用', 'URS测试应用描述', NULL, NULL, 1, 1, NULL, NULL, 300.0000, NULL, NULL, NULL, NULL, 1, 1, 1, '2025-06-23 21:04:38', '2025-06-23 21:04:38', NULL, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1);
  1653. -- ==========================================
  1654. -- 表: kku_shop_items
  1655. -- 模型: App\Module\Shop\Models\ShopItem
  1656. -- ==========================================
  1657. DROP TABLE IF EXISTS `kku_shop_items`;
  1658. CREATE TABLE `kku_shop_items` (
  1659. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '商品ID,主键',
  1660. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '商品名称',
  1661. `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '商品描述',
  1662. `category_id` int(10) unsigned NOT NULL COMMENT '分类ID,外键关联kku_shop_categories表',
  1663. `category_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '分类名称(字符串格式,区别于现有分类机制)',
  1664. `consume_group_id` int(10) unsigned DEFAULT NULL COMMENT '消耗组ID,外键关联kku_game_consume_groups表',
  1665. `reward_group_id` int(10) unsigned DEFAULT NULL COMMENT '奖励组ID,外键关联kku_game_reward_groups表',
  1666. `max_single_buy` int(11) NOT NULL DEFAULT '0' COMMENT '单次最大购买数量(0表示无限制)',
  1667. `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否激活(0:否, 1:是)',
  1668. `sort_order` int(11) NOT NULL DEFAULT '0' COMMENT '排序权重',
  1669. `display_attributes` json DEFAULT NULL COMMENT '展示属性,以JSON格式存储键值对,用于界面展示和描述的属性',
  1670. `start_time` timestamp NULL DEFAULT NULL COMMENT '上架时间',
  1671. `end_time` timestamp NULL DEFAULT NULL COMMENT '下架时间',
  1672. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  1673. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  1674. PRIMARY KEY (`id`) USING BTREE,
  1675. KEY `shop_items_category_id_index` (`category_id`) USING BTREE,
  1676. KEY `shop_items_is_active_index` (`is_active`) USING BTREE,
  1677. KEY `shop_items_sort_order_index` (`sort_order`) USING BTREE,
  1678. KEY `shop_items_consume_group_id_index` (`consume_group_id`) USING BTREE,
  1679. KEY `shop_items_reward_group_id_index` (`reward_group_id`) USING BTREE,
  1680. KEY `shop_items_max_single_buy_index` (`max_single_buy`) USING BTREE
  1681. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='商店商品表';
  1682. -- 数据插入
  1683. INSERT INTO `kku_shop_items` (`id`, `name`, `description`, `category_id`, `category_name`, `consume_group_id`, `reward_group_id`, `max_single_buy`, `is_active`, `sort_order`, `display_attributes`, `start_time`, `end_time`, `created_at`, `updated_at`) VALUES
  1684. (1, '测试道具', '包含各种新手必备道具,帮助快速上手游戏', 1, '礼包', 14, 7, 0, 1, 1, '{\"tag\": \"\", \"icon\": \"icon/item/prize\", \"badge\": \"\", \"color\": \"\", \"is_hot\": false, \"is_new\": false, \"quality\": 1, \"background\": \"\", \"is_limited\": false}', NULL, NULL, '2025-05-29 11:08:38', '2025-06-24 17:19:17'),
  1685. (2, '种子礼包', '包含多种高级种子,种植后可获得丰厚收益', 2, '礼包', 14, 8, 0, 0, 2, '{\"tag\": \"\", \"icon\": \"icon/item/prize\", \"badge\": \"\", \"color\": \"\", \"is_hot\": false, \"is_new\": false, \"quality\": 1, \"background\": \"\", \"is_limited\": false}', NULL, NULL, '2025-05-29 11:08:38', '2025-06-20 15:46:43'),
  1686. (3, '资源大礼包', '包含大量游戏资源,快速提升实力', 3, '礼包', 15, 9, 0, 0, 3, '{\"tag\": \"\", \"icon\": \"icon/item/prize\", \"badge\": \"\", \"color\": \"\", \"is_hot\": false, \"is_new\": false, \"quality\": 1, \"background\": \"\", \"is_limited\": false}', NULL, NULL, '2025-05-29 11:08:38', '2025-06-20 15:46:44'),
  1687. (4, '神秘宝箱', '打开后可获得随机奖励,运气好能开出稀有物品', 4, '礼包', 14, 10, 0, 0, 4, '{\"tag\": \"\", \"icon\": \"icon/item/prize\", \"badge\": \"\", \"color\": \"\", \"is_hot\": false, \"is_new\": false, \"quality\": 1, \"background\": \"\", \"is_limited\": false}', NULL, NULL, '2025-05-29 11:08:38', '2025-06-20 15:46:46'),
  1688. (5, '每日特惠包', '每日限购的特惠商品包,性价比超高', 1, '礼包', 13, 7, 0, 0, 5, '{\"tag\": \"\", \"icon\": \"icon/item/prize\", \"badge\": \"\", \"color\": \"\", \"is_hot\": false, \"is_new\": false, \"quality\": 1, \"background\": \"\", \"is_limited\": false}', NULL, NULL, '2025-05-29 11:08:38', '2025-06-20 15:46:47'),
  1689. (6, '洒水壶', '用来浇水', 1, '道具', 16, 11, 0, 1, 1, '{\"tag\": null, \"icon\": \"icon/item/4_10_png\", \"badge\": null, \"color\": null, \"is_hot\": 0, \"is_new\": 0, \"quality\": \"1\", \"background\": null, \"is_limited\": 0}', NULL, NULL, '2025-05-29 11:18:36', '2025-06-03 14:09:47'),
  1690. (7, '除草剂', '清除地里杂草', 1, '道具', 16, 12, 0, 1, 2, '{\"tag\": null, \"icon\": \"icon/item/4_11_png\", \"badge\": null, \"color\": null, \"is_hot\": 0, \"is_new\": 0, \"quality\": \"1\", \"background\": null, \"is_limited\": 0}', NULL, NULL, '2025-05-29 11:18:36', '2025-06-03 14:10:13'),
  1691. (8, '除虫剂', '清除地里害虫', 1, '道具', 16, 13, 0, 1, 3, '{\"tag\": null, \"icon\": \"icon/item/4_12_png\", \"badge\": null, \"color\": null, \"is_hot\": 0, \"is_new\": 0, \"quality\": \"1\", \"background\": null, \"is_limited\": 0}', NULL, NULL, '2025-05-29 11:18:36', '2025-06-03 14:10:45'),
  1692. (9, '化肥', '减少当前阶段农作物3小时生长期', 1, '道具', 17, 14, 0, 1, 4, '{\"tag\": null, \"icon\": \"icon/item/4_unll_png\", \"badge\": null, \"color\": null, \"is_hot\": 0, \"is_new\": 0, \"quality\": \"1\", \"background\": null, \"is_limited\": 0}', NULL, NULL, '2025-05-29 11:18:36', '2025-06-26 20:21:16'),
  1693. (10, '铜宝箱', '用500个萝卜+500个辣椒开启可随机获得200-2000个萝卜或辣椒', 5, '宝箱', 60, 15, 0, 1, 5, '{\"tag\": null, \"icon\": \"icon/item/4_4b_png\", \"badge\": null, \"color\": null, \"is_hot\": 0, \"is_new\": 0, \"quality\": \"1\", \"background\": null, \"is_limited\": 0}', NULL, NULL, '2025-05-29 11:18:36', '2025-06-20 15:50:47'),
  1694. (11, '银宝箱', '用500个苹果+500个西瓜开启可随机获得200-2000个苹果或西瓜', 5, '宝箱', 61, 16, 0, 1, 6, '{\"tag\": null, \"icon\": \"icon/item/4_5b_png\", \"badge\": null, \"color\": null, \"is_hot\": 0, \"is_new\": 0, \"quality\": \"1\", \"background\": null, \"is_limited\": 0}', NULL, NULL, '2025-05-29 11:18:36', '2025-06-20 15:52:20'),
  1695. (12, '金宝箱', '用500个草莓+500个南瓜开启可随机获得200-2000个草莓或南瓜', 5, '宝箱', 62, 17, 0, 1, 7, '{\"tag\": null, \"icon\": \"icon/item/4_6b_png\", \"badge\": null, \"color\": null, \"is_hot\": 0, \"is_new\": 0, \"quality\": \"1\", \"background\": null, \"is_limited\": 0}', NULL, NULL, '2025-05-29 11:18:36', '2025-06-20 15:52:36'),
  1696. (13, '钻石宝箱', '消耗100个苹果+100个西瓜开启可随机获得100-1000个钻石', 5, '宝箱', 63, 18, 0, 1, 8, '{\"tag\": null, \"icon\": \"icon/item/4_7b_png\", \"badge\": null, \"color\": null, \"is_hot\": 0, \"is_new\": 0, \"quality\": \"1\", \"background\": null, \"is_limited\": 0}', NULL, NULL, '2025-05-29 11:18:36', '2025-06-26 00:07:37'),
  1697. (14, '弑草之神x1', '供奉弑草之神,保护所有土地不受蚱蜢危害,有效期24小时', 6, '神器', 22, 19, 1, 1, 9, '{\"tag\": null, \"icon\": \"icon/item/7_17_png\", \"badge\": null, \"color\": null, \"is_hot\": 0, \"is_new\": 0, \"quality\": \"1\", \"background\": null, \"is_limited\": 0}', NULL, NULL, '2025-05-29 11:18:36', '2025-06-26 20:47:38'),
  1698. (15, '屠虫之神x1', '供奉屠虫之神,保护所有土地不受虫害危害,有效期24小时', 6, '神器', 22, 20, 1, 1, 10, '{\"tag\": null, \"icon\": \"icon/item/7_18_png\", \"badge\": null, \"color\": null, \"is_hot\": 0, \"is_new\": 0, \"quality\": \"1\", \"background\": null, \"is_limited\": 0}', NULL, NULL, '2025-05-29 11:18:36', '2025-06-26 20:48:52'),
  1699. (16, '雨露之神x1', '供奉雨露之神,保护所有土地不受干旱危害,有效期24小时', 6, '神器', 22, 21, 1, 1, 11, '{\"tag\": null, \"icon\": \"icon/item/7_19_png\", \"badge\": null, \"color\": null, \"is_hot\": 0, \"is_new\": 0, \"quality\": \"1\", \"background\": null, \"is_limited\": 0}', NULL, NULL, '2025-05-29 11:18:36', '2025-06-03 14:17:36'),
  1700. (17, '丰收之神x1', '供奉丰收之神,保护所有土地的产量奖励最大化,有效期24小时', 6, '神器', 23, 22, 1, 1, 12, '{\"tag\": null, \"icon\": \"icon/item/7_20_png\", \"badge\": null, \"color\": null, \"is_hot\": 0, \"is_new\": 0, \"quality\": \"1\", \"background\": null, \"is_limited\": 0}', NULL, NULL, '2025-05-29 11:18:36', '2025-06-03 14:18:00'),
  1701. (18, '小狗一只', '购买后获得宠物一只', 4, '宠物', 23, 29, 1, 0, 0, '{\"tag\": \"\", \"icon\": \"icon/item/6_8_png\", \"badge\": \"\", \"color\": \"\", \"is_hot\": false, \"is_new\": false, \"quality\": 0, \"background\": \"\", \"is_limited\": false}', NULL, NULL, '2025-06-03 16:31:40', '2025-06-20 15:47:33'),
  1702. (19, '宠物口粮', '宠物口粮三包', 3, '宠物', 22, 35, 0, 0, 0, '{\"tag\": \"\", \"icon\": \"icon/item/6_8_png\", \"badge\": \"\", \"color\": \"\", \"is_hot\": false, \"is_new\": false, \"quality\": 0, \"background\": \"\", \"is_limited\": false}', NULL, NULL, '2025-06-06 16:49:23', '2025-06-22 12:54:05');
  1703. -- ==========================================
  1704. -- 表: kku_shop_categories
  1705. -- 模型: App\Module\Shop\Models\ShopCategory
  1706. -- ==========================================
  1707. DROP TABLE IF EXISTS `kku_shop_categories`;
  1708. CREATE TABLE `kku_shop_categories` (
  1709. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '分类ID,主键',
  1710. `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '分类名称',
  1711. `code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '分类编码(唯一)',
  1712. `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '分类图标',
  1713. `sort_order` int(11) NOT NULL DEFAULT '0' COMMENT '排序权重',
  1714. `parent_id` int(10) unsigned DEFAULT NULL COMMENT '父分类ID(可为空,用于实现分类层级)',
  1715. `is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否激活(0:否, 1:是)',
  1716. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  1717. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  1718. PRIMARY KEY (`id`) USING BTREE,
  1719. UNIQUE KEY `shop_categories_code_unique` (`code`) USING BTREE,
  1720. KEY `shop_categories_parent_id_index` (`parent_id`) USING BTREE
  1721. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='商店分类表';
  1722. -- 数据插入
  1723. INSERT INTO `kku_shop_categories` (`id`, `name`, `code`, `icon`, `sort_order`, `parent_id`, `is_active`, `created_at`, `updated_at`) VALUES
  1724. (1, '道具类', 'items', 'fa-cube', 1, NULL, 1, '2025-05-29 11:08:17', '2025-05-29 11:08:17'),
  1725. (2, '种子类', 'seeds', 'fa-leaf', 2, NULL, 1, '2025-05-29 11:08:17', '2025-05-29 11:08:17'),
  1726. (3, '资源类', 'resources', 'fa-diamond', 3, NULL, 1, '2025-05-29 11:08:17', '2025-05-29 11:08:17'),
  1727. (4, '特殊商品', 'special', 'fa-star', 4, NULL, 1, '2025-05-29 11:08:17', '2025-05-29 11:08:17'),
  1728. (5, '宝箱类', 'chests', 'fa-treasure-chest', 5, NULL, 1, '2025-05-29 11:18:19', '2025-05-29 11:18:19'),
  1729. (6, '神像类', 'artifacts', 'fa-magic', 6, NULL, 1, '2025-05-29 11:18:19', '2025-06-01 09:41:35');
  1730. -- ==========================================
  1731. -- 备份统计
  1732. -- 总表数: 44
  1733. -- 总记录数: 653
  1734. -- 生成完成时间: 2025-07-02 19:25:18
  1735. -- ==========================================