Removing primary key marks to avoid postgres ID problem

This commit is contained in:
Lukas Bachschwell 2018-11-13 21:40:26 +01:00
parent 00f4288c25
commit eda7540c90
4 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ import (
) )
type CompanyData struct { type CompanyData struct {
Id int `orm:"column(id);pk"` Id int `orm:"column(id);"`
Key string `orm:"column(key)"` Key string `orm:"column(key)"`
Value string `orm:"column(value);null"` Value string `orm:"column(value);null"`
Data string `orm:"column(data);null"` Data string `orm:"column(data);null"`

View File

@ -11,7 +11,7 @@ import (
) )
type CompanyUser struct { type CompanyUser struct {
Id int `orm:"column(id);pk"` Id int `orm:"column(id);"`
Name string `orm:"column(name)"` Name string `orm:"column(name)"`
Role int16 `orm:"column(role)"` Role int16 `orm:"column(role)"`
Profile string `orm:"column(profile)"` Profile string `orm:"column(profile)"`

View File

@ -11,7 +11,7 @@ import (
) )
type Contact struct { type Contact struct {
Id int `orm:"column(id);pk"` Id int `orm:"column(id);"`
FirstName string `orm:"column(firstName);null"` FirstName string `orm:"column(firstName);null"`
LastName string `orm:"column(lastName)"` LastName string `orm:"column(lastName)"`
PhoneNumber string `orm:"column(phoneNumber);null"` PhoneNumber string `orm:"column(phoneNumber);null"`

View File

@ -11,7 +11,7 @@ import (
) )
type Post struct { type Post struct {
Id int `orm:"column(id);pk"` Id int `orm:"column(id);"`
Name string `orm:"column(name);null"` Name string `orm:"column(name);null"`
Data string `orm:"column(data)"` Data string `orm:"column(data)"`
Meta string `orm:"column(meta)"` Meta string `orm:"column(meta)"`