mirror of
				https://github.com/beego/bee.git
				synced 2025-11-03 23:03:27 +00:00 
			
		
		
		
	add jsonb and timestamp with time zone to postgres data types
This commit is contained in:
		@@ -118,6 +118,7 @@ var typeMappingPostgres = map[string]string{
 | 
				
			|||||||
	"time":                        "time.Time",
 | 
						"time":                        "time.Time",
 | 
				
			||||||
	"timestamp":                   "time.Time",
 | 
						"timestamp":                   "time.Time",
 | 
				
			||||||
	"timestamp without time zone": "time.Time",
 | 
						"timestamp without time zone": "time.Time",
 | 
				
			||||||
 | 
						"timestamp with time zone":    "time.Time",
 | 
				
			||||||
	"interval":                    "string",  // time interval, string for now
 | 
						"interval":                    "string",  // time interval, string for now
 | 
				
			||||||
	"real":                        "float32", // float & decimal
 | 
						"real":                        "float32", // float & decimal
 | 
				
			||||||
	"double precision":            "float64",
 | 
						"double precision":            "float64",
 | 
				
			||||||
@@ -130,6 +131,7 @@ var typeMappingPostgres = map[string]string{
 | 
				
			|||||||
	"USER-DEFINED":                "string",  // user defined
 | 
						"USER-DEFINED":                "string",  // user defined
 | 
				
			||||||
	"uuid":                        "string",  // uuid
 | 
						"uuid":                        "string",  // uuid
 | 
				
			||||||
	"json":                        "string",  // json
 | 
						"json":                        "string",  // json
 | 
				
			||||||
 | 
						"jsonb":                       "string",
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Table represent a table in a database
 | 
					// Table represent a table in a database
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user