go-zero
go-zero copied to clipboard
why hard code here?
https://github.com/zeromicro/go-zero/blob/fabea4c4485ad5223b375e62f6d46fdffb7da81c/tools/goctl/model/sql/gen/insert.go#L34
That's a default principle to ignore create_time
and update_time
while create or update data, you should add a constraint NOT NULL DEFAULT TIMESTAMP
on columns create_time
and update_time
.
I am looking for a solution to solve it.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.