package com.ylcm.sys.domain;

import java.io.Serializable;
import java.time.LocalDateTime;

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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 媒体管理表
 * </p>
 *
 * @author admin
 * @since 2020-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ad_media")
@ApiModel(value="AdMedia对象", description="媒体管理表")
public class AdMedia implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "媒体名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "媒体等级")
    @TableField("rank")
    private Integer rank;

    @ApiModelProperty(value = "媒体logo")
    @TableField("img_url")
    private String imgUrl;

    @ApiModelProperty(value = "0正常 4删除")
    @TableField("status")
    @TableLogic
    private Integer status;

    @ApiModelProperty(value = "创建时间：默认值现在时间")
    @TableField("crt_time")
    private LocalDateTime crtTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("upd_time")
    private LocalDateTime updTime;
    
}
