// models/client.go package models import "time" type Client struct { ID int `json:"id"` Username string `json:"username"` Password string `json:"-"` // Ne jamais exposer le password dans le JSON Nom string `json:"nom"` Prenom string `json:"prenom"` Telephone string `json:"telephone"` Command int `json:"command"` Point int `json:"point"` PointZipette int `json:"points_zipette"` PointsExtra map[string]int `json:"points_extra"` // pools[2+] Amende float64 `json:"amende"` CancellationsCount int `json:"cancellations_count"` LastPenaltyReason string `json:"last_penalty_reason"` MustChangePassword bool `json:"must_change_password"` PushToken string `json:"-"` ReferralBalance float64 `json:"referral_balance"` CreatedAt time.Time `json:"created_at"` }