Private
Public Access
14 lines
311 B
Go
14 lines
311 B
Go
package models
|
|
|
|
|
|
type Factura struct {
|
|
Comprobante
|
|
ClienteID uint `gorm:"column:ClienteID"`
|
|
Cliente Cliente `gorm:"foreignKey:ClienteID" json:"cliente"`
|
|
Detalles []FacturaDetalle `gorm:"type:json" json:"detalles,omitempty"`
|
|
}
|
|
|
|
func (Factura) TableName() string {
|
|
return "factura"
|
|
}
|