69 lines
1.6 KiB
Java
69 lines
1.6 KiB
Java
|
|
package com.gunshi.project.xyt.model;
|
||
|
|
|
||
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||
|
|
import jakarta.validation.constraints.NotNull;
|
||
|
|
import lombok.Data;
|
||
|
|
|
||
|
|
import java.io.Serializable;
|
||
|
|
import java.util.Date;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 抢险物资-附件
|
||
|
|
*/
|
||
|
|
@Schema(description="抢险物资-附件")
|
||
|
|
@Data
|
||
|
|
@TableName(value = "public.rescue_goods_file")
|
||
|
|
public class RescueGoodsFile implements Serializable {
|
||
|
|
/**
|
||
|
|
* 主键
|
||
|
|
*/
|
||
|
|
@TableId(value = "id", type = IdType.INPUT)
|
||
|
|
@Schema(description="主键")
|
||
|
|
@NotNull(message = "主键不能为空")
|
||
|
|
private Long id;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 抢险物资id
|
||
|
|
*/
|
||
|
|
@TableField(value = "goods_id")
|
||
|
|
@Schema(description="抢险物资id")
|
||
|
|
private Long goodsId;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 文件id
|
||
|
|
*/
|
||
|
|
@TableField(value = "file_id")
|
||
|
|
@Schema(description="文件id")
|
||
|
|
private Long fileId;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 序号
|
||
|
|
*/
|
||
|
|
@TableField(value = "sort_on")
|
||
|
|
@Schema(description="序号")
|
||
|
|
private Integer sortOn;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 时间戳
|
||
|
|
*/
|
||
|
|
@TableField(value = "tm")
|
||
|
|
@Schema(description="时间戳")
|
||
|
|
@NotNull(message = "时间戳不能为空")
|
||
|
|
private Date tm;
|
||
|
|
|
||
|
|
private static final long serialVersionUID = 1L;
|
||
|
|
|
||
|
|
public static final String COL_ID = "id";
|
||
|
|
|
||
|
|
public static final String COL_GOODS_ID = "goods_id";
|
||
|
|
|
||
|
|
public static final String COL_FILE_ID = "file_id";
|
||
|
|
|
||
|
|
public static final String COL_SORT_ON = "sort_on";
|
||
|
|
|
||
|
|
public static final String COL_TM = "tm";
|
||
|
|
}
|