blob: 7ba8e03650978c1a8d4db9aea09f925aac874c93 [file] [log] [blame]
wuchimedesa1bf2782025-03-27 15:08:54 +08001package com.example.g8backend.entity;
2
3import com.baomidou.mybatisplus.annotation.IdType;
wuchimedesa1bf2782025-03-27 15:08:54 +08004import com.baomidou.mybatisplus.annotation.TableId;
5import com.baomidou.mybatisplus.annotation.TableName;
6import lombok.Data;
7
8@Data
wuchimedes079c1632025-04-02 22:01:20 +08009@TableName("users")
wuchimedesa1bf2782025-03-27 15:08:54 +080010public class User {
11 @TableId(type = IdType.AUTO)
wuchimedes079c1632025-04-02 22:01:20 +080012 private Long userId;
wuchimedesa1bf2782025-03-27 15:08:54 +080013
wuchimedesa0649c62025-04-05 15:53:39 +080014 private String passkey;
wuchimedes079c1632025-04-02 22:01:20 +080015 private String password;
16 private String userName;
wuchimedesa1bf2782025-03-27 15:08:54 +080017 private String email;
18
19 @Override
20 public String toString() {
21 return "User{" +
wuchimedes079c1632025-04-02 22:01:20 +080022 "id=" + userId +
23 ", name='" + userName + '\'' +
wuchimedesa1bf2782025-03-27 15:08:54 +080024 ", email='" + email + '\'' +
25 '}';
26 }
27}