package com.fkzy.warn.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 合同
 *
 * @author zhangjing
 * @date 2024/12/05 14:07
 * @description
 */
@Data
@TableName("t_contract")
public class Contract extends BaseField {
    /**
     * id
     */
    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 关联用户
     */
    @ApiModelProperty("关联用户")
    private Integer userId;
    /**
     * 合同签订日期
     */
    @ApiModelProperty("合同签订日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date signingDate;
    /**
     * 合同金额
     */
    @ApiModelProperty("合同金额")
    private BigDecimal contractAmount;
    /**
     * 合同url
     */
    @ApiModelProperty("合同url")
    private String fileUrl;
    /**
     * 发票url
     */
    @ApiModelProperty("发票url")
    private String invoiceUrl;
}
