Private
Public Access
13 lines
307 B
Go
13 lines
307 B
Go
package models
|
|
|
|
type NotaDebito struct {
|
|
Comprobante
|
|
Motivo string `gorm:"type:varchar(40);not null"`
|
|
FacturaOrigen Factura `gorm:"foreignKey:FacturaOrigenID" json:"factura"`
|
|
FacturaOrigenID uint `gorm:"column:facturaID"`
|
|
}
|
|
|
|
func (NotaDebito) TableName() string {
|
|
return "nota_debito"
|
|
}
|