From eda7540c903784c5ca3eb63c2e5dcde7bc37af40 Mon Sep 17 00:00:00 2001 From: Lukas Bachschwell Date: Tue, 13 Nov 2018 21:40:26 +0100 Subject: [PATCH] Removing primary key marks to avoid postgres ID problem --- models/companyData.go | 2 +- models/companyUser.go | 2 +- models/contact.go | 2 +- models/post.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/models/companyData.go b/models/companyData.go index 4aeea47..0dbf339 100644 --- a/models/companyData.go +++ b/models/companyData.go @@ -11,7 +11,7 @@ import ( ) type CompanyData struct { - Id int `orm:"column(id);pk"` + Id int `orm:"column(id);"` Key string `orm:"column(key)"` Value string `orm:"column(value);null"` Data string `orm:"column(data);null"` diff --git a/models/companyUser.go b/models/companyUser.go index e8eebc5..8da620b 100644 --- a/models/companyUser.go +++ b/models/companyUser.go @@ -11,7 +11,7 @@ import ( ) type CompanyUser struct { - Id int `orm:"column(id);pk"` + Id int `orm:"column(id);"` Name string `orm:"column(name)"` Role int16 `orm:"column(role)"` Profile string `orm:"column(profile)"` diff --git a/models/contact.go b/models/contact.go index 814ebcd..ab9e93a 100644 --- a/models/contact.go +++ b/models/contact.go @@ -11,7 +11,7 @@ import ( ) type Contact struct { - Id int `orm:"column(id);pk"` + Id int `orm:"column(id);"` FirstName string `orm:"column(firstName);null"` LastName string `orm:"column(lastName)"` PhoneNumber string `orm:"column(phoneNumber);null"` diff --git a/models/post.go b/models/post.go index 498ed17..7864475 100644 --- a/models/post.go +++ b/models/post.go @@ -11,7 +11,7 @@ import ( ) type Post struct { - Id int `orm:"column(id);pk"` + Id int `orm:"column(id);"` Name string `orm:"column(name);null"` Data string `orm:"column(data)"` Meta string `orm:"column(meta)"`