package com.reading.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Course Script Page Entity
 */
@Data
@TableName("course_script_pages")
public class CourseScriptPage {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long scriptId;

    private Integer pageNumber;

    private String content;

    private String imageUrl;

    private String audioUrl;

    private Integer duration;

    private String notes;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @TableLogic
    private Integer deleted;

}
