record_user_diamond.go 382 B

1234567891011121314151617
  1. package sql
  2. import "gorm.io/gorm"
  3. type RecordUserDiamond struct {
  4. gorm.Model
  5. UserID uint `gorm:"not null;comment:用户标识"`
  6. User RecordUser `gorm:"foreignKey:UserID`
  7. FormDiamond int64
  8. Diamond int64
  9. ToDiamond int64
  10. Reason string `gorm:"not null`
  11. }
  12. func (r *RecordUserDiamond) TableName() string {
  13. return tableName("record_user_diamond")
  14. }