refactor code

This commit is contained in:
kevin
2020-09-03 14:00:09 +08:00
parent 3a4e1cbb33
commit 8dd93d59a0
2 changed files with 11 additions and 7 deletions

View File

@@ -16,9 +16,7 @@ const (
spatial
)
const (
timeImport = "time.Time"
)
const timeImport = "time.Time"
type (
Table struct {
@@ -26,10 +24,12 @@ type (
PrimaryKey Primary
Fields []Field
}
Primary struct {
Field
AutoIncrement bool
}
Field struct {
Name stringx.String
DataBaseType string
@@ -38,6 +38,7 @@ type (
IsPrimaryKey bool
Comment string
}
KeyType int
)