Private
Public Access
17 lines
488 B
Go
17 lines
488 B
Go
package models
|
|
|
|
import "gorm.io/datatypes"
|
|
|
|
type Devolucion struct {
|
|
Comprobante
|
|
Motivo string `gorm:"type:varchar(200);not null" json:"motivo"`
|
|
FacturaOrigen Factura `gorm:"foreignKey:FacturaOrigenID" json:"facturaOrigen"`
|
|
FacturaOrigenID uint `gorm:"column:facturaOrigenID;not null" json:"facturaOrigenId"`
|
|
|
|
Detalles datatypes.JSONSlice[DevolucionDetalle] `gorm:"type:json" json:"detalles,omitempty"`
|
|
}
|
|
|
|
func (Devolucion) TableName() string {
|
|
return "devolucion"
|
|
}
|