Removing primary key marks to avoid postgres ID problem
This commit is contained in:
parent
00f4288c25
commit
eda7540c90
@ -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"`
|
||||
|
@ -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)"`
|
||||
|
@ -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"`
|
||||
|
@ -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)"`
|
||||
|
Loading…
Reference in New Issue
Block a user