一物一码
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

article_like_log.go 512 B

12345678910111213
  1. package model
  2. import (
  3. "time"
  4. )
  5. type ArticleLikeLog struct {
  6. Id int64 `json:"id" xorm:"pk autoincr BIGINT(20)"`
  7. ArticleId int64 `json:"article_id" xorm:"not null default 0 comment('文章ID') unique(IDX_LOG) BIGINT(20)"`
  8. Uid int `json:"uid" xorm:"not null default 0 comment('用户ID') unique(IDX_LOG) INT(10)"`
  9. //CreatedAt time.Time `json:"created_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('创建时间') TIMESTAMP"`
  10. CreatedAt time.Time `json:"created_at" xorm:"created"`
  11. }