package com.zjty.inspect.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.Generated;
import org.hibernate.annotations.GenerationTime;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * 建议
 * @author Mcj
 * @date 2020-02-26 14:18
 */
@Table(name = "master_technology")
@Entity
@Data
@ApiModel(description = "关键技术类")
public class MasterTechnology {

    @Id
    @Column( length = 48)
    private String id;

    /**
     * 技术名称
     */
    private String technologyName;

    /**
     * 技术建议
     */
    private String advice;

    /**
     * 金额(万元)
     */
    @ApiModelProperty(value = "金额",example = "123")
    private Integer fund;

    /**
     * 1：支持
     * 2：不支持
     * 3：未知
     * 4:不完全支持
     * 5：优化
     */
    @ApiModelProperty(value = "是否支持",example = "1")
    private Integer support;

    /**
     * 分类id
     */
    private String category_id;
    /**
     * 技术类型
     * 1:前端技术
     * 2：后端技术
     */
    @ApiModelProperty(value = "技术类型",example = "2")
    @Column(name = "back_or_front")
    private Integer backorfront =2;
    /**
     * 数据创建时间
     */
    @Column(name="create_time",columnDefinition="TIMESTAMP DEFAULT CURRENT_TIMESTAMP",insertable = false,updatable = false)
    @Generated(GenerationTime.INSERT)
    private Timestamp createDate;

    /**
     * 数据更新时间
     */
    @Column(name="update_time",columnDefinition="TIMESTAMP DEFAULT CURRENT_TIMESTAMP",insertable = false)
    @Generated(GenerationTime.ALWAYS)
    private Timestamp updateDate;
}
