1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-12-15 09:44:47 +02:00
crud_generator/examples/default/templates/configs_/mapping.json
2023-12-01 16:00:11 +03:00

572 lines
15 KiB
JSON

{
"mappings": [
{
"sql_type": "bit",
"go_type": "bool",
"json_type": "Boolean",
"protobuf_type": "bool",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullBool",
"swagger_type": "bool"
},
{
"sql_type": "bool",
"go_type": "bool",
"json_type": "Boolean",
"protobuf_type": "bool",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullBool",
"swagger_type": "bool"
},
{
"sql_type": "tinyint",
"go_type": "int32",
"json_type": "Integer",
"protobuf_type": "int32",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt32",
"swagger_type": "int"
},
{
"sql_type": "int",
"go_type": "int32",
"json_type": "Integer",
"protobuf_type": "int32",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt32",
"swagger_type": "int"
},
{
"sql_type": "smallint",
"size": 2,
"go_type": "int32",
"json_type": "Integer",
"protobuf_type": "int32",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt32",
"swagger_type": "int"
},
{
"sql_type": "mediumint",
"go_type": "int32",
"json_type": "Integer",
"protobuf_type": "int32",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt32",
"swagger_type": "int"
},
{
"sql_type": "int4",
"go_type": "int32",
"json_type": "Integer",
"protobuf_type": "int32",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt32",
"swagger_type": "int"
},
{
"sql_type": "int2",
"go_type": "int32",
"json_type": "Integer",
"protobuf_type": "int32",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt32",
"swagger_type": "int"
},
{
"sql_type": "integer",
"go_type": "int32",
"json_type": "Integer",
"protobuf_type": "int32",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt32",
"swagger_type": "int"
},
{
"sql_type": "bigint",
"go_type": "int64",
"json_type": "Integer",
"protobuf_type": "int64",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt64",
"swagger_type": "int64"
},
{
"sql_type": "int8",
"go_type": "int64",
"json_type": "Integer",
"protobuf_type": "int64",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt64",
"swagger_type": "int64"
},
{
"sql_type": "char",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "enum",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "varchar",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "nvarchar",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "longtext",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "mediumtext",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "text",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "tinytext",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "varchar2",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "inet",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "json",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "datatypes.JSON",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "jsonb",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "datatypes.JSON",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "nchar",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "date",
"go_type": "time.Time",
"json_type": "Text",
"protobuf_type": "google.protobuf.Timestamp",
"guregu_type": "null.Time",
"go_nullable_type": "time.Time",
"swagger_type": "time.Time"
},
{
"sql_type": "datetime2",
"go_type": "time.Time",
"json_type": "Text",
"protobuf_type": "google.protobuf.Timestamp",
"guregu_type": "null.Time",
"go_nullable_type": "time.Time",
"swagger_type": "time.Time"
},
{
"sql_type": "datetime",
"go_type": "time.Time",
"json_type": "Text",
"protobuf_type": "google.protobuf.Timestamp",
"guregu_type": "null.Time",
"go_nullable_type": "time.Time",
"swagger_type": "time.Time"
},
{
"sql_type": "time",
"go_type": "time.Time",
"json_type": "Text",
"protobuf_type": "google.protobuf.Timestamp",
"guregu_type": "null.Time",
"go_nullable_type": "time.Time",
"swagger_type": "time.Time"
},
{
"sql_type": "timestamp",
"go_type": "time.Time",
"json_type": "Text",
"protobuf_type": "uint64",
"guregu_type": "null.Time",
"go_nullable_type": "time.Time",
"swagger_type": "time.Time"
},
{
"sql_type": "timestamptz",
"go_type": "time.Time",
"json_type": "Text",
"protobuf_type": "uint64",
"guregu_type": "null.Time",
"go_nullable_type": "time.Time",
"swagger_type": "time.Time"
},
{
"sql_type": "smalldatetime",
"go_type": "time.Time",
"json_type": "Text",
"protobuf_type": "google.protobuf.Timestamp",
"guregu_type": "null.Time",
"go_nullable_type": "time.Time",
"swagger_type": "time.Time"
},
{
"sql_type": "decimal",
"go_type": "float64",
"json_type": "Float",
"protobuf_type": "float",
"guregu_type": "null.Float",
"go_nullable_type": "sql.NullFloat64",
"swagger_type": "float64"
},
{
"sql_type": "double",
"go_type": "float64",
"json_type": "Float",
"protobuf_type": "float",
"guregu_type": "null.Float",
"go_nullable_type": "sql.NullFloat64",
"swagger_type": "float64"
},
{
"sql_type": "money",
"go_type": "float64",
"json_type": "Float",
"protobuf_type": "float",
"guregu_type": "null.Float",
"go_nullable_type": "sql.NullFloat64",
"swagger_type": "float64"
},
{
"sql_type": "real",
"go_type": "float64",
"json_type": "Float",
"protobuf_type": "float",
"guregu_type": "null.Float",
"go_nullable_type": "sql.NullFloat64",
"swagger_type": "float64"
},
{
"sql_type": "float4",
"go_type": "float32",
"json_type": "Float",
"protobuf_type": "float",
"guregu_type": "null.Float",
"go_nullable_type": "sql.NullFloat64",
"swagger_type": "float32"
},
{
"sql_type": "float",
"go_type": "float32",
"json_type": "Float",
"protobuf_type": "float",
"guregu_type": "null.Float",
"go_nullable_type": "sql.NullFloat64",
"swagger_type": "float32"
},
{
"sql_type": "float8",
"go_type": "float64",
"json_type": "Float",
"protobuf_type": "float",
"guregu_type": "null.Float",
"go_nullable_type": "sql.NullFloat64",
"swagger_type": "float64"
},
{
"sql_type": "binary",
"go_type": "[]byte",
"json_type": "Text",
"protobuf_type": "bytes",
"guregu_type": "[]byte",
"go_nullable_type": "[]byte",
"swagger_type": "[]byte"
},
{
"sql_type": "blob",
"go_type": "[]byte",
"json_type": "Text",
"protobuf_type": "bytes",
"guregu_type": "[]byte",
"go_nullable_type": "[]byte",
"swagger_type": "[]byte"
},
{
"sql_type": "longblob",
"go_type": "[]byte",
"json_type": "Text",
"protobuf_type": "bytes",
"guregu_type": "[]byte",
"go_nullable_type": "[]byte",
"swagger_type": "[]byte"
},
{
"sql_type": "mediumblob",
"go_type": "[]byte",
"json_type": "Text",
"protobuf_type": "bytes",
"guregu_type": "[]byte",
"go_nullable_type": "[]byte",
"swagger_type": "[]byte"
},
{
"sql_type": "varbinary",
"go_type": "[]byte",
"json_type": "Text",
"protobuf_type": "bytes",
"guregu_type": "[]byte",
"go_nullable_type": "[]byte",
"swagger_type": "[]byte"
},
{
"sql_type": "numeric",
"go_type": "float64",
"json_type": "Float",
"protobuf_type": "float",
"guregu_type": "null.Float",
"go_nullable_type": "sql.NullFloat64",
"swagger_type": "float64"
},
{
"sql_type": "bpchar",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "tsvector",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "_text",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "bytea",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "USER_DEFINED",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "bytes",
"guregu_type": "interface{}",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "uuid",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "string",
"guregu_type": "null.String",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "",
"go_type": "string",
"json_type": "Text",
"protobuf_type": "bytes",
"guregu_type": "interface{}",
"go_nullable_type": "sql.NullString",
"swagger_type": "string"
},
{
"sql_type": "utinyint",
"go_type": "uint32",
"json_type": "Integer",
"protobuf_type": "uint32",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt64",
"swagger_type": "int"
},
{
"sql_type": "usmallint",
"go_type": "uint32",
"json_type": "Integer",
"protobuf_type": "uint32",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt64",
"swagger_type": "int"
},
{
"sql_type": "umediumint",
"go_type": "uint32",
"json_type": "Integer",
"protobuf_type": "uint32",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt64",
"swagger_type": "int"
},
{
"sql_type": "uint",
"go_type": "uint32",
"json_type": "Integer",
"protobuf_type": "uint32",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt64",
"swagger_type": "int"
},
{
"sql_type": "ubigint",
"go_type": "uint64",
"json_type": "Integer",
"protobuf_type": "uint64",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt64",
"swagger_type": "int64"
},
{
"sql_type": "udecimal",
"go_type": "float64",
"json_type": "Float",
"protobuf_type": "float",
"guregu_type": "null.Float",
"go_nullable_type": "sql.NullFloat64",
"swagger_type": "float64"
},
{
"sql_type": "udouble",
"go_type": "float64",
"json_type": "Float",
"protobuf_type": "float",
"guregu_type": "null.Float",
"go_nullable_type": "sql.NullFloat64",
"swagger_type": "float64"
},
{
"sql_type": "ufloat",
"go_type": "float32",
"json_type": "Float",
"protobuf_type": "float",
"guregu_type": "null.Float",
"go_nullable_type": "sql.NullFloat64",
"swagger_type": "float32"
},
{
"sql_type": "smallserial",
"size": 2,
"custom": "postgres",
"go_type": "int32",
"json_type": "Integer",
"protobuf_type": "int32",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt64",
"swagger_type": "int"
},
{
"sql_type": "serial",
"size": 4,
"custom": "postgres",
"go_type": "int32",
"json_type": "Integer",
"protobuf_type": "int32",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt64",
"swagger_type": "int"
},
{
"sql_type": "bigserial",
"size": 8,
"custom": "postgres",
"go_type": "int32",
"json_type": "Integer",
"protobuf_type": "int32",
"guregu_type": "null.Int",
"go_nullable_type": "sql.NullInt64",
"swagger_type": "int"
}
]
}