go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

why hard code here?

Open chowyu12 opened this issue 1 year ago • 3 comments

https://github.com/zeromicro/go-zero/blob/fabea4c4485ad5223b375e62f6d46fdffb7da81c/tools/goctl/model/sql/gen/insert.go#L34

chowyu12 avatar Jul 07 '22 06:07 chowyu12

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 .

kesonan avatar Jul 09 '22 15:07 kesonan

I am looking for a solution to solve it.

kesonan avatar Jul 09 '22 15:07 kesonan

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 09 '22 02:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Nov 08 '22 02:11 github-actions[bot]