package com.ruoyi.basic.pojo; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; /** * 产品表 * @TableName product */ @TableName(value ="product") @Data public class Product implements Serializable { /** * */ @TableId(type = IdType.AUTO) private Integer id; /** * 产品名称 */ private String name; /** * 产品名称EN */ private String nameEn; @ApiModelProperty(value = "创建人id") @TableField(fill = FieldFill.INSERT) private Integer createUser; @ApiModelProperty(value = "修改人id") @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; @ApiModelProperty(value = "创建时间") @TableField(fill = FieldFill.INSERT) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime createTime; @ApiModelProperty(value = "更新时间") @TableField(fill = FieldFill.INSERT_UPDATE) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime updateTime; /** * 外键:structure_test_object表id */ private Integer objectId; }