package com.tcm.training.admin.live.entity; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.IdType; 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_health_course_video") @Getter @Setter @NoArgsConstructor public class HealthCourseVideo { @TableId(type = IdType.AUTO) private Long id; @TableField("course_id") private Long courseId; @TableField("chapter_name") private String chapterName; @TableField("chapter_remark") private String chapterRemark; @TableField("video_url") private String videoUrl; @TableField("duration_seconds") private Integer durationSeconds; @TableField("sale_type") private Integer saleType; @TableField("sale_price") private BigDecimal salePrice; @TableField("play_count") private Integer playCount; private Integer sort; private Integer status; @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; }