| package com.example.myproject.entity; |
| |
| import javax.persistence.*; |
| |
| @Entity |
| @Table(name = "user_task_status") |
| public class UserTaskStatus { |
| |
| @Id |
| @GeneratedValue(strategy = GenerationType.IDENTITY) |
| @Column(name = "status_id") |
| private Long statusId; |
| |
| @Column(name = "user_id", nullable = false) |
| private Long userId; |
| |
| @Column(name = "task_id", nullable = false) |
| private String taskId; |
| |
| @Column(name = "current_progress", nullable = false) |
| private Float currentProgress; |
| |
| @Column(name = "current_experience", nullable = false) |
| private Integer currentExperience; |
| |
| @Column(name = "current_points", nullable = false) |
| private Integer currentPoints; |
| |
| @Column(name = "status", nullable = false) |
| private String status; |
| |
| @Column(name = "is_reward_claimed", nullable = false) |
| private Boolean isRewardClaimed = false; |
| |
| public Long getStatusId() { |
| return statusId; |
| } |
| |
| public void setStatusId(Long statusId) { |
| this.statusId = statusId; |
| } |
| |
| public Long getUserId() { |
| return userId; |
| } |
| |
| public void setUserId(Long userId) { |
| this.userId = userId; |
| } |
| |
| public String getTaskId() { |
| return taskId; |
| } |
| |
| public void setTaskId(String taskId) { |
| this.taskId = taskId; |
| } |
| |
| public Float getCurrentProgress() { |
| return currentProgress; |
| } |
| |
| public void setCurrentProgress(Float currentProgress) { |
| this.currentProgress = currentProgress; |
| } |
| |
| public Integer getCurrentExperience() { |
| return currentExperience; |
| } |
| |
| public void setCurrentExperience(Integer currentExperience) { |
| this.currentExperience = currentExperience; |
| } |
| |
| public Integer getCurrentPoints() { |
| return currentPoints; |
| } |
| |
| public void setCurrentPoints(Integer currentPoints) { |
| this.currentPoints = currentPoints; |
| } |
| |
| public String getStatus() { |
| return status; |
| } |
| |
| public void setStatus(String status) { |
| this.status = status; |
| } |
| |
| public Boolean getIsRewardClaimed() { |
| return isRewardClaimed; |
| } |
| |
| public void setIsRewardClaimed(Boolean isRewardClaimed) { |
| this.isRewardClaimed = isRewardClaimed; |
| } |
| } |