21 lines
764 B
Go
21 lines
764 B
Go
// 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"`
|
|
Amende float64 `json:"amende"`
|
|
CancellationsCount int `json:"cancellations_count"` // ✅ NOUVEAU
|
|
LastPenaltyReason string `json:"last_penalty_reason"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|