Private
Public Access
avance creando entidades
This commit is contained in:
1 parent
1d755376f6
commit
7cadb9c84b
25 files changed
+200
-47
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package models_seguridad
|
||||
|
||||
type Empresa struct {
|
||||
ID string `gorm:"primaryKey;type:varchar(3)" json:"id"`
|
||||
Razon string `gorm:"uniqueIndex;not null;type:varchar(70)" json:"razon"`
|
||||
Direccion string `gorm:"type:text" json:"direccion,omitempty"`
|
||||
Telefono string `gorm:"type:varchar(20)" json:"telefono,omitempty"`
|
||||
Email string `gorm:"type:varchar(100)" json:"email,omitempty"`
|
||||
}
|
||||
|
||||
func (Empresa) TableName() string {
|
||||
return "empresa"
|
||||
}
|
||||
Reference in new issue
Block a user