Extend model with sections & model
This commit is contained in:
parent
0351eeafd4
commit
4be15c2f12
4 changed files with 77 additions and 1 deletions
18
models/people.go
Normal file
18
models/people.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Person struct {
|
||||
gorm.Model
|
||||
FirstName string
|
||||
LastName string
|
||||
Email string
|
||||
Phone string
|
||||
Mobile string
|
||||
Address1 string
|
||||
Address2 string
|
||||
PostalCode string
|
||||
City string
|
||||
SectionID uint
|
||||
Section Section
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue