From b6d935523a3b85799b9b98e08fadea5a8766ba18 Mon Sep 17 00:00:00 2001 From: Sergey Lanzman Date: Mon, 12 Dec 2016 22:34:13 +0200 Subject: [PATCH] add inet type for Postgres --- g_appcode.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/g_appcode.go b/g_appcode.go index 5453ed0..e20cc63 100644 --- a/g_appcode.go +++ b/g_appcode.go @@ -130,7 +130,8 @@ var typeMappingPostgres = map[string]string{ "USER-DEFINED": "string", // user defined "uuid": "string", // uuid "json": "string", // json - "jsonb": "string", + "jsonb": "string", // jsonb + "inet": "string", // ip address } // Table represent a table in a database @@ -1148,7 +1149,7 @@ import ( "github.com/astaxie/beego" ) -// {{ctrlName}}Controller oprations for {{ctrlName}} +// {{ctrlName}}Controller operations for {{ctrlName}} type {{ctrlName}}Controller struct { beego.Controller }