Documentation ¶
Index ¶
Constants ¶
View Source
const DDLPrimaryKey = "primaryKey"
View Source
const DDLUniqueIndex = "uniqueIndex"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct { Field string `json:"field" orm:"column_name"` // 字段名 Type string `json:"type" orm:"column_type"` // 字段类型 Kind string `json:"kind" orm:"DATA_TYPE"` // 字段类型 Comment string `json:"comment" orm:"column_comment"` // 字段注释 TableName string `json:"tableName" orm:"table_name"` // Default string `orm:"COLUMN_DEFAULT"` // NotNull string `orm:"IS_NULLABLE"` // not null/null EXTRA string Size string `orm:"NUMERIC_PRECISION"` PrimaryKey bool DDLTag map[string]string }
Click to show internal directories.
Click to hide internal directories.