diff --git a/field.go b/field.go index 57d94963..7b2cd4d3 100644 --- a/field.go +++ b/field.go @@ -57,6 +57,11 @@ func parseSqlTag(str string) (typ string, addational_typ string, size int) { } addational_typ = m["NOT NULL"] + " " + m["UNIQUE"] + + if len(m["DEFAULT"]) > 0 { + addational_typ = addational_typ + "DEFAULT " + m["DEFAULT"] + } + } return }