Private
Public Access
añadido campo de cuit
This commit is contained in:
1 parent
4dc208f6fc
commit
2982ffb8fe
3 files changed
+5
-2
No files matched your search
@@ -9,6 +9,7 @@ import (
|
|||||||
type Cliente struct {
|
type Cliente struct {
|
||||||
gorm.Model
|
gorm.Model
|
||||||
Nombre string `gorm:"type:varchar(40)" json:"nombre"`
|
Nombre string `gorm:"type:varchar(40)" json:"nombre"`
|
||||||
|
Cuit string `gorm:"type:varchar(11);uniqueIndex;not null" json:"cuit"`
|
||||||
Email sql.NullString `gorm:"type:varchar(80)" json:"email"`
|
Email sql.NullString `gorm:"type:varchar(80)" json:"email"`
|
||||||
Facturas []Factura `gorm:"foreignKey:facturaID" json:"facturas,omitempty"`
|
Facturas []Factura `gorm:"foreignKey:facturaID" json:"facturas,omitempty"`
|
||||||
Recibos []Recibo `gorm:"foreignKey:reciboID"`
|
Recibos []Recibo `gorm:"foreignKey:reciboID"`
|
||||||
|
|||||||
@@ -82,6 +82,8 @@ Almacen "1" --> "0..*" Stock
|
|||||||
|
|
||||||
class "Cliente" as CC {
|
class "Cliente" as CC {
|
||||||
Nombre: string
|
Nombre: string
|
||||||
|
Cuit: string
|
||||||
|
Email: string?
|
||||||
Facturas: []Factura
|
Facturas: []Factura
|
||||||
Recibos: []Recibo
|
Recibos: []Recibo
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user