瀏覽代碼

修改表名

DESKTOP-53URE31\USER 8 月之前
父節點
當前提交
56adee64be
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ent/schema/batch_msg.go

+ 1 - 1
ent/schema/batch_msg.go

@@ -46,6 +46,6 @@ func (BatchMsg) Indexes() []ent.Index {
 func (BatchMsg) Annotations() []schema.Annotation {
 	return []schema.Annotation{
 		entsql.WithComments(true),
-		entsql.Annotation{Table: "batch_msgs"},
+		entsql.Annotation{Table: "batch_msg"},
 	}
 }