feat(subscription): add subscriptionCount field to Skill entity

This commit is contained in:
dongmucat 2026-04-27 16:44:34 +08:00
parent 7da8ffdb1b
commit 79f1aa4db1

View file

@ -57,6 +57,9 @@ public class Skill {
@Column(name = "star_count", nullable = false)
private Integer starCount = 0;
@Column(name = "subscription_count", nullable = false)
private Integer subscriptionCount = 0;
@Column(name = "rating_avg", precision = 3, scale = 2, nullable = false)
private BigDecimal ratingAvg = BigDecimal.ZERO;
@ -158,6 +161,10 @@ public class Skill {
return starCount;
}
public Integer getSubscriptionCount() {
return subscriptionCount;
}
public BigDecimal getRatingAvg() {
return ratingAvg;
}