每个字段之间用;隔开
type Article struct {
Id int
Title string orm:"size(100);default() ;description(文章标题)"
Content string orm:"type(text);default() ;description(文章内容)"
Img string orm:"size(125) ;description(文章图片)"
View int orm:"size(1) ;description(浏览次数)"
Created time.Time orm:"auto_now_add;type(datetime) ;description(创建时间)"
Updated time.Time orm:"auto_now;type(datetime) ;description(修改时间)"
}