diff --git a/src/main/java/com/entity/UserInfo.java b/src/main/java/com/entity/UserInfo.java new file mode 100644 index 0000000..a7af973 --- /dev/null +++ b/src/main/java/com/entity/UserInfo.java @@ -0,0 +1,109 @@ +package com.example.entity; + +import javax.persistence.*; + +@Table(name = "user_info") +public class UserInfo extends Account { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + @Column(name = "name") + private String name; + @Column(name = "password") + private String password; + @Column(name = "nickName") + private String nickName; + @Column(name = "sex") + private String sex; + @Column(name = "age") + private Integer age; + @Column(name = "birthday") + private String birthday; + @Column(name = "phone") + private String phone; + @Column(name = "address") + private String address; + @Column(name = "email") + private String email; + @Column(name = "cardId") + private String cardId; + @Column(name = "level") + private Integer level; + + public String getName() { + return name; + } + public void setName(String name) { + this.name = name; + } + public String getPassword() { + return password; + } + public void setPassword(String password) { + this.password = password; + } + public String getNickName() { + return nickName; + } + public void setNickName(String nickName) { + this.nickName = nickName; + } + public String getSex() { + return sex; + } + public void setSex(String sex) { + this.sex = sex; + } + public Integer getAge() { + return age; + } + public void setAge(Integer age) { + this.age = age; + } + public String getBirthday() { + return birthday; + } + public void setBirthday(String birthday) { + this.birthday = birthday; + } + public String getPhone() { + return phone; + } + public void setPhone(String phone) { + this.phone = phone; + } + public String getAddress() { + return address; + } + public void setAddress(String address) { + this.address = address; + } + public String getEmail() { + return email; + } + public void setEmail(String email) { + this.email = email; + } + public String getCardId() { + return cardId; + } + public void setCardId(String cardId) { + this.cardId = cardId; + } + public Integer getLevel() { + return level; + } + public void setLevel(Integer level) { + this.level = level; + } + + + public void setId(Long id) { + this.id = id; + } + public Long getId() { + return this.id; + } + +}