Convert your Go struct into a SQL table

Supported types are ints, float, string and time.Time. Placing a type that is unsupported will map the column as VARCHAR/BLOB, depending on the database dialect. The field name will be used as the column name. There are bugs regarding CamelCase to snake case conversion. This involves a SQL column name starting with character '_', please report the input used to generate this output to the repo's' issues.
If you think this should support field tags, open an issue on this website's repo with the format you think would work best.

Go Code :

SQL Code :

Custom types will convert the specified Go type to the specified sql type. Add custom types prior to conversion.

Defined types (refresh the page to clear)