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.time.LocalDateTime; /** * 养生课程下载记录。 */ @TableName("tcm_health_course_download_record") @Getter @Setter @NoArgsConstructor public class HealthCourseDownloadRecord { @TableId(type = IdType.AUTO) private Long id; @TableField("app_user_id") private Long appUserId; @TableField("course_id") private Long courseId; @TableField("course_video_id") private Long courseVideoId; @TableField("course_title_snapshot") private String courseTitleSnapshot; @TableField("chapter_name_snapshot") private String chapterNameSnapshot; @TableField("cover_img_snapshot") private String coverImgSnapshot; @TableField("video_url_snapshot") private String videoUrlSnapshot; @TableField("duration_seconds_snapshot") private Integer durationSecondsSnapshot; @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; }