Adding Modified By relation
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user