diff --git a/src/model/article_user_like.go b/src/model/article_user_like.go new file mode 100644 index 0000000..0022156 --- /dev/null +++ b/src/model/article_user_like.go @@ -0,0 +1,12 @@ +package model + +import ( + "time" +) + +type ArticleUserLike struct { + Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + Uid int `json:"uid" xorm:"default 0 INT(11)"` + ArticleId int `json:"article_id" xorm:"default 0 INT(11)"` + CreateAt time.Time `json:"create_at" xorm:"DATETIME"` +}