package vip.xiaonuo.purchase.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 采购合同
 * </p>
 *
 * @author author
 * @since 2024-11-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("purchase_contract")
public class PurchaseContract implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 合同编号
     */
    @ApiModelProperty(value = "合同编号", position = 1)
    private String contractOrder;

    /**
     * 合同金额
     */
    @ApiModelProperty(value = "合同金额", position = 2)
    private String contractMoney;

    /**
     * 采购数量
     */
    @ApiModelProperty(value = "采购数量", position = 3)
    private String materialNumber;

    /**
     * 采购类型
     */
    @ApiModelProperty(value = "采购类型", position = 4)
    private String materialType;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", position = 5)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 组织id
     */
    @ApiModelProperty(value = "组织id", position = 6)
    private String orgId;


}
