yjp 1 年間 前
コミット
22b60c3042
1 ファイル変更1 行追加1 行削除
  1. 1 1
      framework/core/domain/entity/field.go

+ 1 - 1
framework/core/domain/entity/field.go

@@ -64,7 +64,7 @@ const (
 
 // TenantIDField 租户ID字段
 type TenantIDField struct {
-	TenantID string `sqlmapping:"column:tenant_id;" sqlresult:"column:tenant_id;" check:"required,len=32,when=create/delete/update"`
+	TenantID string `sqlmapping:"column:tenant_id;" sqlresult:"column:tenant_id;" check:"required,len=32,when=create"`
 }
 
 // UserIDFields 用户ID相关字段