37 lines
616 B
Go
37 lines
616 B
Go
package models
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"github.com/google/uuid"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type Person struct {
|
|
gorm.Model
|
|
IsMember bool
|
|
IsContact bool
|
|
FirstName string
|
|
LastName string
|
|
Email string
|
|
Phone string
|
|
Mobile string
|
|
Address1 string
|
|
Address2 string
|
|
PostalCode string
|
|
City string
|
|
SectionID uint
|
|
Section Section
|
|
}
|
|
|
|
type PersonAccount struct {
|
|
gorm.Model
|
|
PersonID uint
|
|
Person Person
|
|
UUID uuid.UUID `gorm:"unique"`
|
|
Enabled bool
|
|
Groups string
|
|
AccountCreated sql.NullTime
|
|
InvitationSent sql.NullTime
|
|
UpdateNeeded bool
|
|
}
|