blob: 8e286288f01b2815df7cc5a94bb5ce4472d527ed [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
wuchimedes079c1632025-04-02 22:01:20 +080014 private String password;
15 private String userName;
wuchimedesa1bf2782025-03-27 15:08:54 +080016 private String email;
17
18 @Override
19 public String toString() {
20 return "User{" +
wuchimedes079c1632025-04-02 22:01:20 +080021 "id=" + userId +
22 ", name='" + userName + '\'' +
wuchimedesa1bf2782025-03-27 15:08:54 +080023 ", email='" + email + '\'' +
24 '}';
25 }
26}