到 GitHub 上改进本页面

Custom Fields

  1. TypeBooleanField = 1 << iota
  2. // string
  3. TypeCharField
  4. // string
  5. TypeTextField
  6. // time.Time
  7. TypeDateField
  8. // time.Time
  9. TypeDateTimeField
  10. // int16
  11. TypeSmallIntegerField
  12. // int32
  13. TypeIntegerField
  14. // int64
  15. TypeBigIntegerField
  16. // uint16
  17. TypePositiveSmallIntegerField
  18. // uint32
  19. TypePositiveIntegerField
  20. // uint64
  21. TypePositiveBigIntegerField
  22. // float64
  23. TypeFloatField
  24. // float64
  25. TypeDecimalField
  26. RelForeignKey
  27. RelOneToOne
  28. RelManyToMany
  29. RelReverseOne
  30. RelReverseMany

comments powered by Disqus

原文:

https://beego.me/docs/mvc/model/custom_fields.md