Private
Public Access
- Update Dockerfile.dev to use golang:1.27‑alpine and set go.mod go version to 1.27. - Convert Marca fields in DTOs, builders, and controller to uint and use ObtenerPorID. - Adjust RepositorioMarcas to use generic models.Marca and remove the obsolete ObtenerPorId method. - Add SeAviso bool flag to the Factura model. - Fix AltaRepuesto ID conversion from uint64 to uint. - Add gorm.io/datatypes as a direct dependency in go.mod.
15 lines
364 B
Go
15 lines
364 B
Go
package models
|
|
|
|
|
|
type Factura struct {
|
|
Comprobante
|
|
ClienteID uint `gorm:"column:ClienteID"`
|
|
Cliente Cliente `gorm:"foreignKey:ClienteID" json:"cliente"`
|
|
SeAviso bool `gorm:"" json:"seAviso"`
|
|
Detalles []FacturaDetalle `gorm:"type:json" json:"detalles,omitempty"`
|
|
}
|
|
|
|
func (Factura) TableName() string {
|
|
return "factura"
|
|
}
|