change docs

This commit is contained in:
zhuyasen
2023-09-07 22:22:10 +08:00
parent 84039ef380
commit 1ce3dbd294
12 changed files with 118 additions and 10 deletions

View File

@@ -442,6 +442,11 @@ func getModelStructCode(data tmplData, importPaths []string, isEmbed bool) (stri
for i, field := range data.Fields {
if strings.Contains(field.GoType, "time.Time") {
data.Fields[i].GoType = "*time.Time"
continue
}
// force conversion of ID field to uint64 type
if field.Name == "ID" {
data.Fields[i].GoType = "uint64"
}
}
newImportPaths = importPaths