38 lines
1.2 KiB
Java
38 lines
1.2 KiB
Java
|
|
package com.mosquito.project.persistence.entity;
|
||
|
|
|
||
|
|
import jakarta.persistence.*;
|
||
|
|
import java.math.BigDecimal;
|
||
|
|
|
||
|
|
@Entity
|
||
|
|
@Table(name = "multi_level_reward_rules")
|
||
|
|
public class MultiLevelRewardRuleEntity {
|
||
|
|
|
||
|
|
@Id
|
||
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||
|
|
private Long id;
|
||
|
|
|
||
|
|
@Column(name = "activity_id", nullable = false)
|
||
|
|
private Long activityId;
|
||
|
|
|
||
|
|
@Column(nullable = false)
|
||
|
|
private Integer level;
|
||
|
|
|
||
|
|
@Column(name = "reward_value", nullable = false, precision = 10, scale = 2)
|
||
|
|
private BigDecimal rewardValue;
|
||
|
|
|
||
|
|
@Column(name = "is_percentage")
|
||
|
|
private Boolean percentage;
|
||
|
|
|
||
|
|
public Long getId() { return id; }
|
||
|
|
public void setId(Long id) { this.id = id; }
|
||
|
|
public Long getActivityId() { return activityId; }
|
||
|
|
public void setActivityId(Long activityId) { this.activityId = activityId; }
|
||
|
|
public Integer getLevel() { return level; }
|
||
|
|
public void setLevel(Integer level) { this.level = level; }
|
||
|
|
public BigDecimal getRewardValue() { return rewardValue; }
|
||
|
|
public void setRewardValue(BigDecimal rewardValue) { this.rewardValue = rewardValue; }
|
||
|
|
public Boolean getPercentage() { return percentage; }
|
||
|
|
public void setPercentage(Boolean percentage) { this.percentage = percentage; }
|
||
|
|
}
|
||
|
|
|