gen icon indicating copy to clipboard operation
gen copied to clipboard

当在数据库中申明default为NULL时,通过gen生成的代码好像不会加上这个tag

Open YakultGo opened this issue 9 months ago • 1 comments

Your Question

默认为NULL的时候,为什么不会加上呢,当我申明一个类型为time.Time的时候,如果tag里面没有default:null,那么如果该字段不传值,会报错,得显式的写上default:null,但是好像生成的代码是不会带上default:null的

The document you expected this should be explained

Expected answer

YakultGo avatar May 03 '24 14:05 YakultGo