Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Let's see an example of models with all these cases:
type User struct {
kallax.Model `table:"users"`
kallax.Timestamps
kallax.ID int64 `pk:"autoincr"`
ID int64 `pk:"autoincr"`
Username string
Password string
Emails []string
Expand Down
2 changes: 1 addition & 1 deletion generator/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const (
IntegerColumn ColumnType = "integer"
BigIntColumn ColumnType = "bigint"
RealColumn ColumnType = "real"
DoubleColumn ColumnType = "double"
DoubleColumn ColumnType = "double precision"
SmallSerialColumn ColumnType = "smallserial"
SerialColumn ColumnType = "serial"
BigSerialColumn ColumnType = "bigserial"
Expand Down