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