Browse Source

附件实体添加主键描述

liyan 1 month ago
parent
commit
5582801750
2 changed files with 1362 additions and 1 deletions
  1. 3 1
      ruoyi-cms/src/main/kotlin/com/cclotus/cms/domain/CmsPostAttachment.kt
  2. 1359 0
      sql/cms-db.sql

+ 3 - 1
ruoyi-cms/src/main/kotlin/com/cclotus/cms/domain/CmsPostAttachment.kt

@@ -1,6 +1,8 @@
 package com.cclotus.cms.domain
 
+import com.baomidou.mybatisplus.annotation.IdType
 import com.baomidou.mybatisplus.annotation.TableField
+import com.baomidou.mybatisplus.annotation.TableId
 import com.baomidou.mybatisplus.annotation.TableName
 
 @TableName("cms_post_attachment")
@@ -9,7 +11,7 @@ class CmsPostAttachment {
     /**
      * 附件ID
      */
-    @TableField("attachment_id")
+    @TableId(value = "attachment_id", type = IdType.AUTO)
     var attachmentId: Int? = null
 
     /**

File diff suppressed because it is too large
+ 1359 - 0
sql/cms-db.sql