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 {
|
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"`
|
||||||
|
@ -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)"`
|
||||||
|
@ -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"`
|
||||||
|
@ -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)"`
|
||||||
|
Loading…
Reference in New Issue
Block a user