Files
omnex/control-plane/api/internal/sub/models.go
T
Nuxgrid 6b4274d12b
docker-publish / publish (push) Failing after 14m14s
feat: add api
2026-07-27 16:06:19 +02:00

18 lines
601 B
Go

package sub
import (
"time"
)
// CodeBuySub représente un code de souscription associé à un utilisateur.
type CodeBuySub struct {
ID string `gorm:"type:uuid;primaryKey" json:"id"`
Username string `gorm:"size:64;not null" json:"username"`
CodeBuy string `gorm:"uniqueIndex;type:varchar(50);not null" json:"code_verif"`
CreatedAt time.Time `gorm:"index;autoCreateTime" json:"created_at"`
UpdatedAt time.Time `gorm:"autoUpdateTime" json:"updated_at"`
}
// TableName définit explicitement le nom de la table.
func (CodeBuySub) TableName() string { return "code_buy_subs" }