Private
Public Access
16 lines
567 B
Go
16 lines
567 B
Go
package contabilidad
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type MovimientoContable struct {
|
|
gorm.Model
|
|
EmpresaID uint `gorm:"not null;default:1;index" json:"empresaId"`
|
|
AsientoID uint `gorm:"column:asientoID"`
|
|
Asiento AsientoContable `gorm:"foreignKey:AsientoID"`
|
|
CuentaID uint `gorm:"column:cuentaID"`
|
|
Cuenta CuentaContable `gorm:"foreignKey:CuentaID"`
|
|
Debe float64 `gorm:"type:decimal(10,2)"`
|
|
Haber float64 `gorm:"type:decimal(10,2)"`
|
|
Descripcion string `gorm:"type:varchar(50)"`
|
|
}
|