| package com.example.g8backend.entity; |
| |
| import com.baomidou.mybatisplus.annotation.IdType; |
| import com.baomidou.mybatisplus.annotation.TableId; |
| import com.baomidou.mybatisplus.annotation.TableName; |
| import lombok.Data; |
| |
| @Data |
| @TableName("users") |
| public class User { |
| @TableId(type = IdType.AUTO) |
| private Long userId; |
| |
| private String password; |
| private String userName; |
| private String email; |
| |
| @Override |
| public String toString() { |
| return "User{" + |
| "id=" + userId + |
| ", name='" + userName + '\'' + |
| ", email='" + email + '\'' + |
| '}'; |
| } |
| } |