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.

point_account_log.go 736 B

3 years ago
3 years ago
3 years ago
123456789101112131415161718192021
  1. package models
  2. import "code.gitea.io/gitea/modules/timeutil"
  3. const (
  4. IncreaseAccountBalance = "increase"
  5. DecreaseAccountBalance = "decrease"
  6. )
  7. type PointAccountLog struct {
  8. ID int64 `xorm:"pk autoincr"`
  9. AccountCode string `xorm:"INDEX NOT NULL"`
  10. UserId int64 `xorm:"INDEX NOT NULL"`
  11. Type string `xorm:"NOT NULL"`
  12. SourceId string `xorm:"INDEX NOT NULL"`
  13. PointsAmount int64 `xorm:"NOT NULL"`
  14. BalanceBefore int64 `xorm:"NOT NULL"`
  15. BalanceAfter int64 `xorm:"NOT NULL"`
  16. AccountVersion int64 `xorm:"NOT NULL"`
  17. CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
  18. }