Adding Modified By relation

This commit is contained in:
2018-11-16 13:37:18 +01:00
parent dc1778a5b9
commit e79ece15aa
14 changed files with 38 additions and 24 deletions

View File

@ -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 {

View File

@ -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 {

View File

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

View File

@ -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 {