1
0
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity GitHub Gitee

创建初始表结构

This commit is contained in:
程序员小墨 2024-06-03 00:29:23 +08:00
commit 2d454b7786
2 changed files with 334 additions and 0 deletions

315
sql/cash_flow_game.sql Normal file
View File

@ -0,0 +1,315 @@
/*
Navicat Premium Dump SQL
Source Server : [only4] 124.220.172.110_3306
Source Server Type : MySQL
Source Server Version : 80034 (8.0.34-0ubuntu0.22.04.1)
Source Host : 124.220.172.110:3306
Source Schema : cash_flow_game
Target Server Type : MySQL
Target Server Version : 80034 (8.0.34-0ubuntu0.22.04.1)
File Encoding : 65001
Date: 03/06/2024 00:28:07
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for game_board
-- ----------------------------
DROP TABLE IF EXISTS `game_board`;
CREATE TABLE `game_board` (
`id` bigint NOT NULL COMMENT '游戏板id',
`game_board_name` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '游戏板描述',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '游戏板信息表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of game_board
-- ----------------------------
-- ----------------------------
-- Table structure for game_board_cell
-- ----------------------------
DROP TABLE IF EXISTS `game_board_cell`;
CREATE TABLE `game_board_cell` (
`id` bigint NOT NULL COMMENT '游戏板格子id',
`ring_type` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '穷人圈/富人圈 POOR/RICH',
`cell_seq` int NULL DEFAULT NULL COMMENT '格子显示顺序',
`cell_id` bigint NULL DEFAULT NULL COMMENT '格子id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '游戏板格子表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of game_board_cell
-- ----------------------------
-- ----------------------------
-- Table structure for game_board_cell_info
-- ----------------------------
DROP TABLE IF EXISTS `game_board_cell_info`;
CREATE TABLE `game_board_cell_info` (
`id` bigint NOT NULL COMMENT '游戏板格子信息id',
`ring_type` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '穷人圈/富人圈 POOR/RICH',
`cell_seq` int NULL DEFAULT NULL COMMENT '格子顺序 (从入口开始 顺时针 由0递增)',
`cell_type` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '格子类型id POOR_CHANCE',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '游戏板格子信息表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of game_board_cell_info
-- ----------------------------
-- ----------------------------
-- Table structure for game_board_cell_type
-- ----------------------------
DROP TABLE IF EXISTS `game_board_cell_type`;
CREATE TABLE `game_board_cell_type` (
`cell_type` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '格子类型 POOR_CHANCE',
`cell_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '格子内显示标题',
`cell_desc` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '格子内显示文字描述',
PRIMARY KEY (`cell_type`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '游戏板格子类型表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of game_board_cell_type
-- ----------------------------
INSERT INTO `game_board_cell_type` VALUES ('POOR_BANK_SETTLEMENT', '银行结算日', '');
INSERT INTO `game_board_cell_type` VALUES ('POOR_CHANCE', '机会', '大买卖/小生意');
INSERT INTO `game_board_cell_type` VALUES ('POOR_CHARITY', '慈善事业', '如果捐赠自己总收入的10%给银行则下面3轮可以选择掷1粒或2粒骰子。');
INSERT INTO `game_board_cell_type` VALUES ('POOR_EXTRA_EXPENDITURE', '额外支出', '');
INSERT INTO `game_board_cell_type` VALUES ('POOR_HAVE_A_BABY', '孩子', '恭喜恭喜你多了个小宝贝孩子支出增加每个玩家最多有3个孩子');
INSERT INTO `game_board_cell_type` VALUES ('POOR_MARKET_SITUATION', '市场风云', '');
INSERT INTO `game_board_cell_type` VALUES ('POOR_UNEMPLOYED', '失业', '向银行支付您的总支出。停赛2轮');
-- ----------------------------
-- Table structure for game_card_chance_info
-- ----------------------------
DROP TABLE IF EXISTS `game_card_chance_info`;
CREATE TABLE `game_card_chance_info` (
`id` bigint NOT NULL COMMENT '游戏卡片id',
`card_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '游戏卡片类型 SMALL_BUSINESS-小生意 BIG_DEAL-大买卖 EXTRA_EXPENDITURE-额外支出 MARKET_SITUATION-市场风云',
`card_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '卡片短号(便于搜索)',
`card_title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '卡片标题',
`card_desc` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '卡片描述',
`card_subtype` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '该卡片类型下的子类型 DWELLING-住宅(小生意/大买卖) SHOP-店铺(小生意/大买卖) CORPORATE-公司(小生意/大买卖) FRANCHISEE-加盟(小生意/大买卖) PARTNER-合伙人(大买卖) STOCK-股票(小生意) FUND-基金(小生意) INSURANCE-保险(小生意) COMMEMORATIVE_COIN-纪念币(小生意) PRECIOUS_METAL-贵金属(小生意) LUCK_DECIDES-点数决定(小生意/大买卖) STOCK_DIVIDEND-上市公司送股(小生意) STOCK_ALLOC-上市公司配股(小生意) BANK_DEPOSIT-银行存单(大买卖) WE_MEDIA_ACCOUNT-自媒体账号(大买卖)',
`chance_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '机会卡片-股票代码(小生意)/基金代码(小生意)/存单认购代码(大买卖)',
`chance_cost` decimal(10, 0) NULL DEFAULT NULL COMMENT '机会卡片-成本',
`chance_mortgage_loan` decimal(10, 0) NULL DEFAULT NULL COMMENT '机会卡片-抵押贷款',
`chance_down_payment` decimal(10, 0) NULL DEFAULT NULL COMMENT '机会卡片-首期支付',
`chance_cash_flow` decimal(10, 0) NULL DEFAULT NULL COMMENT '机会卡片-现金流',
`chance_return_on_investment` decimal(10, 2) NULL DEFAULT NULL COMMENT '机会卡片-投资收益率',
`chance_price_today` decimal(10, 2) NULL DEFAULT NULL COMMENT '机会卡片-今日价格',
`chance_price_range_lowest` decimal(10, 2) NULL DEFAULT NULL COMMENT '机会卡片-价格范围-最低',
`chance_price_range_highest` decimal(10, 2) NULL DEFAULT NULL COMMENT '机会卡片-价格范围-最高',
`chance_stock_delivery_multiple` decimal(10, 2) NULL DEFAULT NULL COMMENT '机会卡片-上市公司送股-倍数/上市公司配股-倍数',
`chance_stock_delivery_price` decimal(10, 2) NULL DEFAULT NULL COMMENT '机会卡片-上市公司配股-配股价格',
`chance_dwelling_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '机会卡片-住宅类型 1室1厅 2室1厅 3室1厅 3室2厅 4室2厅 8室民宿 4室叠拼别墅',
`chance_purchaser` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '机会卡片-购买人 SELF-仅自己可以购买 ALL-所有人都可以购买',
`chance_seller` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '机会卡片-出售人 SELF-仅自己可以购买 ALL-所有人都可以出售',
`chance_can_be_resold` tinyint NULL DEFAULT NULL COMMENT '机会卡片-是否可以转卖给其他玩家',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '游戏卡片表-机会卡' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of game_card_chance_info
-- ----------------------------
INSERT INTO `game_card_chance_info` VALUES (1, 'BIG_DEAL', NULL, '2室1厅住宅待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (2, 'BIG_DEAL', NULL, '3室1厅住宅待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (3, 'BIG_DEAL', NULL, '3室2厅住宅待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (4, 'BIG_DEAL', NULL, '3室2厅住宅待售一线城市', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (5, 'BIG_DEAL', NULL, '4室2厅住宅待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (6, 'BIG_DEAL', NULL, '4室叠拼别墅待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (7, 'BIG_DEAL', NULL, '公司1——游戏开发公司待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (8, 'BIG_DEAL', NULL, '公司2——网购平台企业待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (9, 'BIG_DEAL', NULL, '公司3——半自动化企业待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (10, 'BIG_DEAL', NULL, '公司4——开办小规模广告公司', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (11, 'BIG_DEAL', NULL, '公司5——短视频主播孵化公司', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (12, 'BIG_DEAL', NULL, '公司6——自动化企业待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (13, 'BIG_DEAL', NULL, '公司7——自动化企业待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (14, 'BIG_DEAL', NULL, '公司8——影视公司待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (15, 'BIG_DEAL', NULL, '加盟2——奶茶店', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (16, 'BIG_DEAL', NULL, '加盟3——火锅店', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (17, 'BIG_DEAL', NULL, '加盟4——培训机构', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (18, 'BIG_DEAL', NULL, '加盟5——宠物超市', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (19, 'BIG_DEAL', NULL, '加盟6——潮玩体验店', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (20, 'BIG_DEAL', NULL, '加盟7——工作服洗涤店', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (21, 'BIG_DEAL', NULL, '合伙人1——水产养殖', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (22, 'BIG_DEAL', NULL, '合伙人2——甜品店', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (23, 'BIG_DEAL', NULL, '合伙人3——餐饮店', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (24, 'BIG_DEAL', NULL, '合伙人4——旅游公司', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (25, 'BIG_DEAL', NULL, '合伙人5——互联网营销公司', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (26, 'BIG_DEAL', NULL, '小说版权待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (27, 'BIG_DEAL', NULL, '店铺10——萌宠乐园', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (28, 'BIG_DEAL', NULL, '店铺11——大盘鸡店', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (29, 'BIG_DEAL', NULL, '店铺12——私家修车行待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (30, 'BIG_DEAL', NULL, '店铺13——药店转让', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (31, 'BIG_DEAL', NULL, '店铺14——潮鞋洗护店待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (32, 'BIG_DEAL', NULL, '店铺15——快递驿站转让', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (33, 'BIG_DEAL', NULL, '店铺16——自营眼镜店', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (34, 'BIG_DEAL', NULL, '店铺17——小型超市待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (35, 'BIG_DEAL', NULL, '店铺18——奶茶专卖店待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (36, 'BIG_DEAL', NULL, '店铺8——口腔门诊待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (37, 'BIG_DEAL', NULL, '店铺9——古风汉服馆待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (38, 'BIG_DEAL', NULL, '清水湖畔亲子度假酒店待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (39, 'BIG_DEAL', NULL, '滩涂变仓库', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (40, 'BIG_DEAL', NULL, '网红城市8室民宿待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (41, 'BIG_DEAL', NULL, '自媒体账号待售', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (42, 'BIG_DEAL', NULL, '银行存单', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (43, 'SMALL_BUSINESS', NULL, '1室1厅住宅待售_1', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (44, 'SMALL_BUSINESS', NULL, '1室1厅住宅待售_2', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (45, 'SMALL_BUSINESS', NULL, '2室1厅住宅待售_2', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (46, 'SMALL_BUSINESS', NULL, '5亩耕地土地承包经营权转让', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (47, 'SMALL_BUSINESS', NULL, '上市公司送股', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (48, 'SMALL_BUSINESS', NULL, '上市公司配股', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (49, 'SMALL_BUSINESS', NULL, '你发现了一宗大买卖_1', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (50, 'SMALL_BUSINESS', NULL, '你发现了一宗大买卖_2', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (51, 'SMALL_BUSINESS', NULL, '养老保险', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (52, 'SMALL_BUSINESS', NULL, '写字楼水果配送', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (53, 'SMALL_BUSINESS', NULL, '加盟1——品牌麻辣烫', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (54, 'SMALL_BUSINESS', NULL, '商场格子铺', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (55, 'SMALL_BUSINESS', NULL, '商超附近开店', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (56, 'SMALL_BUSINESS', NULL, '基金——CQKS股票基金_1', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (57, 'SMALL_BUSINESS', NULL, '基金——CQKS股票基金_2', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (58, 'SMALL_BUSINESS', NULL, '基金——CQKS股票基金_3', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (59, 'SMALL_BUSINESS', NULL, '基金——CQKS股票基金_4', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (60, 'SMALL_BUSINESS', NULL, '基金——CQKS股票基金_5', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (61, 'SMALL_BUSINESS', NULL, '基金——CQKS股票基金_6', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (62, 'SMALL_BUSINESS', NULL, '失业保险', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (63, 'SMALL_BUSINESS', NULL, '家庭财产保险', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (64, 'SMALL_BUSINESS', NULL, '家政服务公司', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (65, 'SMALL_BUSINESS', NULL, '帮表弟租房子', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (66, 'SMALL_BUSINESS', NULL, '店铺1——CBD商铺', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (67, 'SMALL_BUSINESS', NULL, '店铺2——母婴店转卖', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (68, 'SMALL_BUSINESS', NULL, '店铺3——宠物托管店', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (69, 'SMALL_BUSINESS', NULL, '店铺4——青年旅社', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (70, 'SMALL_BUSINESS', NULL, '店铺5——瑜伽馆', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (71, 'SMALL_BUSINESS', NULL, '店铺6——美容店', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (72, 'SMALL_BUSINESS', NULL, '店铺7——早餐大排档', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (73, 'SMALL_BUSINESS', NULL, '投资电影', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (74, 'SMALL_BUSINESS', NULL, '投身短视频博主', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (75, 'SMALL_BUSINESS', NULL, '汽车保险', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (76, 'SMALL_BUSINESS', NULL, '现金流游戏银行家', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (77, 'SMALL_BUSINESS', NULL, '知识付费课程', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (78, 'SMALL_BUSINESS', NULL, '股票——R16软件公司_1', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (79, 'SMALL_BUSINESS', NULL, '股票——R16软件公司_2', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (80, 'SMALL_BUSINESS', NULL, '股票——R16软件公司_3', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (81, 'SMALL_BUSINESS', NULL, '股票——R16软件公司_4', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (82, 'SMALL_BUSINESS', NULL, '股票——R16软件公司_5', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (83, 'SMALL_BUSINESS', NULL, '股票——R16软件公司_6', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (84, 'SMALL_BUSINESS', NULL, '股票——R16软件公司_7', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (85, 'SMALL_BUSINESS', NULL, '股票——R16软件公司_8', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (86, 'SMALL_BUSINESS', NULL, '股票——Y25医药公司_1', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (87, 'SMALL_BUSINESS', NULL, '股票——Y25医药公司_2', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (88, 'SMALL_BUSINESS', NULL, '股票——Y25医药公司_3', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (89, 'SMALL_BUSINESS', NULL, '股票——Y25医药公司_4', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (90, 'SMALL_BUSINESS', NULL, '股票——Y25医药公司_5', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (91, 'SMALL_BUSINESS', NULL, '股票——Y25医药公司_6', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (92, 'SMALL_BUSINESS', NULL, '股票——Y25医药公司_7', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (93, 'SMALL_BUSINESS', NULL, '股票——Z88珠宝公司_1', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (94, 'SMALL_BUSINESS', NULL, '股票——Z88珠宝公司_2', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (95, 'SMALL_BUSINESS', NULL, '股票——Z88珠宝公司_3', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (96, 'SMALL_BUSINESS', NULL, '股票——Z88珠宝公司_4', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (97, 'SMALL_BUSINESS', NULL, '股票——Z88珠宝公司_5', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (98, 'SMALL_BUSINESS', NULL, '股票——Z88珠宝公司_6', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (99, 'SMALL_BUSINESS', NULL, '股票——Z88珠宝公司_7', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (100, 'SMALL_BUSINESS', NULL, '股票——Z88珠宝公司_8', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (101, 'SMALL_BUSINESS', NULL, '贵金属——白银', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (102, 'SMALL_BUSINESS', NULL, '贵金属——黄金', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (103, 'SMALL_BUSINESS', NULL, '贵金属纪念币', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (104, 'SMALL_BUSINESS', NULL, '重疾医疗险_1', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `game_card_chance_info` VALUES (105, 'SMALL_BUSINESS', NULL, '重疾医疗险_2', '【待完善】', '【待完善】', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-- ----------------------------
-- Table structure for game_card_extra_expenditure_info
-- ----------------------------
DROP TABLE IF EXISTS `game_card_extra_expenditure_info`;
CREATE TABLE `game_card_extra_expenditure_info` (
`id` bigint NOT NULL COMMENT '游戏卡片id',
`card_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '卡片短号(便于搜索)',
`card_title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '卡片标题',
`card_desc` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '卡片描述',
`cost_precondition` decimal(10, 2) NULL DEFAULT NULL COMMENT '额外支出卡片-前置条件 (有孩子/有商铺/...)',
`cost_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '额外支出卡片-支付金额',
`cost_type` decimal(10, 2) NULL DEFAULT NULL COMMENT '额外支出卡片-支付类型 就医/孩子支出/生活用品/...',
`cost_payee` decimal(10, 2) NULL DEFAULT NULL COMMENT '额外支出卡片-支付对象 (用于判断是支付给银行家还是其他玩家)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '游戏卡片表-额外支出卡' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of game_card_extra_expenditure_info
-- ----------------------------
-- ----------------------------
-- Table structure for game_cash_info
-- ----------------------------
DROP TABLE IF EXISTS `game_cash_info`;
CREATE TABLE `game_cash_info` (
`id` bigint NOT NULL COMMENT '主键id',
`monetary_color` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '货币颜色',
`monetary_value` decimal(10, 2) NULL DEFAULT NULL COMMENT '货币数额id',
`monetary_count` int NULL DEFAULT NULL COMMENT '货币数量',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '游戏货币表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of game_cash_info
-- ----------------------------
INSERT INTO `game_cash_info` VALUES (1, '#990000', 10.00, 40);
INSERT INTO `game_cash_info` VALUES (2, '#afffad', 20.00, 40);
INSERT INTO `game_cash_info` VALUES (3, '#ffc0cb', 50.00, 40);
INSERT INTO `game_cash_info` VALUES (4, '#ffffff', 100.00, 80);
INSERT INTO `game_cash_info` VALUES (5, '#e89508', 500.00, 40);
INSERT INTO `game_cash_info` VALUES (6, '#fbf088', 1000.00, 40);
INSERT INTO `game_cash_info` VALUES (7, '#8ddef8', 5000.00, 40);
INSERT INTO `game_cash_info` VALUES (8, '#ff7200', 10000.00, 40);
INSERT INTO `game_cash_info` VALUES (9, '#09a009', 100000.00, 40);
INSERT INTO `game_cash_info` VALUES (10, '#b1f0a7', 500000.00, 40);
INSERT INTO `game_cash_info` VALUES (11, '#ffef00', 1000000.00, 40);
-- ----------------------------
-- Table structure for game_session
-- ----------------------------
DROP TABLE IF EXISTS `game_session`;
CREATE TABLE `game_session` (
`id` bigint NOT NULL COMMENT '主键id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '游戏场次信息表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of game_session
-- ----------------------------
-- ----------------------------
-- Table structure for player_cash
-- ----------------------------
DROP TABLE IF EXISTS `player_cash`;
CREATE TABLE `player_cash` (
`id` bigint NOT NULL COMMENT '主键id',
`game_session_id` bigint NULL DEFAULT NULL COMMENT '游戏场次id',
`game_cash_info_id` bigint NULL DEFAULT NULL COMMENT '游戏金钱id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '玩家现金表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of player_cash
-- ----------------------------
-- ----------------------------
-- Table structure for player_info
-- ----------------------------
DROP TABLE IF EXISTS `player_info`;
CREATE TABLE `player_info` (
`id` bigint NOT NULL COMMENT '主键id',
`game_session_id` bigint NULL DEFAULT NULL COMMENT '游戏场次id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '玩家信息表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of player_info
-- ----------------------------
SET FOREIGN_KEY_CHECKS = 1;

19
其他考虑.txt Normal file
View File

@ -0,0 +1,19 @@
接下来几轮如何操作(比如失业保险、接下来几轮用户可以投几个骰子)
头一个骰子 点数大于等于 小于等于 xxx
场次记录表 (记录接下来几轮应该做什么附加操作)
cell月现金流、所有都匹配
时机:之前、之后
接下来五个轮回不允许卖房
接下来5个月现金流量日xxx
任何玩家抽到的相关额外支出给你
额外支出
额外支出类型(用于判断那些额外支出给对应的玩家)