/*
 Navicat Premium Dump SQL

 Source Server         : localhost_3306
 Source Server Type    : MySQL
 Source Server Version : 80017 (8.0.17)
 Source Host           : localhost:3306
 Source Schema         : app_hd

 Target Server Type    : MySQL
 Target Server Version : 80017 (8.0.17)
 File Encoding         : 65001

 Date: 22/02/2025 21:08:02
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for user_phone
-- ----------------------------
DROP TABLE IF EXISTS `user_phone`;
CREATE TABLE `user_phone`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户记录的唯一标识符',
  `user_id` int(11) NOT NULL COMMENT '用户的唯一ID标识符',
  `phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '用户手机号（WS手机号）',
  `score` int(11) NOT NULL DEFAULT 0 COMMENT '用户积分',
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '当前在线状态（1: 在线，0: 不在线）',
  `time` int(11) NOT NULL DEFAULT 0 COMMENT '用户在线时长（单位：秒）',
  `remark` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '用户备注信息',
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `last_time` bigint(20) NOT NULL DEFAULT 0,
  `day_score` int(11) NULL DEFAULT NULL COMMENT '今天积分',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `phone`(`phone` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 30 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '用户ws信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of user_phone
-- ----------------------------
INSERT INTO `user_phone` VALUES (24, 1, '601162155089', 440, 1, 300, NULL, '2025-02-17 12:25:42', '2025-02-18 12:37:02', 1739853420, NULL);
INSERT INTO `user_phone` VALUES (29, 1, '601162168710', 260, 1, 2222, NULL, '2025-02-17 23:17:57', '2025-02-18 12:37:03', 1739853422, NULL);

SET FOREIGN_KEY_CHECKS = 1;
