package com.tcm.training.admin.live.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import java.math.BigDecimal; import java.time.LocalDateTime; @TableName("tcm_live_session") @Getter @Setter @NoArgsConstructor public class LiveSession { @TableId(type = IdType.AUTO) private Long id; @TableField("live_course_id") private Long liveCourseId; @TableField("start_time") private LocalDateTime startTime; @TableField("video_url") private String videoUrl; @TableField("base_reserve_count") private Integer baseReserveCount; @TableField("base_watch_count") private Integer baseWatchCount; @TableField("real_reserve_count") private Integer realReserveCount; @TableField("real_watch_count") private Integer realWatchCount; @TableField("reserve_convert_rate") private BigDecimal reserveConvertRate; @TableField("completion_rate") private BigDecimal completionRate; @TableField("effective_watch_rate") private BigDecimal effectiveWatchRate; @TableField("quiz_correct_count") private Integer quizCorrectCount; @TableField("points_issued") private Integer pointsIssued; @TableField("live_status") private Integer liveStatus; @TableField("actual_start_time") private LocalDateTime actualStartTime; @TableField("actual_end_time") private LocalDateTime actualEndTime; @TableLogic private Integer deleted; @TableField(value = "created_by", fill = FieldFill.INSERT) private String createdBy; @TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE) private String updatedBy; @TableField("created_at") private LocalDateTime createdAt; @TableField("updated_at") private LocalDateTime updatedAt; }