github.com/unionj-cloud/go-doudou/v2@v2.3.5/toolkit/astutils/testdata/entity/material.go (about) 1 package entity 2 3 import "time" 4 5 //dd:table 6 type Material struct { 7 Id int `dd:"pk;auto;type:int(11)"` 8 Name string `dd:"type:varchar(45);extra:comment '原料名称'"` 9 Amount int `dd:"type:int(11);extra:comment '原料单件克数'"` 10 CreateAt *time.Time `dd:"type:datetime;default:CURRENT_TIMESTAMP"` 11 UpdateAt *time.Time `dd:"type:datetime;default:CURRENT_TIMESTAMP;extra:on update CURRENT_TIMESTAMP"` 12 DeleteAt *time.Time `dd:"type:datetime"` 13 Price float32 `dd:"type:decimal(10,2);extra:comment '原料单件进价'"` 14 }