package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 达人作品表
 * </p>
 *
 * @author ssk
 * @since 2025-02-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="LifeUserExpertWorks对象", description="达人作品表")
public class LifeUserExpertWorks extends Model<LifeUserExpertWorks> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "达人id（life_user_expert 表 id）")
    @TableField("expert_id")
    private Integer expertId;

    @ApiModelProperty(value = "订单id（life_user_expert_order 表 id）")
    @TableField("order_id")
    private Integer orderId;

    @ApiModelProperty(value = "作品地址")
    @TableField("works_url")
    private String worksUrl;

    @ApiModelProperty(value = "简介")
    @TableField("introduction")
    private String introduction;

    @ApiModelProperty(value = "播放量")
    @TableField("play_count")
    private Integer playCount;

    @ApiModelProperty(value = "点赞量")
    @TableField("like_count")
    private Integer likeCount;

    @ApiModelProperty(value = "评论量")
    @TableField("comment_count")
    private Integer commentCount;

    @ApiModelProperty(value = "分享量")
    @TableField("share_count")
    private Integer shareCount;

    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField(value = "created_user_id", fill = FieldFill.INSERT)
    private Integer createdUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField(value = "updated_user_id", fill = FieldFill.INSERT_UPDATE)
    private Integer updatedUserId;

}
