package com.qiuguo.iot.data.entity.device;
import org.hswebframework.ezorm.rdb.mapping.annotation.Comment;
import org.hswebframework.web.crud.annotation.EnableEntityEvent;
import org.hswebframework.web.api.crud.entity.GenericEntity;
import javax.persistence.Column;
import javax.persistence.Table;import lombok.Data;
import java.util.Date;
/**
* <p>
* </p>*工厂信息表
* @author wulin
* @since 2023-09-05
*/

@Data
@Comment("工厂信息表")
@Table(name = "device_product_factory_info")
@EnableEntityEvent
public class DeviceProductFactoryInfoEntity extends GenericEntity<Long> {
    @Comment("id")
    @Column(name = "id", length = 11, nullable = false, unique = true)
    private Long id;

    @Comment("是否删除：0 否 1 删除")
    @Column(name = "is_delete", nullable = false)
    private Integer isDelete;

    @Comment("创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @Comment("修改时间")
    @Column(name = "modify_time")
    private Date modifyTime;

    @Comment("工厂名称")
    @Column(name = "name", length = 255)
    private String name;

    @Comment("法人")
    @Column(name = "legal_person", length = 50)
    private String legalPerson;

    @Comment("法人联系方式")
    @Column(name = "legal_person_phone", length = 20)
    private String legalPersonPhone;

    @Comment("对接人")
    @Column(name = "contacts", length = 50)
    private String contacts;

    @Comment("对接联系人电话")
    @Column(name = "contacts_phone", length = 20)
    private String contactsPhone;

    @Comment("国家")
    @Column(name = "country", length = 100)
    private String country;

    @Comment("省")
    @Column(name = "province", length = 100)
    private String province;

    @Comment("市")
    @Column(name = "city", length = 100)
    private String city;

    @Comment("县、区")
    @Column(name = "county", length = 100)
    private String county;

    @Comment("乡镇")
    @Column(name = "village", length = 100)
    private String village;

    @Comment("乡镇以下的具体地址")
    @Column(name = "address", length = 100)
    private String address;

    @Comment("企业代号（自编）")
    @Column(name = "factory_code", length = 10)
    private String factoryCode;

    @Comment("企业等级（自评）")
    @Column(name = "factory_grade")
    private Integer factoryGrade;

    @Comment("备注说明")
    @Column(name = "remark", length = 255)
    private String remark;

}