configdb.sql 171 KB

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