瀏覽代碼

代码更新

dingsong 4 年之前
父節點
當前提交
e9a2cadd69

+ 2 - 2
src/main/java/com/migao/entity/po/DemandAttachment.java

@@ -27,8 +27,8 @@ public class DemandAttachment implements Serializable {
     @GeneratedValue(strategy = GenerationType.IDENTITY)
     private Integer id;
 
-    @Column(columnDefinition = "int(11) comment '所属模块id'")
-    private Integer projectId;
+    @Column(columnDefinition = "int(11) comment '需求库id'")
+    private Integer demandId;
 
     @Column(columnDefinition = "int(11) comment '文件表id'")
     private Integer fileId;

+ 42 - 0
src/main/java/com/migao/entity/po/DocumentAttachment.java

@@ -0,0 +1,42 @@
+package com.migao.entity.po;
+
+import com.baomidou.mybatisplus.annotation.*;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import javax.persistence.*;
+import java.io.Serializable;
+import java.time.LocalDateTime;
+
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@Builder
+@Entity
+@Table(name = "t_document_attachment")
+@org.hibernate.annotations.Table(appliesTo = "t_document_attachment", comment = "文档共享附件")
+@TableName("t_document_attachment")
+public class DocumentAttachment implements Serializable {
+    @Id
+    @TableId(type = IdType.AUTO)
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    private Integer id;
+
+    @Column(columnDefinition = "int(11) comment '文档共享id'")
+    private Integer documentId;
+
+    @Column(columnDefinition = "int(11) comment '文件表id'")
+    private Integer fileId;
+
+    @TableField(fill = FieldFill.INSERT_UPDATE)
+    @Column(columnDefinition = "tinyint(1) comment '逻辑删除 0未删除 1已删除'")
+    private Integer deleted;
+
+    @Column(columnDefinition = "timestamp DEFAULT CURRENT_TIMESTAMP comment '创建时间'")
+    private LocalDateTime createTime;
+
+    @JoinColumn(columnDefinition = "int(11) comment '新增人'")
+    private Integer createUserId;
+}