Adding Modified By relation
This commit is contained in:
@ -11,12 +11,13 @@ import (
|
||||
)
|
||||
|
||||
type CompanyData struct {
|
||||
Id int `orm:"column(id);"`
|
||||
Key string `orm:"column(key)"`
|
||||
Value string `orm:"column(value);null"`
|
||||
Data string `orm:"column(data);null"`
|
||||
Created time.Time `orm:"column(created);type(timestamp with time zone);auto_now_add"`
|
||||
Modified time.Time `orm:"column(modified);type(timestamp with time zone);auto_now_add"`
|
||||
Id int `orm:"column(id);"`
|
||||
Key string `orm:"column(key)"`
|
||||
Value string `orm:"column(value);null"`
|
||||
Data string `orm:"column(data);null"`
|
||||
ModifiedBy int64 `orm:"column(modifiedBy);"`
|
||||
Created time.Time `orm:"column(created);type(timestamp with time zone);auto_now_add"`
|
||||
Modified time.Time `orm:"column(modified);type(timestamp with time zone);auto_now_add"`
|
||||
}
|
||||
|
||||
func (t *CompanyData) TableName() string {
|
||||
|
@ -11,12 +11,13 @@ import (
|
||||
)
|
||||
|
||||
type CompanyUser struct {
|
||||
Id int `orm:"column(id);"`
|
||||
Name string `orm:"column(name)"`
|
||||
Role int16 `orm:"column(role)"`
|
||||
Profile string `orm:"column(profile)"`
|
||||
Created time.Time `orm:"column(created);type(timestamp with time zone);auto_now_add"`
|
||||
Modified time.Time `orm:"column(modified);type(timestamp with time zone);auto_now_add"`
|
||||
Id int `orm:"column(id);"`
|
||||
Name string `orm:"column(name)"`
|
||||
Role int16 `orm:"column(role)"`
|
||||
Profile string `orm:"column(profile)"`
|
||||
ModifiedBy int64 `orm:"column(modifiedBy);"`
|
||||
Created time.Time `orm:"column(created);type(timestamp with time zone);auto_now_add"`
|
||||
Modified time.Time `orm:"column(modified);type(timestamp with time zone);auto_now_add"`
|
||||
}
|
||||
|
||||
func (t *CompanyUser) TableName() string {
|
||||
|
@ -18,6 +18,7 @@ type Contact struct {
|
||||
Email string `orm:"column(email);null"`
|
||||
LastContact time.Time `orm:"column(lastContact);type(date);null"`
|
||||
Meta string `orm:"column(meta)"`
|
||||
ModifiedBy int64 `orm:"column(modifiedBy);"`
|
||||
Created time.Time `orm:"column(created);type(timestamp with time zone);auto_now_add"`
|
||||
Modified time.Time `orm:"column(modified);type(timestamp with time zone);auto_now_add"`
|
||||
}
|
||||
|
@ -11,12 +11,13 @@ import (
|
||||
)
|
||||
|
||||
type Post struct {
|
||||
Id int `orm:"column(id);"`
|
||||
Name string `orm:"column(name);null"`
|
||||
Data string `orm:"column(data)"`
|
||||
Meta string `orm:"column(meta)"`
|
||||
Created time.Time `orm:"column(created);type(timestamp with time zone);auto_now_add"`
|
||||
Modified time.Time `orm:"column(modified);type(timestamp with time zone);auto_now_add"`
|
||||
Id int `orm:"column(id);"`
|
||||
Name string `orm:"column(name);null"`
|
||||
Data string `orm:"column(data)"`
|
||||
Meta string `orm:"column(meta)"`
|
||||
ModifiedBy int64 `orm:"column(modifiedBy);"`
|
||||
Created time.Time `orm:"column(created);type(timestamp with time zone);auto_now_add"`
|
||||
Modified time.Time `orm:"column(modified);type(timestamp with time zone);auto_now_add"`
|
||||
}
|
||||
|
||||
func (t *Post) TableName() string {
|
||||
|
Reference in New Issue
Block a user