Private
Public Access
17 lines
445 B
Go
17 lines
445 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:facturaID" json:"facturas,omitempty"`
|
|
Recibos []Recibo `gorm:"foreignKey:reciboID"`
|
|
}
|