feat: add and delete amende and point by admin

This commit is contained in:
2026-04-22 14:00:43 +02:00
parent 8f617e04d1
commit 7605fce9f4
5 changed files with 323 additions and 2 deletions
+1 -1
View File
@@ -17,8 +17,8 @@ type Client struct {
LastPenaltyReason string `gorm:"column:last_penalty_reason" json:"last_penalty_reason"`
MustChangePassword bool `gorm:"column:must_change_password;default:false" json:"must_change_password"`
ReferralBalance float64 `gorm:"column:referral_balance;default:0" json:"referral_balance"`
// points_extra est un JSONB géré manuellement (type non supporté nativement par GORM)
PointsExtra map[string]int `gorm:"-" json:"points_extra"`
Parrain string `gorm:"column:parrain" json:"parrain"`
CreatedAt time.Time `gorm:"autoCreateTime" json:"created_at"`
UpdatedAt time.Time `gorm:"autoUpdateTime" json:"updated_at"`
}