You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

blockchain.go 627 B

1234567891011121314151617181920212223
  1. package models
  2. import (
  3. "code.gitea.io/gitea/modules/timeutil"
  4. "time"
  5. )
  6. type BlockChain struct {
  7. ID int64 `xorm:"pk autoincr"`
  8. Contributor string `xorm:"INDEX NOT NULL"`
  9. ContractAddress string `xorm:"INDEX NOT NULL"`
  10. Action string `xorm:"INDEX"`
  11. Amount int64 `xorm:"INDEX"`
  12. UserID int64 `xorm:"INDEX"`
  13. RepoID int64 `xorm:"INDEX"`
  14. CreatedUnix timeutil.TimeStamp `xorm:"created"`
  15. UpdatedUnix timeutil.TimeStamp `xorm:"updated"`
  16. DeletedAt time.Time `xorm:"deleted"`
  17. User *User `xorm:"-"`
  18. Repo *Repository `xorm:"-"`
  19. }