一物一码
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

14 righe
512 B

  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. }