17 lines
637 B
Go
17 lines
637 B
Go
|
|
package models
|
||
|
|
|
||
|
|
import "git.apinb.com/bsm-sdk/core/types"
|
||
|
|
|
||
|
|
// feed 关联附件表
|
||
|
|
type FeedRelateAttach struct {
|
||
|
|
types.Std_IDIdentity
|
||
|
|
Identity string `gorm:"column:identity;type:varchar(36);uniqueIndex;"`
|
||
|
|
PostIdentity string `gorm:"column:post_identity;type:varchar(36);index;" json:"post_identity"` // 推文唯一码
|
||
|
|
AttachType string `gorm:"column:attach_type;type:varchar(36);index;" json:"attach_type"` // 附件类型
|
||
|
|
Url string `gorm:"column:url;type:varchar(255);index;" json:"url"` // 附件地址
|
||
|
|
}
|
||
|
|
|
||
|
|
func (table *FeedRelateAttach) TableName() string {
|
||
|
|
return "feed_relate_attach"
|
||
|
|
}
|