webman/sql/user_phone.sql

47 lines
1.9 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
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;