package com.huimv.management.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Random;

/**
 * 牧场表
 * 
 * @author yinhao
 * @email yinhao@163.com
 * @date 2021-05-07 15:32:42
 */
@Data
@TableName("mgt_farm")
public class FarmEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 牧场id
	 */
	@TableId
	private Integer id;
	/**
	 * 牧场名称
	 */
	private String name;
	/**
	 * 牧场地址
	 */
	private String location;
	/**
	 * 牧场地址(front)
	 */
	private String frontLocation;
	/**
	 * 负责人
	 */
	private String manager;
	/**
	 * 牧场建立日期
	 */
//	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private Date buildTime;
	/**
	 * 删除状态 0正常 1已删除
	 */
	@TableLogic
//	@TableField(fill = FieldFill.INSERT)
	private Integer deleted;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date gmtCreate;
	/**
	 * 修改时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date gmtModified;

}
