Private
Public Access
feat: añadida entidad de devoluciones
This commit is contained in:
1 parent
bd65f3477a
commit
a85af05dae
4 files changed
+54
-8
No files matched your search
@@ -0,0 +1,12 @@
|
||||
package models
|
||||
|
||||
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"`
|
||||
}
|
||||
|
||||
func (Devolucion) TableName() string {
|
||||
return "devolucion"
|
||||
}
|
||||
Reference in new issue
Block a user