Private
Public Access
17 lines
471 B
Go
17 lines
471 B
Go
package models
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type Cliente struct {
|
|
gorm.Model
|
|
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"`
|
|
Facturas []Factura `gorm:"foreignKey:ClienteID" json:"facturas,omitempty"`
|
|
Recibos []Recibo `gorm:"foreignKey:ClienteID" json:"recibos,omitempty"`
|
|
}
|