package org.jeecg.modules.ctop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
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;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;

/**
 * 剧本角色信息
 *
 * @author jeecg-boot
 * @version V1.0
 * @date 2020-03-05
 */
@Data
@TableName("ctop_drama_role_info")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ctop_drama_role_info对象", description = "剧本角色信息")
public class DramaRoleInfo {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    private Long dramaId;
    /**
     * name
     */
    @Excel(name = "name", width = 15)
    @ApiModelProperty(value = "name")
    private String name;
    /**
     * introduction
     */
    @Excel(name = "introduction", width = 15)
    @ApiModelProperty(value = "introduction")
    private String introduction;
    /**
     * sex
     */
    @Excel(name = "sex", width = 15)
    @ApiModelProperty(value = "sex")
    private Integer sex;
    /**
     * createTime
     */
    @ApiModelProperty(value = "createTime")
    private Date createTime;
    /**
     * updateTime
     */
    @ApiModelProperty(value = "updateTime")
    private Date updateTime;

    @TableField(exist = false)
    private String buttonType;

    public DramaRoleInfo(String name, String buttonType) {
        this.name = name;
        this.buttonType = buttonType;
    }

    public DramaRoleInfo() {
    }
}
