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 {
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"`

View File

@ -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)"`

View File

@ -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"`

View File

@ -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)"`