/*
 Navicat Premium Dump SQL

 Source Server         : lenghui
 Source Server Type    : MySQL
 Source Server Version : 80039 (8.0.39)
 Source Host           : localhost:3306
 Source Schema         : vote_new_year

 Target Server Type    : MySQL
 Target Server Version : 80039 (8.0.39)
 File Encoding         : 65001

 Date: 18/01/2025 10:47:06
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for candidates
-- ----------------------------
DROP TABLE IF EXISTS `candidates`;
CREATE TABLE `candidates`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
  `jwcode` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '物品编号',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '候选人名字',
  `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '候选人头像',
  `votes` int NULL DEFAULT 0 COMMENT '票数',
  `status` int NULL DEFAULT NULL COMMENT '状态',
  `location` int NULL DEFAULT NULL COMMENT '位置',
  `money` int NULL DEFAULT NULL COMMENT '价值',
  `spare1` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
  `spare2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
  `spare3` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `jwcode`(`jwcode` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of candidates
-- ----------------------------
INSERT INTO `candidates` VALUES (1, '010', '粉底', 'https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/3fe5bfe4d6d22969e4e744fb5ffcc42c.png', 2, 1, 2, 100000, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (2, '009', '口红', 'https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/b9e13ae84c87cafcbcb56420f04f34da.png', 0, 1, 2, 200, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (3, '008', '酒店抵用券', 'https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/d604ded24c51b1be131ff16934fd7744.png', 0, 1, 3, 300, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (4, '007', '德州扒鸡', 'https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/c7aceb66e69097e8f734f12b9e36ab30.png', 3, 1, 4, 400, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (5, '006', '胡辣汤', 'https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/21e50e2f6931024e1079cae45e751840.png', 0, 1, 1, 500, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (6, '005', 'AI探牛7天', 'https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/28a4ca14aaa3cfb6daa5de1ff504f034.png', 0, 1, 2, 600, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (7, '004', '预测大师', 'https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/cb706bb1adc66b999e75029525b21d03.png', 0, 1, 3, 700, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (8, '003', '雷达', 'https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/774bcb3c19fba708ccb61aed1475330c.png', 0, 1, 4, 800, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (9, '002', '铁皮', 'https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/386cc0f515c5a13f44306d7f20d623ab.png', 0, 0, 1, 900, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (10, '001', '其他', 'https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/097cc365b03e723ad5f9bbadd42859f3.png', 0, 1, 2, 1000, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (12, '011', 'iphone18', 'https://d31zlh4on95l9h.cloudfront.net/default/39156502f8f218cf63f751e081406a8e.png', 0, 0, 2, 1000, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (13, 'A001', '高级粉底', '1.jpg', 0, 1, 1, 2000, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (14, 'A002', '高级口红', '2.jpg', 0, 1, 2, 3000, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (15, 'A003', 'TD', '1.jpg', 1, 1, 1, 2000, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (16, 'A201', '康康', '1.jpg', 1, 1, 1, 1000, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (17, 'A301', '冷辉', '1.jpg', 0, 0, 3, 3000, NULL, NULL, NULL);
INSERT INTO `candidates` VALUES (19, '020', 'iphone100', 'https://d31zlh4on95l9h.cloudfront.net/default/0b6766aaee31e9b740c53e00a172399b.jpg', 0, 1, 5, 99999, NULL, NULL, NULL);

-- ----------------------------
-- Table structure for voters
-- ----------------------------
DROP TABLE IF EXISTS `voters`;
CREATE TABLE `voters`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `jwcode` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '精网号',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '投票者名字',
  `vote_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '投票时间戳',
  `candidate_jwcode` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '候选人精网号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 181 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '投票者表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of voters
-- ----------------------------
INSERT INTO `voters` VALUES (174, '90044599', '游客 90****99', '2025-01-13 18:29:59', '010');
INSERT INTO `voters` VALUES (175, '90044598', '游客 90****99', '2025-01-15 18:30:07', '010');
INSERT INTO `voters` VALUES (176, '90044599', '游客 90****99', '2025-01-15 15:02:34', '010');
INSERT INTO `voters` VALUES (177, '90044599', '游客 90****99', '2025-01-15 15:02:36', '007');
INSERT INTO `voters` VALUES (178, '90044599', '游客 90****99', '2025-01-16 14:38:26', '007');
INSERT INTO `voters` VALUES (179, '90044599', '游客 90****99', '2025-01-16 14:38:27', 'A003');
INSERT INTO `voters` VALUES (180, '90044599', '游客 90****99', '2025-01-16 14:38:41', 'A201');

SET FOREIGN_KEY_CHECKS = 1;
