48 lines
1.7 KiB
Java
48 lines
1.7 KiB
Java
package com.mosquito.project.persistence.entity;
|
|
|
|
import jakarta.persistence.*;
|
|
import java.time.LocalDate;
|
|
|
|
@Entity
|
|
@Table(name = "daily_activity_stats")
|
|
public class DailyActivityStatsEntity {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
@Column(name = "activity_id", nullable = false)
|
|
private Long activityId;
|
|
|
|
@Column(name = "stat_date", nullable = false)
|
|
private LocalDate statDate;
|
|
|
|
@Column(name = "views", nullable = false)
|
|
private Integer views;
|
|
|
|
@Column(name = "shares", nullable = false)
|
|
private Integer shares;
|
|
|
|
@Column(name = "new_registrations", nullable = false)
|
|
private Integer newRegistrations;
|
|
|
|
@Column(name = "conversions", nullable = false)
|
|
private Integer conversions;
|
|
|
|
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 LocalDate getStatDate() { return statDate; }
|
|
public void setStatDate(LocalDate statDate) { this.statDate = statDate; }
|
|
public Integer getViews() { return views; }
|
|
public void setViews(Integer views) { this.views = views; }
|
|
public Integer getShares() { return shares; }
|
|
public void setShares(Integer shares) { this.shares = shares; }
|
|
public Integer getNewRegistrations() { return newRegistrations; }
|
|
public void setNewRegistrations(Integer newRegistrations) { this.newRegistrations = newRegistrations; }
|
|
public Integer getConversions() { return conversions; }
|
|
public void setConversions(Integer conversions) { this.conversions = conversions; }
|
|
}
|
|
|