mirror of
https://github.com/astaxie/beego.git
synced 2025-07-03 16:40:18 +00:00
orm set relation column name #259
This commit is contained in:
@ -150,7 +150,7 @@ func NewTag() *Tag {
|
||||
|
||||
type Comment struct {
|
||||
Id int
|
||||
Post *Post `orm:"rel(fk)"`
|
||||
Post *Post `orm:"rel(fk);column(post)"`
|
||||
Content string `orm:"type(text)"`
|
||||
Parent *Comment `orm:"null;rel(fk)"`
|
||||
Created time.Time `orm:"auto_now_add"`
|
||||
|
Reference in New Issue
Block a user