Skip to content

Commit

Permalink
update: 软删除
Browse files Browse the repository at this point in the history
  • Loading branch information
zodial committed Mar 2, 2023
1 parent d0bc3a8 commit ae3fca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/commands/orm/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func genOrmStruct(table string, columns []tableColumn, conf Conf, relationships
if *column.IS_NULLABLE == "YES" && column.COLUMN_NAME != "deleted_at" {
p = "*"
}
if column.COLUMN_NAME != "deleted_at" {
if column.COLUMN_NAME == "deleted_at" {
column.GoType = "gorm.DeletedAt"
}
hasField[column.COLUMN_NAME] = true
Expand Down

0 comments on commit ae3fca3

Please sign in to comment.