Account.java 1022 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package com.punchsettle.server.atomic.entity;
  2. import java.io.Serial;
  3. import java.io.Serializable;
  4. import com.punchsettle.server.common.pojo.BaseEntity;
  5. import jakarta.persistence.Column;
  6. import jakarta.persistence.Table;
  7. import lombok.Data;
  8. import lombok.EqualsAndHashCode;
  9. /**
  10. * @author tyuio
  11. * @version 1.0.0
  12. * @description 账户
  13. * @date 2025/04/08 09:49
  14. */
  15. @Data
  16. @EqualsAndHashCode(callSuper = true)
  17. @Table(name = "account")
  18. public class Account extends BaseEntity implements Serializable {
  19. @Serial
  20. private static final long serialVersionUID = 2106615506104959073L;
  21. /**
  22. * 用户id
  23. */
  24. @Column(name = "user_id")
  25. private Long userId;
  26. /**
  27. * 账户名称
  28. */
  29. @Column(name = "account_name")
  30. private String accountName;
  31. /**
  32. * 账户类型(BASIC-基本户,GENERAL-一般户)
  33. */
  34. @Column(name = "account_type")
  35. private String accountType;
  36. /**
  37. * 奖励积分
  38. */
  39. @Column(name = "points")
  40. private Integer points;
  41. }