Open GeekEast opened 4 years ago
uuid
, suggest to generate type as uuid.NullUUID
CHARACTER varying
type Company struct {
Tags sql.NullString `gorm:"column:tags;type:VARCHAR;default:'{}';" json:"tags"`
}
@GeekEast I added uuid support for postgres handling it as a string - Looking into CHARACTER varying
CREATE TABLE order_details (
order_id smallint NOT NULL,
product_id smallint NOT NULL,
unit_price real NOT NULL,
quantity smallint NOT NULL,
discount real NOT NULL
);
It seems like gen doesn't support the real
type of Postgresql
table: order_details unable to generate struct field: unit_price type: FLOAT4 error: unknown sql type: float4
table: order_details unable to generate struct field: discount type: FLOAT4 error: unknown sql type: float4
gen
outputs errors like:Issues
gen
doesn't support theuuid
typegen
doesn't support theCHARACTER Varying[]
type