1
0
mirror of https://github.com/beego/bee.git synced 2024-11-25 15:00:55 +00:00

add time type

This commit is contained in:
astaxie 2014-08-27 12:01:13 +08:00
parent d0c36db1ca
commit 5ec39d71ed

View File

@ -93,6 +93,7 @@ var typeMappingMysql = map[string]string{
"date": "time.Time", // time "date": "time.Time", // time
"datetime": "time.Time", "datetime": "time.Time",
"timestamp": "time.Time", "timestamp": "time.Time",
"time": "time.Time",
"float": "float32", // float & decimal "float": "float32", // float & decimal
"double": "float64", "double": "float64",
"decimal": "float64", "decimal": "float64",