package com.hzs.common.domain.system.home;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 首页背景
 * </p>
 *
 * @author hzs
 * @since 2022-11-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("HO_BACKGROUND")
@KeySequence("HO_BACKGROUND_SEQ")
public class HoBackground extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 上传视频
     */
    @TableField("VIDEO_ADDRESS")
    private String videoAddress;
    /**
     * 图片
     */
    @TableField("COVER_ADDRESS")
    private String coverAddress;

    /**
     * 生效日期
     */
    @TableField("EFFECTIVE_DATE")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date effectiveDate;


}
