flarum_api_keys.auto.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Code generated by dol build. DO NOT EDIT.
  2. // source: auto.go
  3. package model
  4. import (
  5. "github.com/2637309949/dolphin/packages/null"
  6. )
  7. // FlarumApiKeys defined
  8. type FlarumApiKeys struct {
  9. //
  10. Key null.String `xorm:"varchar(100) notnull 'key'" json:"key" xml:"key"`
  11. //
  12. ID null.Int `xorm:"int(10) pk notnull autoincr 'id'" json:"id" xml:"id"`
  13. //
  14. AllowedIps null.String `xorm:"varchar(255) 'allowed_ips'" json:"allowed_ips" xml:"allowed_ips"`
  15. //
  16. Scopes null.String `xorm:"varchar(255) 'scopes'" json:"scopes" xml:"scopes"`
  17. //
  18. UserId null.Int `xorm:"int(10) 'user_id'" json:"user_id" xml:"user_id"`
  19. //
  20. LastActivityAt null.Time `xorm:"datetime 'last_activity_at'" json:"last_activity_at" xml:"last_activity_at"`
  21. // Creator
  22. CreateBy null.String `xorm:"varchar(36) comment('Creator') 'create_by'" json:"create_by" xml:"create_by"`
  23. // Creation time
  24. CreateTime null.Time `xorm:"datetime comment('Creation time') 'create_time'" json:"create_time" xml:"create_time"`
  25. // Last updated by
  26. UpdateBy null.String `xorm:"varchar(36) comment('Last updated by') 'update_by'" json:"update_by" xml:"update_by"`
  27. // Last update time
  28. UpdateTime null.Time `xorm:"datetime comment('Last update time') 'update_time'" json:"update_time" xml:"update_time"`
  29. // Delete tag
  30. DelFlag null.Int `xorm:"notnull comment('Delete tag') 'del_flag'" json:"del_flag" xml:"del_flag"`
  31. // Remark
  32. Remark null.String `xorm:"varchar(200) comment('Remark') 'remark'" json:"remark" xml:"remark"`
  33. }
  34. // TableName table name of defined FlarumApiKeys
  35. func (m *FlarumApiKeys) TableName() string {
  36. return "flarum_api_keys"
  37. }