blob: a66839de07f9cbe83c387e4bb07871085f88853f [file] [log] [blame]
223011385e9c35a2025-06-04 15:52:45 +08001package com.example.myproject.entity;
2
3import javax.persistence.*;
4
5@Entity
6@Table(name = "user_task_status")
7public class UserTaskStatus {
8
9 @Id
10 @GeneratedValue(strategy = GenerationType.IDENTITY)
11 @Column(name = "status_id")
12 private Long statusId;
13
14 @Column(name = "user_id", nullable = false)
15 private Long userId;
16
17 @Column(name = "task_id", nullable = false)
18 private String taskId;
19
20 @Column(name = "current_progress", nullable = false)
21 private Float currentProgress;
22
23 @Column(name = "current_experience", nullable = false)
24 private Integer currentExperience;
25
26 @Column(name = "current_points", nullable = false)
27 private Integer currentPoints;
28
29 @Column(name = "status", nullable = false)
30 private String status;
31
32 @Column(name = "is_reward_claimed", nullable = false)
33 private Boolean isRewardClaimed = false;
34
35 public Long getStatusId() {
36 return statusId;
37 }
38
39 public void setStatusId(Long statusId) {
40 this.statusId = statusId;
41 }
42
43 public Long getUserId() {
44 return userId;
45 }
46
47 public void setUserId(Long userId) {
48 this.userId = userId;
49 }
50
51 public String getTaskId() {
52 return taskId;
53 }
54
55 public void setTaskId(String taskId) {
56 this.taskId = taskId;
57 }
58
59 public Float getCurrentProgress() {
60 return currentProgress;
61 }
62
63 public void setCurrentProgress(Float currentProgress) {
64 this.currentProgress = currentProgress;
65 }
66
67 public Integer getCurrentExperience() {
68 return currentExperience;
69 }
70
71 public void setCurrentExperience(Integer currentExperience) {
72 this.currentExperience = currentExperience;
73 }
74
75 public Integer getCurrentPoints() {
76 return currentPoints;
77 }
78
79 public void setCurrentPoints(Integer currentPoints) {
80 this.currentPoints = currentPoints;
81 }
82
83 public String getStatus() {
84 return status;
85 }
86
87 public void setStatus(String status) {
88 this.status = status;
89 }
90
91 public Boolean getIsRewardClaimed() {
92 return isRewardClaimed;
93 }
94
95 public void setIsRewardClaimed(Boolean isRewardClaimed) {
96 this.isRewardClaimed = isRewardClaimed;
97 }
98}