// models/client.go package models import "time" type Client struct { ID int `gorm:"primaryKey;autoIncrement" json:"id"` Username string `gorm:"column:username" json:"username"` Password string `gorm:"column:password" json:"-"` Nom string `gorm:"column:nom" json:"nom"` Prenom string `gorm:"column:prenom" json:"prenom"` Telephone string `gorm:"column:telephone" json:"telephone"` Command int `gorm:"column:command" json:"command"` PointsExtra map[string]int `gorm:"-" json:"points_extra"` Amende float64 `gorm:"column:amende" json:"amende"` CancellationsCount int `gorm:"column:cancellations_count" json:"cancellations_count"` LastPenaltyReason string `gorm:"column:last_penalty_reason" json:"last_penalty_reason"` MustChangePassword bool `gorm:"column:must_change_password" json:"must_change_password"` ReferralBalance float64 `gorm:"column:referral_balance" json:"referral_balance"` CreatedAt time.Time `gorm:"autoCreateTime" json:"created_at"` } func (Client) TableName() string { return "clients" }