form

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2018 License: CC0-1.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LayoutAddress                             = "Address"
	LayoutBirthPlace                          = "Birthplace"
	LayoutBirthPlaceWithoutCounty             = "Birthplace without County"
	LayoutCountry                             = "Country"
	LayoutUSCityStateInternationalCity        = "US City, State, International city"
	LayoutUSCityStateInternationalCityCountry = "US City, State, International city country"
	LayoutCityState                           = "City, State"
	LayoutStreetCityCountry                   = "Street, City, Country"
	LayoutCityCountry                         = "City, Country"
	LayoutUSCityStateZipcodeInternationalCity = "US City, State, Zipcode International city"
	LayoutCityStateCountry                    = "City, State, Country"
	LayoutUSAddress                           = "US Address"
	LayoutStreetCity                          = "Street, City"
)

Different potential layouts used by the frontend. File: /src/components/Form/Location/Layouts.js

Variables

View Source
var DefaultTemplate = defaultTemplate

Functions

func Application

func Application(context *db.DatabaseContext, account int, hashable bool) []byte

Application returns the application state in JSON format.

func ApplicationData

func ApplicationData(context *db.DatabaseContext, account int, hashable bool) (map[string]interface{}, error)

func Hash

func Hash(context *db.DatabaseContext, account int) [sha256.Size]byte

Hash returns the computed hash checksum of the application state

func Metadata

func Metadata(context *db.DatabaseContext, account int, locked bool) []byte

func Package

func Package(context *db.DatabaseContext, account int, hashable bool) template.HTML

Package an application for transmitting to cold storage

func PurgeAccountStorage

func PurgeAccountStorage(context *db.DatabaseContext, account int)

PurgeAccountStorage removes all data associated with an account

Types

type Benefit

type Benefit struct {
	PayloadBegin                Payload `json:"Began,omitempty" sql:"-"`
	PayloadEnd                  Payload `json:"End,omitempty" sql:"-"`
	PayloadFrequency            Payload `json:"Frequency,omitempty" sql:"-"`
	PayloadOtherFrequency       Payload `json:"OtherFrequency,omitempty" sql:"-"`
	PayloadReceived             Payload `json:"Received,omitempty" sql:"-"`
	PayloadCountry              Payload `json:"Country" sql:"-"`
	PayloadValue                Payload `json:"Value" sql:"-"`
	PayloadValueEstimated       Payload `json:"ValueEstimated" sql:"-"`
	PayloadReason               Payload `json:"Reason" sql:"-"`
	PayloadObligated            Payload `json:"Obligated" sql:"-"`
	PayloadObligatedExplanation Payload `json:"ObligatedExplanation" sql:"-"`

	// Validator specific fields
	Begin                *DateControl `json:"-"`
	End                  *DateControl `json:"-"`
	Frequency            *Radio       `json:"-"`
	OtherFrequency       *Textarea    `json:"-"`
	Received             *DateControl `json:"-"`
	Country              *Country     `json:"-"`
	Value                *Number      `json:"-"`
	ValueEstimated       *Checkbox    `json:"-"`
	Reason               *Textarea    `json:"-"`
	Obligated            *Branch      `json:"-"`
	ObligatedExplanation *Textarea    `json:"-"`

	// Persister specific fields
	ID                     int `json:"-"`
	AccountID              int `json:"-"`
	BeginID                int `json:"-" pg:",fk:Begin"`
	EndID                  int `json:"-" pg:",fk:End"`
	FrequencyID            int `json:"-" pg:",fk:Frequency"`
	OtherFrequencyID       int `json:"-" pg:",fk:OtherFrequency"`
	ReceivedID             int `json:"-" pg:",fk:Received"`
	CountryID              int `json:"-" pg:",fk:Country"`
	ValueID                int `json:"-" pg:",fk:Value"`
	ValueEstimatedID       int `json:"-" pg:",fk:ValueEstimated"`
	ReasonID               int `json:"-" pg:",fk:Reason"`
	ObligatedID            int `json:"-" pg:",fk:Obligated"`
	ObligatedExplanationID int `json:"-" pg:",fk:ObligatedExplanation"`
}

func (*Benefit) Delete

func (entity *Benefit) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*Benefit) Get

func (entity *Benefit) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*Benefit) GetID

func (entity *Benefit) GetID() int

GetID returns the entity identifier.

func (*Benefit) Marshal

func (entity *Benefit) Marshal() Payload

Marshal to payload structure

func (*Benefit) Save

func (entity *Benefit) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*Benefit) SetID

func (entity *Benefit) SetID(id int)

SetID sets the entity identifier.

func (*Benefit) Unmarshal

func (entity *Benefit) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Benefit) Valid

func (entity *Benefit) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Branch

type Branch struct {
	ID    int    `json:"-"`
	Value string `json:"value"`
}

Branch is a basic yes/no input.

func (*Branch) Delete

func (entity *Branch) Delete(context *db.DatabaseContext, account int) (int, error)

Delete the Branch entity.

func (*Branch) Get

func (entity *Branch) Get(context *db.DatabaseContext, account int) (int, error)

Get the Branch entity.

func (*Branch) GetID

func (entity *Branch) GetID() int

GetID returns the entity identifier.

func (*Branch) Marshal

func (entity *Branch) Marshal() Payload

Marshal to payload structure

func (*Branch) Save

func (entity *Branch) Save(context *db.DatabaseContext, account int) (int, error)

Save the Branch entity.

func (*Branch) SetID

func (entity *Branch) SetID(id int)

SetID sets the entity identifier.

func (*Branch) Unmarshal

func (entity *Branch) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Branch) Valid

func (entity *Branch) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Checkbox

type Checkbox struct {
	ID      int    `json:"-"`
	Value   string `json:"value"`
	Checked bool   `json:"checked,omitempty"`
}

Checkbox is a basic input.

func (*Checkbox) Delete

func (entity *Checkbox) Delete(context *db.DatabaseContext, account int) (int, error)

func (*Checkbox) Get

func (entity *Checkbox) Get(context *db.DatabaseContext, account int) (int, error)

func (*Checkbox) GetID

func (entity *Checkbox) GetID() int

ID returns the entity identifier.

func (*Checkbox) Marshal

func (entity *Checkbox) Marshal() Payload

Marshal to payload structure

func (*Checkbox) Save

func (entity *Checkbox) Save(context *db.DatabaseContext, account int) (int, error)

func (*Checkbox) SetID

func (entity *Checkbox) SetID(id int)

SetID sets the entity identifier.

func (*Checkbox) Unmarshal

func (entity *Checkbox) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Checkbox) Valid

func (entity *Checkbox) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CheckboxGroup

type CheckboxGroup struct {
	ID     int      `json:"-"`
	Values []string `json:"values"`
}

CheckboxGroup is a basic input.

func (*CheckboxGroup) Delete

func (entity *CheckboxGroup) Delete(context *db.DatabaseContext, account int) (int, error)

func (*CheckboxGroup) Get

func (entity *CheckboxGroup) Get(context *db.DatabaseContext, account int) (int, error)

func (*CheckboxGroup) GetID

func (entity *CheckboxGroup) GetID() int

ID returns the entity identifier.

func (*CheckboxGroup) Marshal

func (entity *CheckboxGroup) Marshal() Payload

Marshal to payload structure

func (*CheckboxGroup) Save

func (entity *CheckboxGroup) Save(context *db.DatabaseContext, account int) (int, error)

func (*CheckboxGroup) SetID

func (entity *CheckboxGroup) SetID(id int)

SetID sets the entity identifier.

func (*CheckboxGroup) Unmarshal

func (entity *CheckboxGroup) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*CheckboxGroup) Valid

func (entity *CheckboxGroup) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CitizenshipComments

type CitizenshipComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

CitizenshipComments subsection of identification section.

func (*CitizenshipComments) Delete

func (entity *CitizenshipComments) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*CitizenshipComments) Get

func (entity *CitizenshipComments) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*CitizenshipComments) GetID

func (entity *CitizenshipComments) GetID() int

GetID returns the entity identifier.

func (*CitizenshipComments) Marshal

func (entity *CitizenshipComments) Marshal() Payload

Marshal to payload structure

func (*CitizenshipComments) Save

func (entity *CitizenshipComments) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*CitizenshipComments) SetID

func (entity *CitizenshipComments) SetID(id int)

SetID sets the entity identifier.

func (*CitizenshipComments) Unmarshal

func (entity *CitizenshipComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*CitizenshipComments) Valid

func (entity *CitizenshipComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CitizenshipMultiple

type CitizenshipMultiple struct {
	PayloadHasMultiple Payload `json:"HasMultiple" sql:"-"`
	PayloadList        Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasMultiple *Branch     `json:"-"`
	List        *Collection `json:"-"`

	// Persister specific fields
	ID            int `json:"-"`
	HasMultipleID int `json:"-" pg:", fk:HasMultiple"`
	ListID        int `json:"-" pg:", fk:List"`
}

func (*CitizenshipMultiple) Delete

func (entity *CitizenshipMultiple) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*CitizenshipMultiple) Get

func (entity *CitizenshipMultiple) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*CitizenshipMultiple) GetID

func (entity *CitizenshipMultiple) GetID() int

ID returns the entity identifier.

func (*CitizenshipMultiple) Marshal

func (entity *CitizenshipMultiple) Marshal() Payload

Marshal to payload structure

func (*CitizenshipMultiple) Save

func (entity *CitizenshipMultiple) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*CitizenshipMultiple) SetID

func (entity *CitizenshipMultiple) SetID(id int)

SetID sets the entity identifier.

func (*CitizenshipMultiple) Unmarshal

func (entity *CitizenshipMultiple) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*CitizenshipMultiple) Valid

func (entity *CitizenshipMultiple) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CitizenshipPassports

type CitizenshipPassports struct {
	PayloadPassports Payload `json:"Passports" sql:"-"`

	// Validator specific fields
	Passports *Collection `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	PassportsID int `json:"-" pg:", fk:Passports"`
}

func (*CitizenshipPassports) Delete

func (entity *CitizenshipPassports) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*CitizenshipPassports) Get

func (entity *CitizenshipPassports) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*CitizenshipPassports) GetID

func (entity *CitizenshipPassports) GetID() int

ID returns the entity identifier.

func (*CitizenshipPassports) Marshal

func (entity *CitizenshipPassports) Marshal() Payload

Marshal to payload structure

func (*CitizenshipPassports) Save

func (entity *CitizenshipPassports) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*CitizenshipPassports) SetID

func (entity *CitizenshipPassports) SetID(id int)

SetID sets the entity identifier.

func (*CitizenshipPassports) Unmarshal

func (entity *CitizenshipPassports) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*CitizenshipPassports) Valid

func (entity *CitizenshipPassports) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CitizenshipStatus

type CitizenshipStatus struct {
	PayloadCitizenshipStatus           Payload `json:"CitizenshipStatus" sql:"-"`
	PayloadAbroadDocumentation         Payload `json:"AbroadDocumentation" sql:"-"`
	PayloadExplanation                 Payload `json:"Explanation" sql:"-"`
	PayloadDocumentNumber              Payload `json:"DocumentNumber" sql:"-"`
	PayloadDocumentIssued              Payload `json:"DocumentIssued" sql:"-"`
	PayloadDocumentName                Payload `json:"DocumentName" sql:"-"`
	PayloadDocumentExpiration          Payload `json:"DocumentExpiration" sql:"-"`
	PayloadDocumentType                Payload `json:"DocumentType" sql:"-"`
	PayloadPlaceIssued                 Payload `json:"PlaceIssued" sql:"-"`
	PayloadCertificateNumber           Payload `json:"CertificateNumber" sql:"-"`
	PayloadCertificateIssued           Payload `json:"CertificateIssued" sql:"-"`
	PayloadCertificateName             Payload `json:"CertificateName" sql:"-"`
	PayloadCertificateCourtName        Payload `json:"CertificateCourtName" sql:"-"`
	PayloadCertificateCourtAddress     Payload `json:"CertificateCourtAddress" sql:"-"`
	PayloadBornOnMilitaryInstallation  Payload `json:"BornOnMilitaryInstallation" sql:"-"`
	PayloadMilitaryBase                Payload `json:"MilitaryBase" sql:"-"`
	PayloadEntryDate                   Payload `json:"EntryDate" sql:"-"`
	PayloadEntryLocation               Payload `json:"EntryLocation" sql:"-"`
	PayloadPriorCitizenship            Payload `json:"PriorCitizenship" sql:"-"`
	PayloadHasAlienRegistration        Payload `json:"HasAlienRegistration" sql:"-"`
	PayloadAlienRegistrationNumber     Payload `json:"AlienRegistrationNumber" sql:"-"`
	PayloadAlienRegistrationExpiration Payload `json:"AlienRegistrationExpiration" sql:"-"`
	PayloadBasis                       Payload `json:"Basis" sql:"-"`
	PayloadPermanentResidentCardNumber Payload `json:"PermanentResidentCardNumber" sql:"-"`
	PayloadResidenceStatus             Payload `json:"ResidenceStatus" sql:"-"`

	// Validator specific fields
	CitizenshipStatus           *Radio       `json:"-"`
	AbroadDocumentation         *Radio       `json:"-"`
	Explanation                 *Textarea    `json:"-"`
	DocumentNumber              *Text        `json:"-"`
	DocumentIssued              *DateControl `json:"-"`
	DocumentName                *Name        `json:"-"`
	DocumentExpiration          *DateControl `json:"-"`
	DocumentType                *Radio       `json:"-"`
	PlaceIssued                 *Location    `json:"-"`
	CertificateNumber           *Text        `json:"-"`
	CertificateIssued           *DateControl `json:"-"`
	CertificateName             *Name        `json:"-"`
	CertificateCourtName        *Text        `json:"-"`
	CertificateCourtAddress     *Location    `json:"-"`
	BornOnMilitaryInstallation  *Branch      `json:"-"`
	MilitaryBase                *Text        `json:"-"`
	EntryDate                   *DateControl `json:"-"`
	EntryLocation               *Location    `json:"-"`
	PriorCitizenship            *Country     `json:"-"`
	HasAlienRegistration        *Branch      `json:"-"`
	AlienRegistrationNumber     *Text        `json:"-"`
	AlienRegistrationExpiration *DateControl `json:"-"`
	Basis                       *Radio       `json:"-"`
	PermanentResidentCardNumber *Text        `json:"-"`
	ResidenceStatus             *Text        `json:"-"`

	// Persister specific fields
	ID                            int `json:"-"`
	CitizenshipStatusID           int `json:"-" pg:", fk:CitizenshipStatus"`
	AbroadDocumentationID         int `json:"-" pg:", fk:AbroadDocumentation"`
	ExplanationID                 int `json:"-" pg:", fk:Explanation"`
	DocumentNumberID              int `json:"-" pg:", fk:DocumentNumber"`
	DocumentIssuedID              int `json:"-" pg:", fk:DocumentIssued"`
	DocumentNameID                int `json:"-" pg:", fk:DocumentName"`
	DocumentExpirationID          int `json:"-" pg:", fk:DocumentExpiration"`
	DocumentTypeID                int `json:"-" pg:", fk:DocumentType"`
	PlaceIssuedID                 int `json:"-" pg:", fk:PlaceIssued"`
	CertificateNumberID           int `json:"-" pg:", fk:CertificateNumber"`
	CertificateIssuedID           int `json:"-" pg:", fk:CertificateIssued"`
	CertificateNameID             int `json:"-" pg:", fk:CertificateName"`
	CertificateCourtNameID        int `json:"-" pg:", fk:CertificateCourtName"`
	CertificateCourtAddressID     int `json:"-" pg:", fk:CertificateCourtAddress"`
	BornOnMilitaryInstallationID  int `json:"-" pg:", fk:BornOnMilitaryInstallation"`
	MilitaryBaseID                int `json:"-" pg:", fk:MilitaryBase"`
	EntryDateID                   int `json:"-" pg:", fk:EntryDate"`
	EntryLocationID               int `json:"-" pg:", fk:EntryLocation"`
	PriorCitizenshipID            int `json:"-" pg:", fk:PriorCitizenship"`
	HasAlienRegistrationID        int `json:"-" pg:", fk:HasAlienRegistration"`
	AlienRegistrationNumberID     int `json:"-" pg:", fk:AlienRegistrationNumber"`
	AlienRegistrationExpirationID int `json:"-" pg:", fk:AlienRegistrationExpiration"`
	BasisID                       int `json:"-" pg:", fk:Basis"`
	PermanentResidentCardNumberID int `json:"-" pg:", fk:PermanentResidentCardNumber"`
	ResidenceStatusID             int `json:"-" pg:", fk:ResidenceStatus"`
}

func (*CitizenshipStatus) Delete

func (entity *CitizenshipStatus) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*CitizenshipStatus) Get

func (entity *CitizenshipStatus) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*CitizenshipStatus) GetID

func (entity *CitizenshipStatus) GetID() int

ID returns the entity identifier.

func (*CitizenshipStatus) Marshal

func (entity *CitizenshipStatus) Marshal() Payload

Marshal to payload structure

func (*CitizenshipStatus) Save

func (entity *CitizenshipStatus) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*CitizenshipStatus) SetID

func (entity *CitizenshipStatus) SetID(id int)

SetID sets the entity identifier.

func (*CitizenshipStatus) Unmarshal

func (entity *CitizenshipStatus) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*CitizenshipStatus) Valid

func (entity *CitizenshipStatus) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CivilUnion

type CivilUnion struct {
	PayloadAddress                       Payload `json:"Address" sql:"-"`
	PayloadAddressSeparated              Payload `json:"AddressSeparated" sql:"-"`
	PayloadAddressSeparatedNotApplicable Payload `json:"AddressSeparatedNotApplicable" sql:"-"`
	PayloadBirthPlace                    Payload `json:"BirthPlace" sql:"-"`
	PayloadBirthdate                     Payload `json:"Birthdate" sql:"-"`
	PayloadCitizenship                   Payload `json:"Citizenship" sql:"-"`
	PayloadDateSeparated                 Payload `json:"DateSeparated" sql:"-"`
	PayloadDivorced                      Payload `json:"Divorced" sql:"-"`
	PayloadEmail                         Payload `json:"Email" sql:"-"`
	PayloadEnteredCivilUnion             Payload `json:"EnteredCivilUnion" sql:"-"`
	PayloadForeignBornDocument           Payload `json:"ForeignBornDocument" sql:"-"`
	PayloadName                          Payload `json:"Name" sql:"-"`
	PayloadOtherNames                    Payload `json:"OtherNames" sql:"-"`
	PayloadSSN                           Payload `json:"SSN" sql:"-"`
	PayloadSeparated                     Payload `json:"Separated" sql:"-"`
	PayloadTelephone                     Payload `json:"Telephone" sql:"-"`
	PayloadUseCurrentAddress             Payload `json:"UseCurrentAddress" sql:"-"`

	// Validator specific fields
	Address                       *Location            `json:"-"`
	AddressSeparated              *Location            `json:"-"`
	AddressSeparatedNotApplicable *NotApplicable       `json:"-"`
	BirthPlace                    *Location            `json:"-"`
	Birthdate                     *DateControl         `json:"-"`
	Citizenship                   *Country             `json:"-"`
	DateSeparated                 *DateControl         `json:"-"`
	Divorced                      *Branch              `json:"-"`
	Email                         *Email               `json:"-"`
	EnteredCivilUnion             *DateControl         `json:"-"`
	ForeignBornDocument           *ForeignBornDocument `json:"-"`
	Name                          *Name                `json:"-"`
	OtherNames                    *Collection          `json:"-"`
	SSN                           *SSN                 `json:"-" sql:"-"`
	Separated                     *Branch              `json:"-"`
	Telephone                     *Telephone           `json:"-"`
	UseCurrentAddress             *NotApplicable       `json:"-"`

	// Persister specific fields
	ID                              int `json:"-" sql:",pk"`
	AccountID                       int `json:"-" sql:",pk"`
	AddressID                       int `json:"-"`
	AddressSeparatedID              int `json:"-"`
	AddressSeparatedNotApplicableID int `json:"-"`
	BirthPlaceID                    int `json:"-"`
	BirthdateID                     int `json:"-"`
	CitizenshipID                   int `json:"-"`
	DateSeparatedID                 int `json:"-"`
	DivorcedID                      int `json:"-"`
	EmailID                         int `json:"-"`
	EnteredCivilUnionID             int `json:"-"`
	ForeignBornDocumentID           int `json:"-"`
	NameID                          int `json:"-"`
	OtherNamesID                    int `json:"-"`
	SSNID                           int `json:"-"`
	SeparatedID                     int `json:"-"`
	TelephoneID                     int `json:"-"`
	UseCurrentAddressID             int `json:"-"`
}

CivilUnion is an item of named payloads.

func (*CivilUnion) Delete

func (entity *CivilUnion) Delete(context *db.DatabaseContext, account int) (int, error)

Delete the CivilUnion entity.

func (*CivilUnion) Get

func (entity *CivilUnion) Get(context *db.DatabaseContext, account int) (int, error)

Get the CivilUnion entity.

func (*CivilUnion) GetID

func (entity *CivilUnion) GetID() int

GetID returns the entity identifier.

func (*CivilUnion) Marshal

func (entity *CivilUnion) Marshal() Payload

Marshal to payload structure

func (*CivilUnion) Save

func (entity *CivilUnion) Save(context *db.DatabaseContext, account int) (int, error)

Save the CivilUnion entity.

func (*CivilUnion) SetID

func (entity *CivilUnion) SetID(id int)

SetID sets the entity identifier.

func (*CivilUnion) Unmarshal

func (entity *CivilUnion) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*CivilUnion) Valid

func (entity *CivilUnion) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ClearanceLevel

type ClearanceLevel struct {
	PayloadLevel       Payload `json:"Level" sql:"-"`
	PayloadExplanation Payload `json:"Explanation" sql:"-"`

	// Validator specific fields
	Level       *Radio    `json:"-"`
	Explanation *Textarea `json:"-"`

	// Persister specific fields
	ID            int `json:"-"`
	AccountID     int `json:"-"`
	LevelID       int `json:"-"`
	ExplanationID int `json:"-"`
}

ClearanceLevel is a basic input.

func (*ClearanceLevel) Delete

func (entity *ClearanceLevel) Delete(context *db.DatabaseContext, account int) (int, error)

Delete the ClearanceLevel entity.

func (*ClearanceLevel) Get

func (entity *ClearanceLevel) Get(context *db.DatabaseContext, account int) (int, error)

Get the ClearanceLevel entity.

func (*ClearanceLevel) GetID

func (entity *ClearanceLevel) GetID() int

GetID returns the entity identifier.

func (*ClearanceLevel) Marshal

func (entity *ClearanceLevel) Marshal() Payload

Marshal to payload structure

func (*ClearanceLevel) Save

func (entity *ClearanceLevel) Save(context *db.DatabaseContext, account int) (int, error)

Save the ClearanceLevel entity.

func (*ClearanceLevel) SetID

func (entity *ClearanceLevel) SetID(id int)

SetID sets the entity identifier.

func (*ClearanceLevel) Unmarshal

func (entity *ClearanceLevel) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ClearanceLevel) Valid

func (entity *ClearanceLevel) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CoOwners

type CoOwners struct {
	PayloadList Payload `json:"List" sql:"-"`

	// Validator specific fields
	List *Collection `json:"-"`

	// Persister specific fields
	ID        int `json:"-"`
	AccountID int `json:"-"`
	ListID    int `json:"-"`
}

func (*CoOwners) Delete

func (entity *CoOwners) Delete(context *db.DatabaseContext, account int) (int, error)

Delete the CoOwners entity.

func (*CoOwners) Get

func (entity *CoOwners) Get(context *db.DatabaseContext, account int) (int, error)

Get the CoOwners entity.

func (*CoOwners) GetID

func (entity *CoOwners) GetID() int

GetID returns the entity identifier.

func (*CoOwners) Marshal

func (entity *CoOwners) Marshal() Payload

Marshal to payload structure

func (*CoOwners) Save

func (entity *CoOwners) Save(context *db.DatabaseContext, account int) (int, error)

Save the CoOwners entity.

func (*CoOwners) SetID

func (entity *CoOwners) SetID(id int)

SetID sets the entity identifier.

func (*CoOwners) Unmarshal

func (entity *CoOwners) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*CoOwners) Valid

func (entity *CoOwners) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Collection

type Collection struct {
	PayloadBranch Payload `json:"branch" sql:"-"`

	// Validator specific fields
	Branch *Branch           `json:"-" sql:"-"`
	Items  []*CollectionItem `json:"items" sql:"-"`

	// Persister specific fields
	ID        int `json:"-"`
	AccountID int `json:"-"`
	BranchID  int `json:"-" pg:",fk:Branch"`
}

Collection represents a structure composed of items in a structured format.

func (*Collection) Delete

func (entity *Collection) Delete(context *db.DatabaseContext, account int) (int, error)

Delete the Collection entity.

func (*Collection) Get

func (entity *Collection) Get(context *db.DatabaseContext, account int) (int, error)

Get the Collection entity.

func (*Collection) GetID

func (entity *Collection) GetID() int

GetID returns the entity identifier.

func (*Collection) Marshal

func (entity *Collection) Marshal() Payload

Marshal to payload structure

func (*Collection) Save

func (entity *Collection) Save(context *db.DatabaseContext, account int) (int, error)

Save the Collection entity.

func (*Collection) SetID

func (entity *Collection) SetID(id int)

SetID sets the entity identifier.

func (*Collection) Unmarshal

func (entity *Collection) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Collection) Valid

func (entity *Collection) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CollectionItem

type CollectionItem struct {
	Item map[string]json.RawMessage `json:"Item" sql:"-"`

	ID     int    `json:"-" sql:",pk"`
	Index  int    `json:"-" sql:",pk"`
	Name   string `json:"-" sql:",pk"`
	Type   string `json:"-"`
	ItemID int    `json:"-"`
}

CollectionItem is an item of named payloads.

func (*CollectionItem) Delete

func (ci *CollectionItem) Delete(context *db.DatabaseContext, account, collectionID, index int) (int, error)

Delete the collection item

func (CollectionItem) Each

func (ci CollectionItem) Each(action func(string, string, Entity, error) error) error

Each loops through each entity in the collection item performing a given action

func (*CollectionItem) Get

func (ci *CollectionItem) Get(context *db.DatabaseContext, account, collectionID, index int) (int, error)

Get the collection item

func (*CollectionItem) GetID

func (ci *CollectionItem) GetID() int

GetID returns the entity identifier.

func (*CollectionItem) Save

func (ci *CollectionItem) Save(context *db.DatabaseContext, account, collectionID, index int) (int, error)

Save the collection item

func (*CollectionItem) SetID

func (ci *CollectionItem) SetID(id int)

SetID sets the entity identifier.

func (*CollectionItem) Valid

func (ci *CollectionItem) Valid() (bool, error)

Valid iterates through each named property of an item validating each payload.

type Contacts

type Contacts struct {
	PayloadList Payload `json:"List" sql:"-"`

	// Validator specific fields
	List *Collection `json:"-"`

	// Persister specific fields
	ID        int `json:"-"`
	AccountID int `json:"-"`
	ListID    int `json:"-"`
}

func (*Contacts) Delete

func (entity *Contacts) Delete(context *db.DatabaseContext, account int) (int, error)

Delete the Contacts entity.

func (*Contacts) Get

func (entity *Contacts) Get(context *db.DatabaseContext, account int) (int, error)

Get the Contacts entity.

func (*Contacts) GetID

func (entity *Contacts) GetID() int

GetID returns the entity identifier.

func (*Contacts) Marshal

func (entity *Contacts) Marshal() Payload

Marshal to payload structure

func (*Contacts) Save

func (entity *Contacts) Save(context *db.DatabaseContext, account int) (int, error)

Save the Contacts entity.

func (*Contacts) SetID

func (entity *Contacts) SetID(id int)

SetID sets the entity identifier.

func (*Contacts) Unmarshal

func (entity *Contacts) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Contacts) Valid

func (entity *Contacts) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Country

type Country struct {
	ID       int      `json:"-"`
	Value    []string `json:"value" pg:",array"`
	Comments string   `json:"comments,omitempty"`
}

Country is a basic input.

func (*Country) Delete

func (entity *Country) Delete(context *db.DatabaseContext, account int) (int, error)

func (*Country) Get

func (entity *Country) Get(context *db.DatabaseContext, account int) (int, error)

func (*Country) GetID

func (entity *Country) GetID() int

ID returns the entity identifier.

func (*Country) Marshal

func (entity *Country) Marshal() Payload

Marshal to payload structure

func (*Country) Save

func (entity *Country) Save(context *db.DatabaseContext, account int) (int, error)

func (*Country) SetID

func (entity *Country) SetID(id int)

SetID sets the entity identifier.

func (*Country) Unmarshal

func (entity *Country) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Country) Valid

func (entity *Country) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type DateControl

type DateControl struct {
	ID        int    `json:"-"`
	Month     string `json:"month"`
	Day       string `json:"day"`
	Year      string `json:"year"`
	Estimated bool   `json:"estimated"`
}

DateControl is a basic input.

func (*DateControl) Date

func (entity *DateControl) Date() time.Time

Date is composed from the structure properties

func (*DateControl) Delete

func (entity *DateControl) Delete(context *db.DatabaseContext, account int) (int, error)

func (*DateControl) Get

func (entity *DateControl) Get(context *db.DatabaseContext, account int) (int, error)

func (*DateControl) GetID

func (entity *DateControl) GetID() int

ID returns the entity identifier.

func (*DateControl) Marshal

func (entity *DateControl) Marshal() Payload

Marshal to payload structure

func (*DateControl) Save

func (entity *DateControl) Save(context *db.DatabaseContext, account int) (int, error)

func (*DateControl) SetID

func (entity *DateControl) SetID(id int)

SetID sets the entity identifier.

func (*DateControl) Unmarshal

func (entity *DateControl) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*DateControl) Valid

func (entity *DateControl) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type DateRange

type DateRange struct {
	PayloadFrom Payload `json:"from" sql:"-"`
	PayloadTo   Payload `json:"to" sql:"-"`
	Present     bool    `json:"present"`

	// Validator specific fields
	From *DateControl `json:"-"`
	To   *DateControl `json:"-"`

	// Persister specific fields
	ID        int `json:"-"`
	AccountID int `json:"-"`
	FromID    int `json:"-"`
	ToID      int `json:"-"`
}

DateRange is a basic input.

func (*DateRange) Delete

func (entity *DateRange) Delete(context *db.DatabaseContext, account int) (int, error)

Delete the DateRange entity.

func (*DateRange) Get

func (entity *DateRange) Get(context *db.DatabaseContext, account int) (int, error)

Get the DateRange entity.

func (*DateRange) GetID

func (entity *DateRange) GetID() int

GetID returns the entity identifier.

func (*DateRange) Marshal

func (entity *DateRange) Marshal() Payload

Marshal to payload structure

func (*DateRange) Save

func (entity *DateRange) Save(context *db.DatabaseContext, account int) (int, error)

Save the DateRange entity.

func (*DateRange) SetID

func (entity *DateRange) SetID(id int)

SetID sets the entity identifier.

func (*DateRange) Unmarshal

func (entity *DateRange) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*DateRange) Valid

func (entity *DateRange) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Email

type Email struct {
	ID    int    `json:"-"`
	Value string `json:"value"`
}

Email is a basic input.

func (*Email) Delete

func (entity *Email) Delete(context *db.DatabaseContext, account int) (int, error)

func (*Email) Get

func (entity *Email) Get(context *db.DatabaseContext, account int) (int, error)

func (*Email) GetID

func (entity *Email) GetID() int

ID returns the entity identifier.

func (*Email) Marshal

func (entity *Email) Marshal() Payload

Marshal to payload structure

func (*Email) Save

func (entity *Email) Save(context *db.DatabaseContext, account int) (int, error)

func (*Email) SetID

func (entity *Email) SetID(id int)

SetID sets the entity identifier.

func (*Email) Unmarshal

func (entity *Email) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Email) Valid

func (entity *Email) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type EmploymentActivity

type EmploymentActivity struct {
	ID               int    `json:"-"`
	Value            string `json:"value"`
	OtherExplanation string `json:"otherExplanation,omitempty"`
}

EmploymentActivity is a basic input.

func (*EmploymentActivity) Delete

func (entity *EmploymentActivity) Delete(context *db.DatabaseContext, account int) (int, error)

func (*EmploymentActivity) Get

func (entity *EmploymentActivity) Get(context *db.DatabaseContext, account int) (int, error)

func (*EmploymentActivity) GetID

func (entity *EmploymentActivity) GetID() int

ID returns the entity identifier.

func (*EmploymentActivity) Marshal

func (entity *EmploymentActivity) Marshal() Payload

Marshal to payload structure

func (*EmploymentActivity) Save

func (entity *EmploymentActivity) Save(context *db.DatabaseContext, account int) (int, error)

func (*EmploymentActivity) SetID

func (entity *EmploymentActivity) SetID(id int)

SetID sets the entity identifier.

func (*EmploymentActivity) Unmarshal

func (entity *EmploymentActivity) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*EmploymentActivity) Valid

func (entity *EmploymentActivity) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Entity

type Entity interface {
	Identifier
	Marshaller
	Validator
	Persister
}

Entity is a structure which can marshall, validate, and persist.

type FinancialBankruptcy

type FinancialBankruptcy struct {
	PayloadHasBankruptcy Payload `json:"HasBankruptcy" sql:"-"`
	PayloadList          Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasBankruptcy *Branch     `json:"-"`
	List          *Collection `json:"-"`

	// Persister specific fields
	ID              int `json:"-"`
	HasBankruptcyID int `json:"-" pg:", fk:HasBankruptcy"`
	ListID          int `json:"-" pg:", fk:List"`
}

func (*FinancialBankruptcy) Delete

func (entity *FinancialBankruptcy) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialBankruptcy) Get

func (entity *FinancialBankruptcy) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialBankruptcy) GetID

func (entity *FinancialBankruptcy) GetID() int

GetID returns the entity identifier.

func (*FinancialBankruptcy) Marshal

func (entity *FinancialBankruptcy) Marshal() Payload

Marshal to payload structure

func (*FinancialBankruptcy) Save

func (entity *FinancialBankruptcy) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*FinancialBankruptcy) SetID

func (entity *FinancialBankruptcy) SetID(id int)

SetID sets the entity identifier.

func (*FinancialBankruptcy) Unmarshal

func (entity *FinancialBankruptcy) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialBankruptcy) Valid

func (entity *FinancialBankruptcy) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FinancialCard

type FinancialCard struct {
	PayloadHasCardAbuse Payload `json:"HasCardAbuse" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasCardAbuse *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasCardAbuseID int `json:"-" pg:", fk:HasCardAbuse"`
	ListID         int `json:"-" pg:", fk:List"`
}

func (*FinancialCard) Delete

func (entity *FinancialCard) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialCard) Get

func (entity *FinancialCard) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialCard) GetID

func (entity *FinancialCard) GetID() int

GetID returns the entity identifier.

func (*FinancialCard) Marshal

func (entity *FinancialCard) Marshal() Payload

Marshal to payload structure

func (*FinancialCard) Save

func (entity *FinancialCard) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*FinancialCard) SetID

func (entity *FinancialCard) SetID(id int)

SetID sets the entity identifier.

func (*FinancialCard) Unmarshal

func (entity *FinancialCard) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialCard) Valid

func (entity *FinancialCard) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FinancialComments

type FinancialComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

FinancialComments subsection of identification section.

func (*FinancialComments) Delete

func (entity *FinancialComments) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialComments) Get

func (entity *FinancialComments) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialComments) GetID

func (entity *FinancialComments) GetID() int

GetID returns the entity identifier.

func (*FinancialComments) Marshal

func (entity *FinancialComments) Marshal() Payload

Marshal to payload structure

func (*FinancialComments) Save

func (entity *FinancialComments) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*FinancialComments) SetID

func (entity *FinancialComments) SetID(id int)

SetID sets the entity identifier.

func (*FinancialComments) Unmarshal

func (entity *FinancialComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialComments) Valid

func (entity *FinancialComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FinancialCredit

type FinancialCredit struct {
	PayloadHasCreditCounseling Payload `json:"HasCreditCounseling" sql:"-"`
	PayloadList                Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasCreditCounseling *Branch     `json:"-"`
	List                *Collection `json:"-"`

	// Persister specific fields
	ID                    int `json:"-"`
	HasCreditCounselingID int `json:"-" pg:", fk:HasCreditCounseling"`
	ListID                int `json:"-" pg:", fk:List"`
}

func (*FinancialCredit) Delete

func (entity *FinancialCredit) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialCredit) Get

func (entity *FinancialCredit) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialCredit) GetID

func (entity *FinancialCredit) GetID() int

GetID returns the entity identifier.

func (*FinancialCredit) Marshal

func (entity *FinancialCredit) Marshal() Payload

Marshal to payload structure

func (*FinancialCredit) Save

func (entity *FinancialCredit) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*FinancialCredit) SetID

func (entity *FinancialCredit) SetID(id int)

SetID sets the entity identifier.

func (*FinancialCredit) Unmarshal

func (entity *FinancialCredit) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialCredit) Valid

func (entity *FinancialCredit) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FinancialDelinquent

type FinancialDelinquent struct {
	PayloadHasDelinquent Payload `json:"HasDelinquent" sql:"-"`
	PayloadList          Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasDelinquent *Branch     `json:"-"`
	List          *Collection `json:"-"`

	// Persister specific fields
	ID              int `json:"-"`
	HasDelinquentID int `json:"-" pg:", fk:HasDelinquent"`
	ListID          int `json:"-" pg:", fk:List"`
}

func (*FinancialDelinquent) Delete

func (entity *FinancialDelinquent) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialDelinquent) Get

func (entity *FinancialDelinquent) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialDelinquent) GetID

func (entity *FinancialDelinquent) GetID() int

GetID returns the entity identifier.

func (*FinancialDelinquent) Marshal

func (entity *FinancialDelinquent) Marshal() Payload

Marshal to payload structure

func (*FinancialDelinquent) Save

func (entity *FinancialDelinquent) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*FinancialDelinquent) SetID

func (entity *FinancialDelinquent) SetID(id int)

SetID sets the entity identifier.

func (*FinancialDelinquent) Unmarshal

func (entity *FinancialDelinquent) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialDelinquent) Valid

func (entity *FinancialDelinquent) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FinancialGambling

type FinancialGambling struct {
	PayloadHasGamblingDebt Payload `json:"HasGamblingDebt" sql:"-"`
	PayloadList            Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasGamblingDebt *Branch     `json:"-"`
	List            *Collection `json:"-"`

	// Persister specific fields
	ID                int `json:"-"`
	HasGamblingDebtID int `json:"-" pg:", fk:HasGamblingDebt"`
	ListID            int `json:"-" pg:", fk:List"`
}

func (*FinancialGambling) Delete

func (entity *FinancialGambling) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialGambling) Get

func (entity *FinancialGambling) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialGambling) GetID

func (entity *FinancialGambling) GetID() int

GetID returns the entity identifier.

func (*FinancialGambling) Marshal

func (entity *FinancialGambling) Marshal() Payload

Marshal to payload structure

func (*FinancialGambling) Save

func (entity *FinancialGambling) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*FinancialGambling) SetID

func (entity *FinancialGambling) SetID(id int)

SetID sets the entity identifier.

func (*FinancialGambling) Unmarshal

func (entity *FinancialGambling) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialGambling) Valid

func (entity *FinancialGambling) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FinancialNonpayment

type FinancialNonpayment struct {
	PayloadHasNonpayment Payload `json:"HasNonpayment" sql:"-"`
	PayloadList          Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasNonpayment *Branch     `json:"-"`
	List          *Collection `json:"-"`

	// Persister specific fields
	ID              int `json:"-"`
	HasNonpaymentID int `json:"-" pg:", fk:HasNonpayment"`
	ListID          int `json:"-" pg:", fk:List"`
}

func (*FinancialNonpayment) Delete

func (entity *FinancialNonpayment) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialNonpayment) Get

func (entity *FinancialNonpayment) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialNonpayment) GetID

func (entity *FinancialNonpayment) GetID() int

GetID returns the entity identifier.

func (*FinancialNonpayment) Marshal

func (entity *FinancialNonpayment) Marshal() Payload

Marshal to payload structure

func (*FinancialNonpayment) Save

func (entity *FinancialNonpayment) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*FinancialNonpayment) SetID

func (entity *FinancialNonpayment) SetID(id int)

SetID sets the entity identifier.

func (*FinancialNonpayment) Unmarshal

func (entity *FinancialNonpayment) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialNonpayment) Valid

func (entity *FinancialNonpayment) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FinancialTaxes

type FinancialTaxes struct {
	PayloadHasTaxes Payload `json:"HasTaxes" sql:"-"`
	PayloadList     Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasTaxes *Branch     `json:"-"`
	List     *Collection `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	HasTaxesID int `json:"-" pg:", fk:HasTaxes"`
	ListID     int `json:"-" pg:", fk:List"`
}

func (*FinancialTaxes) Delete

func (entity *FinancialTaxes) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialTaxes) Get

func (entity *FinancialTaxes) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialTaxes) GetID

func (entity *FinancialTaxes) GetID() int

GetID returns the entity identifier.

func (*FinancialTaxes) Marshal

func (entity *FinancialTaxes) Marshal() Payload

Marshal to payload structure

func (*FinancialTaxes) Save

func (entity *FinancialTaxes) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*FinancialTaxes) SetID

func (entity *FinancialTaxes) SetID(id int)

SetID sets the entity identifier.

func (*FinancialTaxes) Unmarshal

func (entity *FinancialTaxes) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialTaxes) Valid

func (entity *FinancialTaxes) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignActivitiesBenefits

type ForeignActivitiesBenefits struct {
	PayloadHasBenefits Payload `json:"HasBenefits" sql:"-"`
	PayloadList        Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasBenefits *Branch     `json:"-"`
	List        *Collection `json:"-"`

	// Persister specific fields
	ID            int `json:"-"`
	HasBenefitsID int `json:"-" pg:", fk:HasBenefits"`
	ListID        int `json:"-" pg:", fk:List"`
}

func (*ForeignActivitiesBenefits) Delete

func (entity *ForeignActivitiesBenefits) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignActivitiesBenefits) Get

func (entity *ForeignActivitiesBenefits) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignActivitiesBenefits) GetID

func (entity *ForeignActivitiesBenefits) GetID() int

GetID returns the entity identifier.

func (*ForeignActivitiesBenefits) Marshal

func (entity *ForeignActivitiesBenefits) Marshal() Payload

Marshal to payload structure

func (*ForeignActivitiesBenefits) Save

func (entity *ForeignActivitiesBenefits) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignActivitiesBenefits) SetID

func (entity *ForeignActivitiesBenefits) SetID(id int)

SetID sets the entity identifier.

func (*ForeignActivitiesBenefits) Unmarshal

func (entity *ForeignActivitiesBenefits) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignActivitiesBenefits) Valid

func (entity *ForeignActivitiesBenefits) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignActivitiesDirect

type ForeignActivitiesDirect struct {
	PayloadHasInterests Payload `json:"HasInterests" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasInterests *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasInterestsID int `json:"-" pg:", fk:HasInterests"`
	ListID         int `json:"-" pg:", fk:List"`
}

func (*ForeignActivitiesDirect) Delete

func (entity *ForeignActivitiesDirect) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignActivitiesDirect) Get

func (entity *ForeignActivitiesDirect) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignActivitiesDirect) GetID

func (entity *ForeignActivitiesDirect) GetID() int

GetID returns the entity identifier.

func (*ForeignActivitiesDirect) Marshal

func (entity *ForeignActivitiesDirect) Marshal() Payload

Marshal to payload structure

func (*ForeignActivitiesDirect) Save

func (entity *ForeignActivitiesDirect) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignActivitiesDirect) SetID

func (entity *ForeignActivitiesDirect) SetID(id int)

SetID sets the entity identifier.

func (*ForeignActivitiesDirect) Unmarshal

func (entity *ForeignActivitiesDirect) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignActivitiesDirect) Valid

func (entity *ForeignActivitiesDirect) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignActivitiesIndirect

type ForeignActivitiesIndirect struct {
	PayloadHasInterests Payload `json:"HasInterests" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasInterests *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasInterestsID int `json:"-" pg:", fk:HasInterests"`
	ListID         int `json:"-" pg:", fk:List"`
}

func (*ForeignActivitiesIndirect) Delete

func (entity *ForeignActivitiesIndirect) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignActivitiesIndirect) Get

func (entity *ForeignActivitiesIndirect) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignActivitiesIndirect) GetID

func (entity *ForeignActivitiesIndirect) GetID() int

GetID returns the entity identifier.

func (*ForeignActivitiesIndirect) Marshal

func (entity *ForeignActivitiesIndirect) Marshal() Payload

Marshal to payload structure

func (*ForeignActivitiesIndirect) Save

func (entity *ForeignActivitiesIndirect) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignActivitiesIndirect) SetID

func (entity *ForeignActivitiesIndirect) SetID(id int)

SetID sets the entity identifier.

func (*ForeignActivitiesIndirect) Unmarshal

func (entity *ForeignActivitiesIndirect) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignActivitiesIndirect) Valid

func (entity *ForeignActivitiesIndirect) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignActivitiesRealEstate

type ForeignActivitiesRealEstate struct {
	PayloadHasInterests Payload `json:"HasInterests" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasInterests *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasInterestsID int `json:"-" pg:", fk:HasInterests"`
	ListID         int `json:"-" pg:", fk:List"`
}

func (*ForeignActivitiesRealEstate) Delete

func (entity *ForeignActivitiesRealEstate) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignActivitiesRealEstate) Get

func (entity *ForeignActivitiesRealEstate) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignActivitiesRealEstate) GetID

func (entity *ForeignActivitiesRealEstate) GetID() int

GetID returns the entity identifier.

func (*ForeignActivitiesRealEstate) Marshal

func (entity *ForeignActivitiesRealEstate) Marshal() Payload

Marshal to payload structure

func (*ForeignActivitiesRealEstate) Save

func (entity *ForeignActivitiesRealEstate) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignActivitiesRealEstate) SetID

func (entity *ForeignActivitiesRealEstate) SetID(id int)

SetID sets the entity identifier.

func (*ForeignActivitiesRealEstate) Unmarshal

func (entity *ForeignActivitiesRealEstate) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignActivitiesRealEstate) Valid

func (entity *ForeignActivitiesRealEstate) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignActivitiesSupport

type ForeignActivitiesSupport struct {
	PayloadHasForeignSupport Payload `json:"HasForeignSupport" sql:"-"`
	PayloadList              Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignSupport *Branch     `json:"-"`
	List              *Collection `json:"-"`

	// Persister specific fields
	ID                  int `json:"-"`
	HasForeignSupportID int `json:"-" pg:", fk:HasForeignSupport"`
	ListID              int `json:"-" pg:", fk:List"`
}

func (*ForeignActivitiesSupport) Delete

func (entity *ForeignActivitiesSupport) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignActivitiesSupport) Get

func (entity *ForeignActivitiesSupport) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignActivitiesSupport) GetID

func (entity *ForeignActivitiesSupport) GetID() int

GetID returns the entity identifier.

func (*ForeignActivitiesSupport) Marshal

func (entity *ForeignActivitiesSupport) Marshal() Payload

Marshal to payload structure

func (*ForeignActivitiesSupport) Save

func (entity *ForeignActivitiesSupport) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignActivitiesSupport) SetID

func (entity *ForeignActivitiesSupport) SetID(id int)

SetID sets the entity identifier.

func (*ForeignActivitiesSupport) Unmarshal

func (entity *ForeignActivitiesSupport) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignActivitiesSupport) Valid

func (entity *ForeignActivitiesSupport) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBornDocument

type ForeignBornDocument struct {
	PayloadDocumentType                    Payload `json:"DocumentType" sql:"-"`
	PayloadOtherExplanation                Payload `json:"OtherExplanation" sql:"-"`
	PayloadDocumentNumber                  Payload `json:"DocumentNumber" sql:"-"`
	PayloadDocumentExpiration              Payload `json:"DocumentExpiration" sql:"-"`
	PayloadDocumentExpirationNotApplicable Payload `json:"DocumentExpirationNotApplicable" sql:"-"`

	// Validator specific fields
	DocumentType                    *Radio         `json:"-"`
	OtherExplanation                *Textarea      `json:"-"`
	DocumentNumber                  *Text          `json:"-"`
	DocumentExpiration              *DateControl   `json:"-"`
	DocumentExpirationNotApplicable *NotApplicable `json:"-"`

	// Persister specific fields
	ID                                int `json:"-"`
	AccountID                         int `json:"-"`
	DocumentTypeID                    int `json:"-"`
	OtherExplanationID                int `json:"-"`
	DocumentNumberID                  int `json:"-"`
	DocumentExpirationID              int `json:"-"`
	DocumentExpirationNotApplicableID int `json:"-"`
}

ForeignBornDocument is a basic input.

func (*ForeignBornDocument) Delete

func (entity *ForeignBornDocument) Delete(context *db.DatabaseContext, account int) (int, error)

Delete the ForeignBornDocument entity.

func (*ForeignBornDocument) Get

func (entity *ForeignBornDocument) Get(context *db.DatabaseContext, account int) (int, error)

Get the ForeignBornDocument entity.

func (*ForeignBornDocument) GetID

func (entity *ForeignBornDocument) GetID() int

GetID returns the entity identifier.

func (*ForeignBornDocument) Marshal

func (entity *ForeignBornDocument) Marshal() Payload

Marshal to payload structure

func (*ForeignBornDocument) Save

func (entity *ForeignBornDocument) Save(context *db.DatabaseContext, account int) (int, error)

Save the ForeignBornDocument entity.

func (*ForeignBornDocument) SetID

func (entity *ForeignBornDocument) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBornDocument) Unmarshal

func (entity *ForeignBornDocument) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBornDocument) Valid

func (entity *ForeignBornDocument) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessAdvice

type ForeignBusinessAdvice struct {
	PayloadHasForeignAdvice Payload `json:"HasForeignAdvice" sql:"-"`
	PayloadList             Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignAdvice *Branch     `json:"-"`
	List             *Collection `json:"-"`

	// Persister specific fields
	ID                 int `json:"-"`
	HasForeignAdviceID int `json:"-" pg:", fk:HasForeignAdvice"`
	ListID             int `json:"-" pg:", fk:List"`
}

func (*ForeignBusinessAdvice) Delete

func (entity *ForeignBusinessAdvice) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessAdvice) Get

func (entity *ForeignBusinessAdvice) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessAdvice) GetID

func (entity *ForeignBusinessAdvice) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessAdvice) Marshal

func (entity *ForeignBusinessAdvice) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessAdvice) Save

func (entity *ForeignBusinessAdvice) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessAdvice) SetID

func (entity *ForeignBusinessAdvice) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessAdvice) Unmarshal

func (entity *ForeignBusinessAdvice) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessAdvice) Valid

func (entity *ForeignBusinessAdvice) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessConferences

type ForeignBusinessConferences struct {
	PayloadHasForeignConferences Payload `json:"HasForeignConferences" sql:"-"`
	PayloadList                  Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignConferences *Branch     `json:"-"`
	List                  *Collection `json:"-"`

	// Persister specific fields
	ID                      int `json:"-"`
	HasForeignConferencesID int `json:"-" pg:", fk:HasForeignConferences"`
	ListID                  int `json:"-" pg:", fk:List"`
}

func (*ForeignBusinessConferences) Delete

func (entity *ForeignBusinessConferences) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessConferences) Get

func (entity *ForeignBusinessConferences) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessConferences) GetID

func (entity *ForeignBusinessConferences) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessConferences) Marshal

func (entity *ForeignBusinessConferences) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessConferences) Save

func (entity *ForeignBusinessConferences) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessConferences) SetID

func (entity *ForeignBusinessConferences) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessConferences) Unmarshal

func (entity *ForeignBusinessConferences) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessConferences) Valid

func (entity *ForeignBusinessConferences) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessContact

type ForeignBusinessContact struct {
	PayloadHasForeignContact Payload `json:"HasForeignContact" sql:"-"`
	PayloadList              Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignContact *Branch     `json:"-"`
	List              *Collection `json:"-"`

	// Persister specific fields
	ID                  int `json:"-"`
	HasForeignContactID int `json:"-" pg:", fk:HasForeignContact"`
	ListID              int `json:"-" pg:", fk:List"`
}

func (*ForeignBusinessContact) Delete

func (entity *ForeignBusinessContact) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessContact) Get

func (entity *ForeignBusinessContact) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessContact) GetID

func (entity *ForeignBusinessContact) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessContact) Marshal

func (entity *ForeignBusinessContact) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessContact) Save

func (entity *ForeignBusinessContact) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessContact) SetID

func (entity *ForeignBusinessContact) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessContact) Unmarshal

func (entity *ForeignBusinessContact) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessContact) Valid

func (entity *ForeignBusinessContact) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessEmployment

type ForeignBusinessEmployment struct {
	PayloadHasForeignEmployment Payload `json:"HasForeignEmployment" sql:"-"`
	PayloadList                 Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignEmployment *Branch     `json:"-"`
	List                 *Collection `json:"-"`

	// Persister specific fields
	ID                     int `json:"-"`
	HasForeignEmploymentID int `json:"-" pg:", fk:HasForeignEmployment"`
	ListID                 int `json:"-" pg:", fk:List"`
}

func (*ForeignBusinessEmployment) Delete

func (entity *ForeignBusinessEmployment) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessEmployment) Get

func (entity *ForeignBusinessEmployment) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessEmployment) GetID

func (entity *ForeignBusinessEmployment) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessEmployment) Marshal

func (entity *ForeignBusinessEmployment) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessEmployment) Save

func (entity *ForeignBusinessEmployment) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessEmployment) SetID

func (entity *ForeignBusinessEmployment) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessEmployment) Unmarshal

func (entity *ForeignBusinessEmployment) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessEmployment) Valid

func (entity *ForeignBusinessEmployment) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessFamily

type ForeignBusinessFamily struct {
	PayloadHasForeignFamily Payload `json:"HasForeignFamily" sql:"-"`
	PayloadList             Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignFamily *Branch     `json:"-"`
	List             *Collection `json:"-"`

	// Persister specific fields
	ID                 int `json:"-"`
	HasForeignFamilyID int `json:"-" pg:", fk:HasForeignFamily"`
	ListID             int `json:"-" pg:", fk:List"`
}

func (*ForeignBusinessFamily) Delete

func (entity *ForeignBusinessFamily) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessFamily) Get

func (entity *ForeignBusinessFamily) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessFamily) GetID

func (entity *ForeignBusinessFamily) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessFamily) Marshal

func (entity *ForeignBusinessFamily) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessFamily) Save

func (entity *ForeignBusinessFamily) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessFamily) SetID

func (entity *ForeignBusinessFamily) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessFamily) Unmarshal

func (entity *ForeignBusinessFamily) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessFamily) Valid

func (entity *ForeignBusinessFamily) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessPolitical

type ForeignBusinessPolitical struct {
	PayloadHasForeignPolitical Payload `json:"HasForeignPolitical" sql:"-"`
	PayloadList                Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignPolitical *Branch     `json:"-"`
	List                *Collection `json:"-"`

	// Persister specific fields
	ID                    int `json:"-"`
	HasForeignPoliticalID int `json:"-" pg:", fk:HasForeignPolitical"`
	ListID                int `json:"-" pg:", fk:List"`
}

func (*ForeignBusinessPolitical) Delete

func (entity *ForeignBusinessPolitical) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessPolitical) Get

func (entity *ForeignBusinessPolitical) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessPolitical) GetID

func (entity *ForeignBusinessPolitical) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessPolitical) Marshal

func (entity *ForeignBusinessPolitical) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessPolitical) Save

func (entity *ForeignBusinessPolitical) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessPolitical) SetID

func (entity *ForeignBusinessPolitical) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessPolitical) Unmarshal

func (entity *ForeignBusinessPolitical) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessPolitical) Valid

func (entity *ForeignBusinessPolitical) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessSponsorship

type ForeignBusinessSponsorship struct {
	PayloadHasForeignSponsorship Payload `json:"HasForeignSponsorship" sql:"-"`
	PayloadList                  Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignSponsorship *Branch     `json:"-"`
	List                  *Collection `json:"-"`

	// Persister specific fields
	ID                      int `json:"-"`
	HasForeignSponsorshipID int `json:"-" pg:", fk:HasForeignSponsorship"`
	ListID                  int `json:"-" pg:", fk:List"`
}

func (*ForeignBusinessSponsorship) Delete

func (entity *ForeignBusinessSponsorship) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessSponsorship) Get

func (entity *ForeignBusinessSponsorship) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessSponsorship) GetID

func (entity *ForeignBusinessSponsorship) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessSponsorship) Marshal

func (entity *ForeignBusinessSponsorship) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessSponsorship) Save

func (entity *ForeignBusinessSponsorship) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessSponsorship) SetID

func (entity *ForeignBusinessSponsorship) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessSponsorship) Unmarshal

func (entity *ForeignBusinessSponsorship) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessSponsorship) Valid

func (entity *ForeignBusinessSponsorship) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessVentures

type ForeignBusinessVentures struct {
	PayloadHasForeignVentures Payload `json:"HasForeignVentures" sql:"-"`
	PayloadList               Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignVentures *Branch     `json:"-"`
	List               *Collection `json:"-"`

	// Persister specific fields
	ID                   int `json:"-"`
	HasForeignVenturesID int `json:"-" pg:", fk:HasForeignVentures"`
	ListID               int `json:"-" pg:", fk:List"`
}

func (*ForeignBusinessVentures) Delete

func (entity *ForeignBusinessVentures) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessVentures) Get

func (entity *ForeignBusinessVentures) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessVentures) GetID

func (entity *ForeignBusinessVentures) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessVentures) Marshal

func (entity *ForeignBusinessVentures) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessVentures) Save

func (entity *ForeignBusinessVentures) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessVentures) SetID

func (entity *ForeignBusinessVentures) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessVentures) Unmarshal

func (entity *ForeignBusinessVentures) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessVentures) Valid

func (entity *ForeignBusinessVentures) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessVoting

type ForeignBusinessVoting struct {
	PayloadHasForeignVoting Payload `json:"HasForeignVoting" sql:"-"`
	PayloadList             Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignVoting *Branch     `json:"-"`
	List             *Collection `json:"-"`

	// Persister specific fields
	ID                 int `json:"-"`
	HasForeignVotingID int `json:"-" pg:", fk:HasForeignVoting"`
	ListID             int `json:"-" pg:", fk:List"`
}

func (*ForeignBusinessVoting) Delete

func (entity *ForeignBusinessVoting) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessVoting) Get

func (entity *ForeignBusinessVoting) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessVoting) GetID

func (entity *ForeignBusinessVoting) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessVoting) Marshal

func (entity *ForeignBusinessVoting) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessVoting) Save

func (entity *ForeignBusinessVoting) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessVoting) SetID

func (entity *ForeignBusinessVoting) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessVoting) Unmarshal

func (entity *ForeignBusinessVoting) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessVoting) Valid

func (entity *ForeignBusinessVoting) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignComments

type ForeignComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

ForeignComments subsection of identification section.

func (*ForeignComments) Delete

func (entity *ForeignComments) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignComments) Get

func (entity *ForeignComments) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignComments) GetID

func (entity *ForeignComments) GetID() int

GetID returns the entity identifier.

func (*ForeignComments) Marshal

func (entity *ForeignComments) Marshal() Payload

Marshal to payload structure

func (*ForeignComments) Save

func (entity *ForeignComments) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignComments) SetID

func (entity *ForeignComments) SetID(id int)

SetID sets the entity identifier.

func (*ForeignComments) Unmarshal

func (entity *ForeignComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignComments) Valid

func (entity *ForeignComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignContacts

type ForeignContacts struct {
	PayloadHasForeignContacts Payload `json:"HasForeignContacts" sql:"-"`
	PayloadList               Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignContacts *Branch     `json:"-"`
	List               *Collection `json:"-"`

	// Persister specific fields
	ID                   int `json:"-"`
	HasForeignContactsID int `json:"-" pg:", fk:HasForeignContacts"`
	ListID               int `json:"-" pg:", fk:List"`
}

func (*ForeignContacts) Delete

func (entity *ForeignContacts) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignContacts) Get

func (entity *ForeignContacts) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignContacts) GetID

func (entity *ForeignContacts) GetID() int

GetID returns the entity identifier.

func (*ForeignContacts) Marshal

func (entity *ForeignContacts) Marshal() Payload

Marshal to payload structure

func (*ForeignContacts) Save

func (entity *ForeignContacts) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignContacts) SetID

func (entity *ForeignContacts) SetID(id int)

SetID sets the entity identifier.

func (*ForeignContacts) Unmarshal

func (entity *ForeignContacts) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignContacts) Valid

func (entity *ForeignContacts) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignPassport

type ForeignPassport struct {
	PayloadHasPassports Payload `json:"HasPassports" sql:"-"`
	PayloadName         Payload `json:"Name" sql:"-"`
	PayloadCard         Payload `json:"Card" sql:"-"`
	PayloadNumber       Payload `json:"Number" sql:"-"`
	PayloadIssued       Payload `json:"Issued" sql:"-"`
	PayloadExpiration   Payload `json:"Expiration" sql:"-"`
	PayloadComments     Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	HasPassports *Branch      `json:"-"`
	Name         *Name        `json:"-"`
	Card         *Radio       `json:"-"`
	Number       *Text        `json:"-"`
	Issued       *DateControl `json:"-"`
	Expiration   *DateControl `json:"-"`
	Comments     *Textarea    `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasPassportsID int `json:"-" pg:",fk:HasPassports"`
	NameID         int `json:"-" pg:",fk:Name"`
	CardID         int `json:"-" pg:",fk:Card"`
	NumberID       int `json:"-" pg:",fk:Number"`
	IssuedID       int `json:"-" pg:",fk:Issued"`
	ExpirationID   int `json:"-" pg:",fk:Expiration"`
	CommentsID     int `json:"-" pg:",fk:Comments"`
}

func (*ForeignPassport) Delete

func (entity *ForeignPassport) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignPassport) Get

func (entity *ForeignPassport) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignPassport) GetID

func (entity *ForeignPassport) GetID() int

GetID returns the entity identifier.

func (*ForeignPassport) Marshal

func (entity *ForeignPassport) Marshal() Payload

Marshal to payload structure

func (*ForeignPassport) Save

func (entity *ForeignPassport) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignPassport) SetID

func (entity *ForeignPassport) SetID(id int)

SetID sets the entity identifier.

func (*ForeignPassport) Unmarshal

func (entity *ForeignPassport) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignPassport) Valid

func (entity *ForeignPassport) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignTravel

type ForeignTravel struct {
	PayloadHasForeignTravelOutside  Payload `json:"HasForeignTravelOutside" sql:"-"`
	PayloadHasForeignTravelOfficial Payload `json:"HasForeignTravelOfficial" sql:"-"`
	PayloadList                     Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignTravelOutside  *Branch     `json:"-"`
	HasForeignTravelOfficial *Branch     `json:"-"`
	List                     *Collection `json:"-"`

	// Persister specific fields
	ID                         int `json:"-"`
	HasForeignTravelOutsideID  int `json:"-" pg:", fk:HasForeignTravelOutside"`
	HasForeignTravelOfficialID int `json:"-" pg:", fk:HasForeignTravelOfficial"`
	ListID                     int `json:"-" pg:", fk:List"`
}

func (*ForeignTravel) Delete

func (entity *ForeignTravel) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignTravel) Get

func (entity *ForeignTravel) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignTravel) GetID

func (entity *ForeignTravel) GetID() int

GetID returns the entity identifier.

func (*ForeignTravel) Marshal

func (entity *ForeignTravel) Marshal() Payload

Marshal to payload structure

func (*ForeignTravel) Save

func (entity *ForeignTravel) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*ForeignTravel) SetID

func (entity *ForeignTravel) SetID(id int)

SetID sets the entity identifier.

func (*ForeignTravel) Unmarshal

func (entity *ForeignTravel) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignTravel) Valid

func (entity *ForeignTravel) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FormMetadata

type FormMetadata struct {
	Locked bool
	Hash   string
}

type Height

type Height struct {
	ID     int `json:"-"`
	Feet   int `json:"feet"`
	Inches int `json:"inches"`
}

Height is a basic input.

func (*Height) Delete

func (entity *Height) Delete(context *db.DatabaseContext, account int) (int, error)

func (*Height) Get

func (entity *Height) Get(context *db.DatabaseContext, account int) (int, error)

func (*Height) GetID

func (entity *Height) GetID() int

ID returns the entity identifier.

func (*Height) Marshal

func (entity *Height) Marshal() Payload

Marshal to payload structure

func (*Height) Save

func (entity *Height) Save(context *db.DatabaseContext, account int) (int, error)

func (*Height) SetID

func (entity *Height) SetID(id int)

SetID sets the entity identifier.

func (*Height) Unmarshal

func (entity *Height) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Height) Valid

func (entity *Height) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type HistoryComments

type HistoryComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

HistoryComments subsection of identification section.

func (*HistoryComments) Delete

func (entity *HistoryComments) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*HistoryComments) Get

func (entity *HistoryComments) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*HistoryComments) GetID

func (entity *HistoryComments) GetID() int

GetID returns the entity identifier.

func (*HistoryComments) Marshal

func (entity *HistoryComments) Marshal() Payload

Marshal to payload structure

func (*HistoryComments) Save

func (entity *HistoryComments) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*HistoryComments) SetID

func (entity *HistoryComments) SetID(id int)

SetID sets the entity identifier.

func (*HistoryComments) Unmarshal

func (entity *HistoryComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*HistoryComments) Valid

func (entity *HistoryComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type HistoryEducation

type HistoryEducation struct {
	PayloadHasAttended Payload `json:"HasAttended" sql:"-"`
	PayloadHasDegree10 Payload `json:"HasDegree10" sql:"-"`
	PayloadList        Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasAttended *Branch     `json:"-" sql:"-"`
	HasDegree10 *Branch     `json:"-" sql:"-"`
	List        *Collection `json:"-" sql:"-"`

	// Persister specific fields
	ID            int `json:"-"`
	HasAttendedID int `json:"-" pg:", fk:HasAttended"`
	HasDegree10ID int `json:"-" pg:", fk:HasDegree10" sql:"has_degree10_id"`
	ListID        int `json:"-" pg:", fk:List"`
}

func (*HistoryEducation) Delete

func (entity *HistoryEducation) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*HistoryEducation) Get

func (entity *HistoryEducation) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*HistoryEducation) GetID

func (entity *HistoryEducation) GetID() int

GetID returns the entity identifier.

func (*HistoryEducation) Marshal

func (entity *HistoryEducation) Marshal() Payload

Marshal to payload structure

func (*HistoryEducation) Save

func (entity *HistoryEducation) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*HistoryEducation) SetID

func (entity *HistoryEducation) SetID(id int)

SetID sets the entity identifier.

func (*HistoryEducation) Unmarshal

func (entity *HistoryEducation) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*HistoryEducation) Valid

func (entity *HistoryEducation) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type HistoryEmployment

type HistoryEmployment struct {
	PayloadList             Payload `json:"List" sql:"-"`
	PayloadEmploymentRecord Payload `json:"EmploymentRecord" sql:"-"`

	// Validator specific fields
	List             *Collection `json:"-"`
	EmploymentRecord *Branch     `json:"-"`

	// Persister specific fields
	ID                 int `json:"-"`
	ListID             int `json:"-" pg:", fk:List"`
	EmploymentRecordID int `json:"-"`
}

func (*HistoryEmployment) Delete

func (entity *HistoryEmployment) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*HistoryEmployment) Get

func (entity *HistoryEmployment) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*HistoryEmployment) GetID

func (entity *HistoryEmployment) GetID() int

GetID returns the entity identifier.

func (*HistoryEmployment) Marshal

func (entity *HistoryEmployment) Marshal() Payload

Marshal to payload structure

func (*HistoryEmployment) Save

func (entity *HistoryEmployment) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*HistoryEmployment) SetID

func (entity *HistoryEmployment) SetID(id int)

SetID sets the entity identifier.

func (*HistoryEmployment) Unmarshal

func (entity *HistoryEmployment) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*HistoryEmployment) Valid

func (entity *HistoryEmployment) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type HistoryFederal

type HistoryFederal struct {
	PayloadHasFederalService Payload `json:"HasFederalService" sql:"-"`
	PayloadList              Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasFederalService *Branch     `json:"-"`
	List              *Collection `json:"-"`

	// Persister specific fields
	ID                  int `json:"-"`
	HasFederalServiceID int `json:"-" pg:", fk:HasFederalService"`
	ListID              int `json:"-" pg:", fk:List"`
}

func (*HistoryFederal) Delete

func (entity *HistoryFederal) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*HistoryFederal) Get

func (entity *HistoryFederal) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*HistoryFederal) GetID

func (entity *HistoryFederal) GetID() int

GetID returns the entity identifier.

func (*HistoryFederal) Marshal

func (entity *HistoryFederal) Marshal() Payload

Marshal to payload structure

func (*HistoryFederal) Save

func (entity *HistoryFederal) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*HistoryFederal) SetID

func (entity *HistoryFederal) SetID(id int)

SetID sets the entity identifier.

func (*HistoryFederal) Unmarshal

func (entity *HistoryFederal) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*HistoryFederal) Valid

func (entity *HistoryFederal) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type HistoryResidence

type HistoryResidence struct {
	PayloadList Payload `json:"List" sql:"-"`

	// Validator specific fields
	List *Collection `json:"-"`

	// Persister specific fields
	ID     int `json:"-"`
	ListID int `json:"-" pg:", fk:List"`
}

func (*HistoryResidence) Delete

func (entity *HistoryResidence) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*HistoryResidence) Get

func (entity *HistoryResidence) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*HistoryResidence) GetID

func (entity *HistoryResidence) GetID() int

GetID returns the entity identifier.

func (*HistoryResidence) Marshal

func (entity *HistoryResidence) Marshal() Payload

Marshal to payload structure

func (*HistoryResidence) Save

func (entity *HistoryResidence) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*HistoryResidence) SetID

func (entity *HistoryResidence) SetID(id int)

SetID sets the entity identifier.

func (*HistoryResidence) Unmarshal

func (entity *HistoryResidence) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*HistoryResidence) Valid

func (entity *HistoryResidence) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationBirthDate

type IdentificationBirthDate struct {
	PayloadDate      Payload `json:"Date" sql:"-"`
	PayloadConfirmed Payload `json:"Confirmed" sql:"-"`

	// Validator specific fields
	Date      *DateControl `json:"-"`
	Confirmed *Checkbox    `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	DateID      int `json:"-" pg:", fk:Date"`
	ConfirmedID int `json:"-"`
}

IdentificationBirthDate subsection of identification section.

func (*IdentificationBirthDate) Delete

func (entity *IdentificationBirthDate) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationBirthDate) Get

func (entity *IdentificationBirthDate) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationBirthDate) GetID

func (entity *IdentificationBirthDate) GetID() int

GetID returns the entity identifier.

func (*IdentificationBirthDate) Marshal

func (entity *IdentificationBirthDate) Marshal() Payload

Marshal to payload structure

func (*IdentificationBirthDate) Save

func (entity *IdentificationBirthDate) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*IdentificationBirthDate) SetID

func (entity *IdentificationBirthDate) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationBirthDate) Unmarshal

func (entity *IdentificationBirthDate) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationBirthDate) Valid

func (entity *IdentificationBirthDate) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationBirthPlace

type IdentificationBirthPlace struct {
	Payload Payload `json:"Location" sql:"-"`

	// Validator specific fields
	Location *Location `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	LocationID int `json:"-" pg:", fk:Location"`
}

IdentificationBirthPlace subsection of identification section.

func (*IdentificationBirthPlace) Delete

func (entity *IdentificationBirthPlace) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationBirthPlace) Get

func (entity *IdentificationBirthPlace) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationBirthPlace) GetID

func (entity *IdentificationBirthPlace) GetID() int

GetID returns the entity identifier.

func (*IdentificationBirthPlace) Marshal

func (entity *IdentificationBirthPlace) Marshal() Payload

Marshal to payload structure

func (*IdentificationBirthPlace) Save

func (entity *IdentificationBirthPlace) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*IdentificationBirthPlace) SetID

func (entity *IdentificationBirthPlace) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationBirthPlace) Unmarshal

func (entity *IdentificationBirthPlace) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationBirthPlace) Valid

func (entity *IdentificationBirthPlace) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationComments

type IdentificationComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

IdentificationComments subsection of identification section.

func (*IdentificationComments) Delete

func (entity *IdentificationComments) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationComments) Get

func (entity *IdentificationComments) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationComments) GetID

func (entity *IdentificationComments) GetID() int

GetID returns the entity identifier.

func (*IdentificationComments) Marshal

func (entity *IdentificationComments) Marshal() Payload

Marshal to payload structure

func (*IdentificationComments) Save

func (entity *IdentificationComments) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*IdentificationComments) SetID

func (entity *IdentificationComments) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationComments) Unmarshal

func (entity *IdentificationComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationComments) Valid

func (entity *IdentificationComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationContacts

type IdentificationContacts struct {
	PayloadEmails       Payload `json:"Emails" sql:"-"`
	PayloadPhoneNumbers Payload `json:"PhoneNumbers" sql:"-"`

	// Validator specific fields
	Emails       *Collection `json:"-"`
	PhoneNumbers *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	EmailsID       int `json:"-" pg:", fk:Emails"`
	PhoneNumbersID int `json:"-" pg:", fk:PhoneNumbers"`
}

IdentificationContacts subsection of identification section.

func (*IdentificationContacts) Delete

func (entity *IdentificationContacts) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationContacts) Get

func (entity *IdentificationContacts) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationContacts) GetID

func (entity *IdentificationContacts) GetID() int

GetID returns the entity identifier.

func (*IdentificationContacts) Marshal

func (entity *IdentificationContacts) Marshal() Payload

Marshal to payload structure

func (*IdentificationContacts) Save

func (entity *IdentificationContacts) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*IdentificationContacts) SetID

func (entity *IdentificationContacts) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationContacts) Unmarshal

func (entity *IdentificationContacts) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationContacts) Valid

func (entity *IdentificationContacts) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationName

type IdentificationName struct {
	PayloadName Payload `json:"Name" sql:"-"`

	// Validator specific fields
	Name *Name `json:"-"`

	// Persister specific fields
	ID     int `json:"-"`
	NameID int `json:"-" pg:", fk:Name"`
}

IdentificationName subsection of identification section.

func (*IdentificationName) Delete

func (entity *IdentificationName) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationName) Get

func (entity *IdentificationName) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationName) GetID

func (entity *IdentificationName) GetID() int

GetID returns the entity identifier.

func (*IdentificationName) Marshal

func (entity *IdentificationName) Marshal() Payload

Marshal to payload structure

func (*IdentificationName) Save

func (entity *IdentificationName) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*IdentificationName) SetID

func (entity *IdentificationName) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationName) Unmarshal

func (entity *IdentificationName) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationName) Valid

func (entity *IdentificationName) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationOtherNames

type IdentificationOtherNames struct {
	PayloadHasOtherNames Payload `json:"HasOtherNames" sql:"-"`
	PayloadList          Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasOtherNames *Branch     `json:"-"`
	List          *Collection `json:"-"`

	// Persister specific fields
	ID              int `json:"-"`
	HasOtherNamesID int `json:"-" pg:", fk:HasOtherNames"`
	ListID          int `json:"-" pg:", fk:List"`
}

IdentificationOtherNames subsection of identification section.

func (*IdentificationOtherNames) Delete

func (entity *IdentificationOtherNames) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationOtherNames) Get

func (entity *IdentificationOtherNames) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationOtherNames) GetID

func (entity *IdentificationOtherNames) GetID() int

GetID returns the entity identifier.

func (*IdentificationOtherNames) Marshal

func (entity *IdentificationOtherNames) Marshal() Payload

Marshal to payload structure

func (*IdentificationOtherNames) Save

func (entity *IdentificationOtherNames) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*IdentificationOtherNames) SetID

func (entity *IdentificationOtherNames) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationOtherNames) Unmarshal

func (entity *IdentificationOtherNames) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationOtherNames) Valid

func (entity *IdentificationOtherNames) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationPhysical

type IdentificationPhysical struct {
	PayloadComments  Payload `json:"Comments" sql:"-"`
	PayloadEyeColor  Payload `json:"EyeColor" sql:"-"`
	PayloadHairColor Payload `json:"HairColor" sql:"-"`
	PayloadHeight    Payload `json:"Height" sql:"-"`
	PayloadSex       Payload `json:"Sex" sql:"-"`
	PayloadWeight    Payload `json:"Weight" sql:"-"`

	// Validator specific fields
	Comments  *Textarea `json:"-"`
	EyeColor  *Text     `json:"-"`
	HairColor *Text     `json:"-"`
	Sex       *Text     `json:"-"`
	Height    *Height   `json:"-"`
	Weight    *Number   `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	CommentsID  int `json:"-" pg:", fk:Comments"`
	EyeColorID  int `json:"-" pg:", fk:EyeColor"`
	HairColorID int `json:"-" pg:", fk:HairColor"`
	SexID       int `json:"-" pg:", fk:Sex"`
	HeightID    int `json:"-" pg:", fk:Height"`
	WeightID    int `json:"-" pg:", fk:Weight"`
}

IdentificationPhysical subsection of identification section.

func (*IdentificationPhysical) Delete

func (entity *IdentificationPhysical) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationPhysical) Get

func (entity *IdentificationPhysical) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationPhysical) GetID

func (entity *IdentificationPhysical) GetID() int

GetID returns the entity identifier.

func (*IdentificationPhysical) Marshal

func (entity *IdentificationPhysical) Marshal() Payload

Marshal to payload structure

func (*IdentificationPhysical) Save

func (entity *IdentificationPhysical) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*IdentificationPhysical) SetID

func (entity *IdentificationPhysical) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationPhysical) Unmarshal

func (entity *IdentificationPhysical) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationPhysical) Valid

func (entity *IdentificationPhysical) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationSSN

type IdentificationSSN struct {
	Payload Payload `json:"ssn" sql:"-"`

	// Validator specific fields
	Verified bool `json:"verified"`
	SSN      *SSN `json:"-" sql:"-"`

	// Persister specific fields
	ID    int `json:"-"`
	SSNID int `json:"-" pg:", fk:SSN"`
}

IdentificationSSN subsection of identification section.

func (*IdentificationSSN) Delete

func (entity *IdentificationSSN) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationSSN) Get

func (entity *IdentificationSSN) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationSSN) GetID

func (entity *IdentificationSSN) GetID() int

GetID returns the entity identifier.

func (*IdentificationSSN) Marshal

func (entity *IdentificationSSN) Marshal() Payload

Marshal to payload structure

func (*IdentificationSSN) Save

func (entity *IdentificationSSN) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*IdentificationSSN) SetID

func (entity *IdentificationSSN) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationSSN) Unmarshal

func (entity *IdentificationSSN) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationSSN) Valid

func (entity *IdentificationSSN) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Identifier

type Identifier interface {
	GetID() int
	SetID(id int)
}

Identifier allows for entities to be tagged with an ID

type LegalAssociationsActivitiesToOverthrow

type LegalAssociationsActivitiesToOverthrow struct {
	PayloadHasActivities Payload `json:"HasActivities" sql:"-"`
	PayloadList          Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasActivities *Branch     `json:"-"`
	List          *Collection `json:"-"`

	// Persister specific fields
	ID              int `json:"-"`
	HasActivitiesID int `json:"-" pg:", fk:HasActivities"`
	ListID          int `json:"-" pg:", fk:List"`
}

LegalAssociationsActivitiesToOverthrow structure

func (*LegalAssociationsActivitiesToOverthrow) Delete

func (entity *LegalAssociationsActivitiesToOverthrow) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalAssociationsActivitiesToOverthrow) Get

func (entity *LegalAssociationsActivitiesToOverthrow) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalAssociationsActivitiesToOverthrow) GetID

GetID returns the entity identifier.

func (*LegalAssociationsActivitiesToOverthrow) Marshal

Marshal to payload structure

func (*LegalAssociationsActivitiesToOverthrow) Save

func (entity *LegalAssociationsActivitiesToOverthrow) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalAssociationsActivitiesToOverthrow) SetID

func (entity *LegalAssociationsActivitiesToOverthrow) SetID(id int)

SetID sets the entity identifier.

func (*LegalAssociationsActivitiesToOverthrow) Unmarshal

func (entity *LegalAssociationsActivitiesToOverthrow) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalAssociationsActivitiesToOverthrow) Valid

Valid checks the value(s) against an battery of tests.

type LegalAssociationsAdvocating

type LegalAssociationsAdvocating struct {
	PayloadHasAdvocated Payload `json:"HasAdvocated" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasAdvocated *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasAdvocatedID int `json:"-" pg:", fk:HasAdvocated"`
	ListID         int `json:"-" pg:", fk:List"`
}

LegalAssociationsAdvocating structure

func (*LegalAssociationsAdvocating) Delete

func (entity *LegalAssociationsAdvocating) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalAssociationsAdvocating) Get

func (entity *LegalAssociationsAdvocating) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalAssociationsAdvocating) GetID

func (entity *LegalAssociationsAdvocating) GetID() int

GetID returns the entity identifier.

func (*LegalAssociationsAdvocating) Marshal

func (entity *LegalAssociationsAdvocating) Marshal() Payload

Marshal to payload structure

func (*LegalAssociationsAdvocating) Save

func (entity *LegalAssociationsAdvocating) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalAssociationsAdvocating) SetID

func (entity *LegalAssociationsAdvocating) SetID(id int)

SetID sets the entity identifier.

func (*LegalAssociationsAdvocating) Unmarshal

func (entity *LegalAssociationsAdvocating) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalAssociationsAdvocating) Valid

func (entity *LegalAssociationsAdvocating) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalAssociationsEngagedInTerrorism

type LegalAssociationsEngagedInTerrorism struct {
	PayloadHasEngaged Payload `json:"HasEngaged" sql:"-"`
	PayloadList       Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasEngaged *Branch     `json:"-"`
	List       *Collection `json:"-"`

	// Persister specific fields
	ID           int `json:"-"`
	HasEngagedID int `json:"-" pg:", fk:HasEngaged"`
	ListID       int `json:"-" pg:", fk:List"`
}

LegalAssociationsEngagedInTerrorism structure

func (*LegalAssociationsEngagedInTerrorism) Delete

func (entity *LegalAssociationsEngagedInTerrorism) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalAssociationsEngagedInTerrorism) Get

func (entity *LegalAssociationsEngagedInTerrorism) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalAssociationsEngagedInTerrorism) GetID

func (entity *LegalAssociationsEngagedInTerrorism) GetID() int

GetID returns the entity identifier.

func (*LegalAssociationsEngagedInTerrorism) Marshal

func (entity *LegalAssociationsEngagedInTerrorism) Marshal() Payload

Marshal to payload structure

func (*LegalAssociationsEngagedInTerrorism) Save

func (entity *LegalAssociationsEngagedInTerrorism) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalAssociationsEngagedInTerrorism) SetID

func (entity *LegalAssociationsEngagedInTerrorism) SetID(id int)

SetID sets the entity identifier.

func (*LegalAssociationsEngagedInTerrorism) Unmarshal

func (entity *LegalAssociationsEngagedInTerrorism) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalAssociationsEngagedInTerrorism) Valid

func (entity *LegalAssociationsEngagedInTerrorism) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalAssociationsMembershipOverthrow

type LegalAssociationsMembershipOverthrow struct {
	PayloadHasOverthrow Payload `json:"HasOverthrow" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasOverthrow *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasOverthrowID int `json:"-" pg:", fk:HasOverthrow"`
	ListID         int `json:"-" pg:", fk:List"`
}

LegalAssociationsMembershipOverthrow structure

func (*LegalAssociationsMembershipOverthrow) Delete

func (entity *LegalAssociationsMembershipOverthrow) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalAssociationsMembershipOverthrow) Get

func (entity *LegalAssociationsMembershipOverthrow) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalAssociationsMembershipOverthrow) GetID

func (entity *LegalAssociationsMembershipOverthrow) GetID() int

GetID returns the entity identifier.

func (*LegalAssociationsMembershipOverthrow) Marshal

Marshal to payload structure

func (*LegalAssociationsMembershipOverthrow) Save

func (entity *LegalAssociationsMembershipOverthrow) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalAssociationsMembershipOverthrow) SetID

func (entity *LegalAssociationsMembershipOverthrow) SetID(id int)

SetID sets the entity identifier.

func (*LegalAssociationsMembershipOverthrow) Unmarshal

func (entity *LegalAssociationsMembershipOverthrow) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalAssociationsMembershipOverthrow) Valid

func (entity *LegalAssociationsMembershipOverthrow) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalAssociationsMembershipViolence

type LegalAssociationsMembershipViolence struct {
	PayloadHasViolence Payload `json:"HasViolence" sql:"-"`
	PayloadList        Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasViolence *Branch     `json:"-"`
	List        *Collection `json:"-"`

	// Persister specific fields
	ID            int `json:"-"`
	HasViolenceID int `json:"-" pg:", fk:HasViolence"`
	ListID        int `json:"-" pg:", fk:List"`
}

LegalAssociationsMembershipViolence structure

func (*LegalAssociationsMembershipViolence) Delete

func (entity *LegalAssociationsMembershipViolence) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalAssociationsMembershipViolence) Get

func (entity *LegalAssociationsMembershipViolence) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalAssociationsMembershipViolence) GetID

func (entity *LegalAssociationsMembershipViolence) GetID() int

GetID returns the entity identifier.

func (*LegalAssociationsMembershipViolence) Marshal

func (entity *LegalAssociationsMembershipViolence) Marshal() Payload

Marshal to payload structure

func (*LegalAssociationsMembershipViolence) Save

func (entity *LegalAssociationsMembershipViolence) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalAssociationsMembershipViolence) SetID

func (entity *LegalAssociationsMembershipViolence) SetID(id int)

SetID sets the entity identifier.

func (*LegalAssociationsMembershipViolence) Unmarshal

func (entity *LegalAssociationsMembershipViolence) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalAssociationsMembershipViolence) Valid

func (entity *LegalAssociationsMembershipViolence) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalAssociationsTerrorismAssociation

type LegalAssociationsTerrorismAssociation struct {
	PayloadHasTerrorism Payload `json:"HasTerrorism" sql:"-"`
	PayloadExplanation  Payload `json:"Explanation" sql:"-"`

	// Validator specific fields
	HasTerrorism *Branch   `json:"-"`
	Explanation  *Textarea `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasTerrorismID int `json:"-" pg:", fk:HasTerrorism"`
	ExplanationID  int `json:"-" pg:", fk:Explanation"`
}

LegalAssociationsTerrorismAssociation structure

func (*LegalAssociationsTerrorismAssociation) Delete

func (entity *LegalAssociationsTerrorismAssociation) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalAssociationsTerrorismAssociation) Get

func (entity *LegalAssociationsTerrorismAssociation) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalAssociationsTerrorismAssociation) GetID

GetID returns the entity identifier.

func (*LegalAssociationsTerrorismAssociation) Marshal

Marshal to payload structure

func (*LegalAssociationsTerrorismAssociation) Save

func (entity *LegalAssociationsTerrorismAssociation) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalAssociationsTerrorismAssociation) SetID

func (entity *LegalAssociationsTerrorismAssociation) SetID(id int)

SetID sets the entity identifier.

func (*LegalAssociationsTerrorismAssociation) Unmarshal

func (entity *LegalAssociationsTerrorismAssociation) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalAssociationsTerrorismAssociation) Valid

Valid checks the value(s) against an battery of tests.

type LegalAssociationsTerroristOrganization

type LegalAssociationsTerroristOrganization struct {
	PayloadHasTerrorist Payload `json:"HasTerrorist" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasTerrorist *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasTerroristID int `json:"-" pg:", fk:HasTerrorist"`
	ListID         int `json:"-" pg:", fk:List"`
}

LegalAssociationsTerroristOrganization structure

func (*LegalAssociationsTerroristOrganization) Delete

func (entity *LegalAssociationsTerroristOrganization) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalAssociationsTerroristOrganization) Get

func (entity *LegalAssociationsTerroristOrganization) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalAssociationsTerroristOrganization) GetID

GetID returns the entity identifier.

func (*LegalAssociationsTerroristOrganization) Marshal

Marshal to payload structure

func (*LegalAssociationsTerroristOrganization) Save

func (entity *LegalAssociationsTerroristOrganization) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalAssociationsTerroristOrganization) SetID

func (entity *LegalAssociationsTerroristOrganization) SetID(id int)

SetID sets the entity identifier.

func (*LegalAssociationsTerroristOrganization) Unmarshal

func (entity *LegalAssociationsTerroristOrganization) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalAssociationsTerroristOrganization) Valid

Valid checks the value(s) against an battery of tests.

type LegalComments

type LegalComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

LegalComments subsection of identification section.

func (*LegalComments) Delete

func (entity *LegalComments) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalComments) Get

func (entity *LegalComments) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalComments) GetID

func (entity *LegalComments) GetID() int

GetID returns the entity identifier.

func (*LegalComments) Marshal

func (entity *LegalComments) Marshal() Payload

Marshal to payload structure

func (*LegalComments) Save

func (entity *LegalComments) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalComments) SetID

func (entity *LegalComments) SetID(id int)

SetID sets the entity identifier.

func (*LegalComments) Unmarshal

func (entity *LegalComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalComments) Valid

func (entity *LegalComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalCourt

type LegalCourt struct {
	PayloadHasCourtActions Payload `json:"HasCourtActions" sql:"-"`
	PayloadList            Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasCourtActions *Branch     `json:"-"`
	List            *Collection `json:"-"`

	// Persister specific fields
	ID                int `json:"-"`
	HasCourtActionsID int `json:"-" pg:", fk:HasCourtActions"`
	ListID            int `json:"-" pg:", fk:List"`
}

LegalCourt structure

func (*LegalCourt) Delete

func (entity *LegalCourt) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalCourt) Get

func (entity *LegalCourt) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalCourt) GetID

func (entity *LegalCourt) GetID() int

GetID returns the entity identifier.

func (*LegalCourt) Marshal

func (entity *LegalCourt) Marshal() Payload

Marshal to payload structure

func (*LegalCourt) Save

func (entity *LegalCourt) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalCourt) SetID

func (entity *LegalCourt) SetID(id int)

SetID sets the entity identifier.

func (*LegalCourt) Unmarshal

func (entity *LegalCourt) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalCourt) Valid

func (entity *LegalCourt) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalInvestigationsDebarred

type LegalInvestigationsDebarred struct {
	PayloadHasDebarment Payload `json:"HasDebarment" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasDebarment *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasDebarmentID int `json:"-" pg:", fk:HasDebarment"`
	ListID         int `json:"-" pg:", fk:List"`
}

LegalInvestigationsDebarred structure

func (*LegalInvestigationsDebarred) Delete

func (entity *LegalInvestigationsDebarred) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalInvestigationsDebarred) Get

func (entity *LegalInvestigationsDebarred) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the (int, database).

func (*LegalInvestigationsDebarred) GetID

func (entity *LegalInvestigationsDebarred) GetID() int

GetID returns the entity identifier.

func (*LegalInvestigationsDebarred) Marshal

func (entity *LegalInvestigationsDebarred) Marshal() Payload

Marshal to payload structure

func (*LegalInvestigationsDebarred) Save

func (entity *LegalInvestigationsDebarred) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalInvestigationsDebarred) SetID

func (entity *LegalInvestigationsDebarred) SetID(id int)

SetID sets the entity identifier.

func (*LegalInvestigationsDebarred) Unmarshal

func (entity *LegalInvestigationsDebarred) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalInvestigationsDebarred) Valid

func (entity *LegalInvestigationsDebarred) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalInvestigationsHistory

type LegalInvestigationsHistory struct {
	PayloadHasHistory Payload `json:"HasHistory" sql:"-"`
	PayloadList       Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasHistory *Branch     `json:"-"`
	List       *Collection `json:"-"`

	// Persister specific fields
	ID           int `json:"-"`
	HasHistoryID int `json:"-" pg:", fk:HasHistory"`
	ListID       int `json:"-" pg:", fk:List"`
}

LegalInvestigationsHistory structure

func (*LegalInvestigationsHistory) Delete

func (entity *LegalInvestigationsHistory) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalInvestigationsHistory) Get

func (entity *LegalInvestigationsHistory) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalInvestigationsHistory) GetID

func (entity *LegalInvestigationsHistory) GetID() int

GetID returns the entity identifier.

func (*LegalInvestigationsHistory) Marshal

func (entity *LegalInvestigationsHistory) Marshal() Payload

Marshal to payload structure

func (*LegalInvestigationsHistory) Save

func (entity *LegalInvestigationsHistory) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalInvestigationsHistory) SetID

func (entity *LegalInvestigationsHistory) SetID(id int)

SetID sets the entity identifier.

func (*LegalInvestigationsHistory) Unmarshal

func (entity *LegalInvestigationsHistory) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalInvestigationsHistory) Valid

func (entity *LegalInvestigationsHistory) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalInvestigationsRevoked

type LegalInvestigationsRevoked struct {
	PayloadHasRevocations Payload `json:"HasRevocations" sql:"-"`
	PayloadList           Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasRevocations *Branch     `json:"-"`
	List           *Collection `json:"-"`

	// Persister specific fields
	ID               int `json:"-"`
	HasRevocationsID int `json:"-" pg:", fk:HasRevocations"`
	ListID           int `json:"-" pg:", fk:List"`
}

LegalInvestigationsRevoked structure

func (*LegalInvestigationsRevoked) Delete

func (entity *LegalInvestigationsRevoked) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalInvestigationsRevoked) Get

func (entity *LegalInvestigationsRevoked) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalInvestigationsRevoked) GetID

func (entity *LegalInvestigationsRevoked) GetID() int

GetID returns the entity identifier.

func (*LegalInvestigationsRevoked) Marshal

func (entity *LegalInvestigationsRevoked) Marshal() Payload

Marshal to payload structure

func (*LegalInvestigationsRevoked) Save

func (entity *LegalInvestigationsRevoked) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalInvestigationsRevoked) SetID

func (entity *LegalInvestigationsRevoked) SetID(id int)

SetID sets the entity identifier.

func (*LegalInvestigationsRevoked) Unmarshal

func (entity *LegalInvestigationsRevoked) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalInvestigationsRevoked) Valid

func (entity *LegalInvestigationsRevoked) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalPoliceAdditionalOffenses

type LegalPoliceAdditionalOffenses struct {
	PayloadHasOtherOffenses Payload `json:"HasOtherOffenses" sql:"-"`
	PayloadList             Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasOtherOffenses *Branch     `json:"-"`
	List             *Collection `json:"-"`

	// Persister specific fields
	ID                 int `json:"-"`
	HasOtherOffensesID int `json:"-" pg:", fk:HasOtherOffenses"`
	ListID             int `json:"-" pg:", fk:List"`
}

LegalPoliceAdditionalOffenses structure

func (*LegalPoliceAdditionalOffenses) Delete

func (entity *LegalPoliceAdditionalOffenses) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalPoliceAdditionalOffenses) Get

func (entity *LegalPoliceAdditionalOffenses) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalPoliceAdditionalOffenses) GetID

func (entity *LegalPoliceAdditionalOffenses) GetID() int

GetID returns the entity identifier.

func (*LegalPoliceAdditionalOffenses) Marshal

func (entity *LegalPoliceAdditionalOffenses) Marshal() Payload

Marshal to payload structure

func (*LegalPoliceAdditionalOffenses) Save

func (entity *LegalPoliceAdditionalOffenses) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalPoliceAdditionalOffenses) SetID

func (entity *LegalPoliceAdditionalOffenses) SetID(id int)

SetID sets the entity identifier.

func (*LegalPoliceAdditionalOffenses) Unmarshal

func (entity *LegalPoliceAdditionalOffenses) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalPoliceAdditionalOffenses) Valid

func (entity *LegalPoliceAdditionalOffenses) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalPoliceDomesticViolence

type LegalPoliceDomesticViolence struct {
	PayloadHasDomesticViolence Payload `json:"HasDomesticViolence" sql:"-"`
	PayloadList                Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasDomesticViolence *Branch     `json:"-"`
	List                *Collection `json:"-"`

	// Persister specific fields
	ID                    int `json:"-"`
	HasDomesticViolenceID int `json:"-"`
	ListID                int `json:"-" pg:", fk:List"`
}

LegalPoliceDomesticViolence structure

func (*LegalPoliceDomesticViolence) Delete

func (entity *LegalPoliceDomesticViolence) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalPoliceDomesticViolence) Get

func (entity *LegalPoliceDomesticViolence) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalPoliceDomesticViolence) GetID

func (entity *LegalPoliceDomesticViolence) GetID() int

GetID returns the entity identifier.

func (*LegalPoliceDomesticViolence) Marshal

func (entity *LegalPoliceDomesticViolence) Marshal() Payload

Marshal to payload structure

func (*LegalPoliceDomesticViolence) Save

func (entity *LegalPoliceDomesticViolence) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalPoliceDomesticViolence) SetID

func (entity *LegalPoliceDomesticViolence) SetID(id int)

SetID sets the entity identifier.

func (*LegalPoliceDomesticViolence) Unmarshal

func (entity *LegalPoliceDomesticViolence) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalPoliceDomesticViolence) Valid

func (entity *LegalPoliceDomesticViolence) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalPoliceOffenses

type LegalPoliceOffenses struct {
	PayloadHasOffenses Payload `json:"HasOffenses" sql:"-"`
	PayloadList        Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasOffenses *Branch     `json:"-"`
	List        *Collection `json:"-"`

	// Persister specific fields
	ID            int `json:"-"`
	HasOffensesID int `json:"-" pg:", fk:HasOffenses"`
	ListID        int `json:"-" pg:", fk:List"`
}

LegalPoliceOffenses structure

func (*LegalPoliceOffenses) Delete

func (entity *LegalPoliceOffenses) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalPoliceOffenses) Get

func (entity *LegalPoliceOffenses) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalPoliceOffenses) GetID

func (entity *LegalPoliceOffenses) GetID() int

GetID returns the entity identifier.

func (*LegalPoliceOffenses) Marshal

func (entity *LegalPoliceOffenses) Marshal() Payload

Marshal to payload structure

func (*LegalPoliceOffenses) Save

func (entity *LegalPoliceOffenses) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalPoliceOffenses) SetID

func (entity *LegalPoliceOffenses) SetID(id int)

SetID sets the entity identifier.

func (*LegalPoliceOffenses) Unmarshal

func (entity *LegalPoliceOffenses) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalPoliceOffenses) Valid

func (entity *LegalPoliceOffenses) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalTechnologyManipulating

type LegalTechnologyManipulating struct {
	PayloadHasManipulating Payload `json:"HasManipulating" sql:"-"`
	PayloadList            Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasManipulating *Branch     `json:"-"`
	List            *Collection `json:"-"`

	// Persister specific fields
	ID                int `json:"-"`
	HasManipulatingID int `json:"-" pg:", fk:HasManipulating"`
	ListID            int `json:"-" pg:", fk:List"`
}

LegalTechnologyManipulating structure

func (*LegalTechnologyManipulating) Delete

func (entity *LegalTechnologyManipulating) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalTechnologyManipulating) Get

func (entity *LegalTechnologyManipulating) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalTechnologyManipulating) GetID

func (entity *LegalTechnologyManipulating) GetID() int

GetID returns the entity identifier.

func (*LegalTechnologyManipulating) Marshal

func (entity *LegalTechnologyManipulating) Marshal() Payload

Marshal to payload structure

func (*LegalTechnologyManipulating) Save

func (entity *LegalTechnologyManipulating) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalTechnologyManipulating) SetID

func (entity *LegalTechnologyManipulating) SetID(id int)

SetID sets the entity identifier.

func (*LegalTechnologyManipulating) Unmarshal

func (entity *LegalTechnologyManipulating) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalTechnologyManipulating) Valid

func (entity *LegalTechnologyManipulating) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalTechnologyUnauthorized

type LegalTechnologyUnauthorized struct {
	PayloadHasUnauthorized Payload `json:"HasUnauthorized" sql:"-"`
	PayloadList            Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasUnauthorized *Branch     `json:"-"`
	List            *Collection `json:"-"`

	// Persister specific fields
	ID                int `json:"-"`
	HasUnauthorizedID int `json:"-" pg:", fk:HasUnauthorized"`
	ListID            int `json:"-" pg:", fk:List"`
}

LegalTechnologyUnauthorized structure

func (*LegalTechnologyUnauthorized) Delete

func (entity *LegalTechnologyUnauthorized) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalTechnologyUnauthorized) Get

func (entity *LegalTechnologyUnauthorized) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalTechnologyUnauthorized) GetID

func (entity *LegalTechnologyUnauthorized) GetID() int

GetID returns the entity identifier.

func (*LegalTechnologyUnauthorized) Marshal

func (entity *LegalTechnologyUnauthorized) Marshal() Payload

Marshal to payload structure

func (*LegalTechnologyUnauthorized) Save

func (entity *LegalTechnologyUnauthorized) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalTechnologyUnauthorized) SetID

func (entity *LegalTechnologyUnauthorized) SetID(id int)

SetID sets the entity identifier.

func (*LegalTechnologyUnauthorized) Unmarshal

func (entity *LegalTechnologyUnauthorized) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalTechnologyUnauthorized) Valid

func (entity *LegalTechnologyUnauthorized) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalTechnologyUnlawful

type LegalTechnologyUnlawful struct {
	PayloadHasUnlawful Payload `json:"HasUnlawful" sql:"-"`
	PayloadList        Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasUnlawful *Branch     `json:"-"`
	List        *Collection `json:"-"`

	// Persister specific fields
	ID            int `json:"-"`
	HasUnlawfulID int `json:"-" pg:", fk:HasUnlawful"`
	ListID        int `json:"-" pg:", fk:List"`
}

LegalTechnologyUnlawful structure

func (*LegalTechnologyUnlawful) Delete

func (entity *LegalTechnologyUnlawful) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalTechnologyUnlawful) Get

func (entity *LegalTechnologyUnlawful) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalTechnologyUnlawful) GetID

func (entity *LegalTechnologyUnlawful) GetID() int

GetID returns the entity identifier.

func (*LegalTechnologyUnlawful) Marshal

func (entity *LegalTechnologyUnlawful) Marshal() Payload

Marshal to payload structure

func (*LegalTechnologyUnlawful) Save

func (entity *LegalTechnologyUnlawful) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*LegalTechnologyUnlawful) SetID

func (entity *LegalTechnologyUnlawful) SetID(id int)

SetID sets the entity identifier.

func (*LegalTechnologyUnlawful) Unmarshal

func (entity *LegalTechnologyUnlawful) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalTechnologyUnlawful) Valid

func (entity *LegalTechnologyUnlawful) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Location

type Location struct {
	ID              int    `json:"-"`
	Layout          string `json:"layout"`
	Street1         string `json:"street,omitempty"`
	Street2         string `json:"street2,omitempty"`
	City            string `json:"city,omitempty"`
	State           string `json:"state,omitempty"`
	Zipcode         string `json:"zipcode,omitempty"`
	County          string `json:"county,omitempty"`
	Country         string `json:"country,omitempty"`
	CountryComments string `json:"countryComments,omitempty"`
	Validated       bool   `json:"validated,omitempty"`
}

Location is a basic input.

func (*Location) Delete

func (entity *Location) Delete(context *db.DatabaseContext, account int) (int, error)

func (*Location) Get

func (entity *Location) Get(context *db.DatabaseContext, account int) (int, error)

func (*Location) GetID

func (entity *Location) GetID() int

ID returns the entity identifier.

func (*Location) IsDomestic

func (entity *Location) IsDomestic() bool

func (*Location) IsInternational

func (entity *Location) IsInternational() bool

func (*Location) IsPostOffice

func (entity *Location) IsPostOffice() bool

func (*Location) Marshal

func (entity *Location) Marshal() Payload

Marshal to payload structure

func (*Location) Save

func (entity *Location) Save(context *db.DatabaseContext, account int) (int, error)

func (*Location) SetID

func (entity *Location) SetID(id int)

SetID sets the entity identifier.

func (*Location) Unmarshal

func (entity *Location) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Location) Valid

func (entity *Location) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Marshaller

type Marshaller interface {
	Unmarshal([]byte) error
	Marshal() Payload
}

Marshaller is structure which can marshal and unmarshal JSON.

type MilitaryComments

type MilitaryComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

MilitaryComments subsection of identification section.

func (*MilitaryComments) Delete

func (entity *MilitaryComments) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*MilitaryComments) Get

func (entity *MilitaryComments) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*MilitaryComments) GetID

func (entity *MilitaryComments) GetID() int

GetID returns the entity identifier.

func (*MilitaryComments) Marshal

func (entity *MilitaryComments) Marshal() Payload

Marshal to payload structure

func (*MilitaryComments) Save

func (entity *MilitaryComments) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*MilitaryComments) SetID

func (entity *MilitaryComments) SetID(id int)

SetID sets the entity identifier.

func (*MilitaryComments) Unmarshal

func (entity *MilitaryComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*MilitaryComments) Valid

func (entity *MilitaryComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type MilitaryDisciplinary

type MilitaryDisciplinary struct {
	PayloadHasDisciplinary Payload `json:"HasDisciplinary" sql:"-"`
	PayloadList            Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasDisciplinary *Branch     `json:"-"`
	List            *Collection `json:"-"`

	// Persister specific fields
	ID                int `json:"-"`
	HasDisciplinaryID int `json:"-" pg:", fk:HasDisciplinary"`
	ListID            int `json:"-" pg:", fk:List"`
}

func (*MilitaryDisciplinary) Delete

func (entity *MilitaryDisciplinary) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*MilitaryDisciplinary) Get

func (entity *MilitaryDisciplinary) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*MilitaryDisciplinary) GetID

func (entity *MilitaryDisciplinary) GetID() int

GetID returns the entity identifier.

func (*MilitaryDisciplinary) Marshal

func (entity *MilitaryDisciplinary) Marshal() Payload

Marshal to payload structure

func (*MilitaryDisciplinary) Save

func (entity *MilitaryDisciplinary) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*MilitaryDisciplinary) SetID

func (entity *MilitaryDisciplinary) SetID(id int)

SetID sets the entity identifier.

func (*MilitaryDisciplinary) Unmarshal

func (entity *MilitaryDisciplinary) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*MilitaryDisciplinary) Valid

func (entity *MilitaryDisciplinary) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type MilitaryForeign

type MilitaryForeign struct {
	PayloadList Payload `json:"List" sql:"-"`

	// Validator specific fields
	List *Collection `json:"-"`

	// Persister specific fields
	ID     int `json:"-"`
	ListID int `json:"-" pg:", fk:List"`
}

func (*MilitaryForeign) Delete

func (entity *MilitaryForeign) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*MilitaryForeign) Get

func (entity *MilitaryForeign) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*MilitaryForeign) GetID

func (entity *MilitaryForeign) GetID() int

GetID returns the entity identifier.

func (*MilitaryForeign) Marshal

func (entity *MilitaryForeign) Marshal() Payload

Marshal to payload structure

func (*MilitaryForeign) Save

func (entity *MilitaryForeign) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*MilitaryForeign) SetID

func (entity *MilitaryForeign) SetID(id int)

SetID sets the entity identifier.

func (*MilitaryForeign) Unmarshal

func (entity *MilitaryForeign) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*MilitaryForeign) Valid

func (entity *MilitaryForeign) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type MilitaryHistory

type MilitaryHistory struct {
	PayloadHasServed Payload `json:"HasServed" sql:"-"`
	PayloadList      Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasServed *Branch     `json:"-"`
	List      *Collection `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	HasServedID int `json:"-" pg:", fk:HasServed"`
	ListID      int `json:"-" pg:", fk:List"`
}

func (*MilitaryHistory) Delete

func (entity *MilitaryHistory) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*MilitaryHistory) Get

func (entity *MilitaryHistory) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*MilitaryHistory) GetID

func (entity *MilitaryHistory) GetID() int

GetID returns the entity identifier.

func (*MilitaryHistory) Marshal

func (entity *MilitaryHistory) Marshal() Payload

Marshal to payload structure

func (*MilitaryHistory) Save

func (entity *MilitaryHistory) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*MilitaryHistory) SetID

func (entity *MilitaryHistory) SetID(id int)

SetID sets the entity identifier.

func (*MilitaryHistory) Unmarshal

func (entity *MilitaryHistory) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*MilitaryHistory) Valid

func (entity *MilitaryHistory) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type MilitarySelective

type MilitarySelective struct {
	PayloadWasBornAfter       Payload `json:"WasBornAfter" sql:"-"`
	PayloadHasRegistered      Payload `json:"HasRegistered" sql:"-"`
	PayloadRegistrationNumber Payload `json:"RegistrationNumber" sql:"-"`
	PayloadExplanation        Payload `json:"Explanation" sql:"-"`

	// Validator specific fields
	WasBornAfter       *Branch   `json:"-"`
	HasRegistered      *Branch   `json:"-"`
	RegistrationNumber *Text     `json:"-"`
	Explanation        *Textarea `json:"-"`

	// Persister specific fields
	ID                   int `json:"-"`
	WasBornAfterID       int `json:"-" pg:", fk:WasBornAfter"`
	HasRegisteredID      int `json:"-" pg:", fk:HasRegistered"`
	RegistrationNumberID int `json:"-" pg:", fk:RegistrationNumber"`
	ExplanationID        int `json:"-" pg:", fk:Explanation"`
}

func (*MilitarySelective) Delete

func (entity *MilitarySelective) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*MilitarySelective) Get

func (entity *MilitarySelective) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*MilitarySelective) GetID

func (entity *MilitarySelective) GetID() int

GetID returns the entity identifier.

func (*MilitarySelective) Marshal

func (entity *MilitarySelective) Marshal() Payload

Marshal to payload structure

func (*MilitarySelective) Save

func (entity *MilitarySelective) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*MilitarySelective) SetID

func (entity *MilitarySelective) SetID(id int)

SetID sets the entity identifier.

func (*MilitarySelective) Unmarshal

func (entity *MilitarySelective) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*MilitarySelective) Valid

func (entity *MilitarySelective) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Name

type Name struct {
	ID                int    `json:"-"`
	First             string `json:"first"`
	FirstInitialOnly  bool   `json:"firstInitialOnly"`
	Middle            string `json:"middle"`
	MiddleInitialOnly bool   `json:"middleInitialOnly"`
	NoMiddleName      bool   `json:"noMiddleName"`
	Last              string `json:"last"`
	LastInitialOnly   bool   `json:"lastInitialOnly"`
	Suffix            string `json:"suffix"`
	SuffixOther       string `json:"suffixOther"`
}

Name is a basic input.

func (*Name) Delete

func (entity *Name) Delete(context *db.DatabaseContext, account int) (int, error)

func (*Name) Get

func (entity *Name) Get(context *db.DatabaseContext, account int) (int, error)

func (*Name) GetID

func (entity *Name) GetID() int

ID returns the entity identifier.

func (*Name) Marshal

func (entity *Name) Marshal() Payload

Marshal to payload structure

func (*Name) Save

func (entity *Name) Save(context *db.DatabaseContext, account int) (int, error)

func (*Name) SetID

func (entity *Name) SetID(id int)

SetID sets the entity identifier.

func (*Name) Unmarshal

func (entity *Name) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Name) Valid

func (entity *Name) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type NotApplicable

type NotApplicable struct {
	ID         int  `json:"-"`
	Applicable bool `json:"applicable"`
}

NotApplicable is a basic input.

func (*NotApplicable) Delete

func (entity *NotApplicable) Delete(context *db.DatabaseContext, account int) (int, error)

func (*NotApplicable) Get

func (entity *NotApplicable) Get(context *db.DatabaseContext, account int) (int, error)

func (*NotApplicable) GetID

func (entity *NotApplicable) GetID() int

ID returns the entity identifier.

func (*NotApplicable) Marshal

func (entity *NotApplicable) Marshal() Payload

Marshal to payload structure

func (*NotApplicable) Save

func (entity *NotApplicable) Save(context *db.DatabaseContext, account int) (int, error)

func (*NotApplicable) SetID

func (entity *NotApplicable) SetID(id int)

SetID sets the entity identifier.

func (*NotApplicable) Unmarshal

func (entity *NotApplicable) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*NotApplicable) Valid

func (entity *NotApplicable) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Number

type Number struct {
	ID    int    `json:"-"`
	Value string `json:"value"`
}

Number is a basic input.

func (*Number) Delete

func (entity *Number) Delete(context *db.DatabaseContext, account int) (int, error)

func (*Number) Get

func (entity *Number) Get(context *db.DatabaseContext, account int) (int, error)

func (*Number) GetID

func (entity *Number) GetID() int

ID returns the entity identifier.

func (*Number) Marshal

func (entity *Number) Marshal() Payload

Marshal to payload structure

func (*Number) Save

func (entity *Number) Save(context *db.DatabaseContext, account int) (int, error)

func (*Number) SetID

func (entity *Number) SetID(id int)

SetID sets the entity identifier.

func (*Number) Unmarshal

func (entity *Number) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Number) Valid

func (entity *Number) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Payload

type Payload struct {
	Type  string          `json:"type"`
	Props json.RawMessage `json:"props,omitempty"`
}

Payload is a basic structure to encapsulate a generic structure.

func MarshalPayloadEntity

func MarshalPayloadEntity(typeName string, entity Entity) Payload

MarshalPayload basic payload structure

func (Payload) Entity

func (payload Payload) Entity() (Entity, error)

Entity returns the appropriate entity as an interface based on its type.

func (*Payload) Unmarshal

func (payload *Payload) Unmarshal(raw []byte) error

Unmarshal basic payload structure.

func (Payload) UnmarshalEntity

func (payload Payload) UnmarshalEntity(raw []byte) (Entity, error)

UnmarshalEntity returns the appropriate entity as an interface based on its type.

func (Payload) Valid

func (payload Payload) Valid() (bool, error)

type PayloadProperties

type PayloadProperties map[string]Payload

PayloadProperties is a structure of JSON where it is an object of named properties which each value being that of a Payload.

func (*PayloadProperties) Delete

func (entity *PayloadProperties) Delete(context *db.DatabaseContext, account int) (int, error)

func (*PayloadProperties) Get

func (entity *PayloadProperties) Get(context *db.DatabaseContext, account int) (int, error)

func (*PayloadProperties) Save

func (entity *PayloadProperties) Save(context *db.DatabaseContext, account int) (int, error)

type Persister

type Persister interface {
	Save(context *db.DatabaseContext, account int) (int, error)
	Delete(context *db.DatabaseContext, account int) (int, error)
	Get(context *db.DatabaseContext, account int) (int, error)
}

Persister interface provides common functionality for persisting data to storage.

type PhysicalAddress

type PhysicalAddress struct {
	PayloadHasDifferentAddress Payload `json:"HasDifferentAddress" sql:"-"`
	PayloadAddress             Payload `json:"Address" sql:"-"`
	PayloadTelephone           Payload `json:"Telephone" sql:"-"`

	// Validator specific fields
	HasDifferentAddress *Branch    `json:"-"`
	Address             *Location  `json:"-"`
	Telephone           *Telephone `json:"-"`

	// Persister specific fields
	ID                    int `json:"-"`
	AccountID             int `json:"-"`
	HasDifferentAddressID int `json:"-" pg:", fk:HasDifferentAddress�`
	AddressID             int `json:"-" pg:", fk:Address"`
	TelephoneID           int `json:"-" pg:", fk:Telephone"`
}

PhysicalAddress is a basic input.

func (*PhysicalAddress) Delete

func (entity *PhysicalAddress) Delete(context *db.DatabaseContext, account int) (int, error)

Delete the PhysicalAddress entity.

func (*PhysicalAddress) Get

func (entity *PhysicalAddress) Get(context *db.DatabaseContext, account int) (int, error)

Get the PhysicalAddress entity.

func (*PhysicalAddress) GetID

func (entity *PhysicalAddress) GetID() int

GetID returns the entity identifier.

func (*PhysicalAddress) Marshal

func (entity *PhysicalAddress) Marshal() Payload

Marshal to payload structure

func (*PhysicalAddress) Save

func (entity *PhysicalAddress) Save(context *db.DatabaseContext, account int) (int, error)

Save the PhysicalAddress entity.

func (*PhysicalAddress) SetID

func (entity *PhysicalAddress) SetID(id int)

SetID sets the entity identifier.

func (*PhysicalAddress) Unmarshal

func (entity *PhysicalAddress) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*PhysicalAddress) Valid

func (entity *PhysicalAddress) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type PsychologicalComments

type PsychologicalComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

PsychologicalComments subsection of identification section.

func (*PsychologicalComments) Delete

func (entity *PsychologicalComments) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*PsychologicalComments) Get

func (entity *PsychologicalComments) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*PsychologicalComments) GetID

func (entity *PsychologicalComments) GetID() int

GetID returns the entity identifier.

func (*PsychologicalComments) Marshal

func (entity *PsychologicalComments) Marshal() Payload

Marshal to payload structure

func (*PsychologicalComments) Save

func (entity *PsychologicalComments) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*PsychologicalComments) SetID

func (entity *PsychologicalComments) SetID(id int)

SetID sets the entity identifier.

func (*PsychologicalComments) Unmarshal

func (entity *PsychologicalComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*PsychologicalComments) Valid

func (entity *PsychologicalComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type PsychologicalCompetence

type PsychologicalCompetence struct {
	PayloadIsIncompetent Payload `json:"IsIncompetent" sql:"-"`
	PayloadList          Payload `json:"List" sql:"-"`

	// Validator specific fields
	IsIncompetent *Branch     `json:"-"`
	List          *Collection `json:"-"`

	// Persister specific fields
	ID              int `json:"-"`
	IsIncompetentID int `json:"-" pg:", fk:IsIncompetent"`
	ListID          int `json:"-" pg:", fk:List"`
}

func (*PsychologicalCompetence) Delete

func (entity *PsychologicalCompetence) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*PsychologicalCompetence) Get

func (entity *PsychologicalCompetence) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*PsychologicalCompetence) GetID

func (entity *PsychologicalCompetence) GetID() int

GetID returns the entity identifier.

func (*PsychologicalCompetence) Marshal

func (entity *PsychologicalCompetence) Marshal() Payload

Marshal to payload structure

func (*PsychologicalCompetence) Save

func (entity *PsychologicalCompetence) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*PsychologicalCompetence) SetID

func (entity *PsychologicalCompetence) SetID(id int)

SetID sets the entity identifier.

func (*PsychologicalCompetence) Unmarshal

func (entity *PsychologicalCompetence) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*PsychologicalCompetence) Valid

func (entity *PsychologicalCompetence) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type PsychologicalConsultations

type PsychologicalConsultations struct {
	PayloadConsulted Payload `json:"Consulted" sql:"-"`
	PayloadList      Payload `json:"List" sql:"-"`

	// Validator specific fields
	Consulted *Branch     `json:"-"`
	List      *Collection `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	ConsultedID int `json:"-" pg:", fk:Consulted"`
	ListID      int `json:"-" pg:", fk:List"`
}

func (*PsychologicalConsultations) Delete

func (entity *PsychologicalConsultations) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*PsychologicalConsultations) Get

func (entity *PsychologicalConsultations) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*PsychologicalConsultations) GetID

func (entity *PsychologicalConsultations) GetID() int

GetID returns the entity identifier.

func (*PsychologicalConsultations) Marshal

func (entity *PsychologicalConsultations) Marshal() Payload

Marshal to payload structure

func (*PsychologicalConsultations) Save

func (entity *PsychologicalConsultations) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*PsychologicalConsultations) SetID

func (entity *PsychologicalConsultations) SetID(id int)

SetID sets the entity identifier.

func (*PsychologicalConsultations) Unmarshal

func (entity *PsychologicalConsultations) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*PsychologicalConsultations) Valid

func (entity *PsychologicalConsultations) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type PsychologicalDiagnoses

type PsychologicalDiagnoses struct {
	PayloadDiagnosed     Payload `json:"Diagnosed" sql:"-"`
	PayloadDidNotConsult Payload `json:"DidNotConsult" sql:"-"`
	PayloadDiagnosisList Payload `json:"DiagnosisList" sql:"-"`
	PayloadInTreatment   Payload `json:"InTreatment" sql:"-"`
	PayloadTreatmentList Payload `json:"TreatmentList" sql:"-"`

	// Validator specific fields
	Diagnosed     *Branch     `json:"-"`
	DidNotConsult *Branch     `json:"-"`
	DiagnosisList *Collection `json:"-"`
	InTreatment   *Branch     `json:"-"`
	TreatmentList *Collection `json:"-"`

	// Persister specific fields
	ID              int `json:"-"`
	DiagnosedID     int `json:"-" pg:", fk:Diagnosed"`
	DidNotConsultID int `json:"-" pg:", fk:DidNotConsult"`
	DiagnosisListID int `json:"-" pg:", fk:DiagnosisList"`
	InTreatmentID   int `json:"-" pg:", fk:InTreatment"`
	TreatmentListID int `json:"-" pg:", fk:TreatmentList"`
}

func (*PsychologicalDiagnoses) Delete

func (entity *PsychologicalDiagnoses) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*PsychologicalDiagnoses) Get

func (entity *PsychologicalDiagnoses) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*PsychologicalDiagnoses) GetID

func (entity *PsychologicalDiagnoses) GetID() int

GetID returns the entity identifier.

func (*PsychologicalDiagnoses) Marshal

func (entity *PsychologicalDiagnoses) Marshal() Payload

Marshal to payload structure

func (*PsychologicalDiagnoses) Save

func (entity *PsychologicalDiagnoses) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*PsychologicalDiagnoses) SetID

func (entity *PsychologicalDiagnoses) SetID(id int)

SetID sets the entity identifier.

func (*PsychologicalDiagnoses) Unmarshal

func (entity *PsychologicalDiagnoses) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*PsychologicalDiagnoses) Valid

func (entity *PsychologicalDiagnoses) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type PsychologicalExisting

type PsychologicalExisting struct {
	PayloadHasCondition            Payload `json:"HasCondition" sql:"-"`
	PayloadReceivedTreatment       Payload `json:"ReceivedTreatment" sql:"-"`
	PayloadExplanation             Payload `json:"Explanation" sql:"-"`
	PayloadTreatmentList           Payload `json:"TreatmentList" sql:"-"`
	PayloadDidNotFollow            Payload `json:"DidNotFollow" sql:"-"`
	PayloadDidNotFollowExplanation Payload `json:"DidNotFollowExplanation" sql:"-"`

	// Validator specific fields
	HasCondition            *Branch     `json:"-"`
	ReceivedTreatment       *Radio      `json:"-"`
	Explanation             *Textarea   `json:"-"`
	TreatmentList           *Collection `json:"-"`
	DidNotFollow            *Branch     `json:"-"`
	DidNotFollowExplanation *Textarea   `json:"-"`

	// Persister specific fields
	ID                        int `json:"-"`
	HasConditionID            int `json:"-" pg:", fk:HasCondition"`
	ReceivedTreatmentID       int `json:"-" pg:", fk:ReceivedTreatment"`
	ExplanationID             int `json:"-" pg:", fk:Explanation"`
	TreatmentListID           int `json:"-" pg:", fk:TreatmentList"`
	DidNotFollowID            int `json:"-" pg:", fk:DidNotFollow"`
	DidNotFollowExplanationID int `json:"-" pg:", fk:DidNotFollowExplanation"`
}

func (*PsychologicalExisting) Delete

func (entity *PsychologicalExisting) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*PsychologicalExisting) Get

func (entity *PsychologicalExisting) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*PsychologicalExisting) GetID

func (entity *PsychologicalExisting) GetID() int

GetID returns the entity identifier.

func (*PsychologicalExisting) Marshal

func (entity *PsychologicalExisting) Marshal() Payload

Marshal to payload structure

func (*PsychologicalExisting) Save

func (entity *PsychologicalExisting) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*PsychologicalExisting) SetID

func (entity *PsychologicalExisting) SetID(id int)

SetID sets the entity identifier.

func (*PsychologicalExisting) Unmarshal

func (entity *PsychologicalExisting) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*PsychologicalExisting) Valid

func (entity *PsychologicalExisting) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type PsychologicalHospitalizations

type PsychologicalHospitalizations struct {
	PayloadHospitalized Payload `json:"Hospitalized" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	Hospitalized *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HospitalizedID int `json:"-" pg:", fk:Hospitalized"`
	ListID         int `json:"-" pg:", fk:List"`
}

func (*PsychologicalHospitalizations) Delete

func (entity *PsychologicalHospitalizations) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*PsychologicalHospitalizations) Get

func (entity *PsychologicalHospitalizations) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*PsychologicalHospitalizations) GetID

func (entity *PsychologicalHospitalizations) GetID() int

GetID returns the entity identifier.

func (*PsychologicalHospitalizations) Marshal

func (entity *PsychologicalHospitalizations) Marshal() Payload

Marshal to payload structure

func (*PsychologicalHospitalizations) Save

func (entity *PsychologicalHospitalizations) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*PsychologicalHospitalizations) SetID

func (entity *PsychologicalHospitalizations) SetID(id int)

SetID sets the entity identifier.

func (*PsychologicalHospitalizations) Unmarshal

func (entity *PsychologicalHospitalizations) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*PsychologicalHospitalizations) Valid

func (entity *PsychologicalHospitalizations) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Radio

type Radio struct {
	ID      int    `json:"-"`
	Value   string `json:"value"`
	Checked bool   `json:"checked,omitempty"`
}

Radio is a basic input.

func (*Radio) Delete

func (entity *Radio) Delete(context *db.DatabaseContext, account int) (int, error)

func (*Radio) Get

func (entity *Radio) Get(context *db.DatabaseContext, account int) (int, error)

func (*Radio) GetID

func (entity *Radio) GetID() int

ID returns the entity identifier.

func (*Radio) Marshal

func (entity *Radio) Marshal() Payload

Marshal to payload structure

func (*Radio) Save

func (entity *Radio) Save(context *db.DatabaseContext, account int) (int, error)

func (*Radio) SetID

func (entity *Radio) SetID(id int)

SetID sets the entity identifier.

func (*Radio) Unmarshal

func (entity *Radio) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Radio) Valid

func (entity *Radio) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ReasonLeft

type ReasonLeft struct {
	PayloadComments          Payload `json:"Comments" sql:"-"`
	PayloadReasons           Payload `json:"Reasons" sql:"-"`
	PayloadReasonDescription Payload `json:"ReasonDescription" sql:"-"`

	// Validator specific fields
	Comments          *Textarea   `json:"-"`
	Reasons           *Collection `json:"-"`
	ReasonDescription *Textarea   `json:"-"`

	// Persister specific fields
	ID                  int `json:"-"`
	AccountID           int `json:"-"`
	CommentsID          int `json:"-"`
	ReasonsID           int `json:"-"`
	ReasonDescriptionID int `json:"-"`
}

ReasonLeft is a basic input.

func (*ReasonLeft) Delete

func (entity *ReasonLeft) Delete(context *db.DatabaseContext, account int) (int, error)

Delete the ReasonLeft entity.

func (*ReasonLeft) Get

func (entity *ReasonLeft) Get(context *db.DatabaseContext, account int) (int, error)

Get the ReasonLeft entity.

func (*ReasonLeft) GetID

func (entity *ReasonLeft) GetID() int

GetID returns the entity identifier.

func (*ReasonLeft) Marshal

func (entity *ReasonLeft) Marshal() Payload

Marshal to payload structure

func (*ReasonLeft) Save

func (entity *ReasonLeft) Save(context *db.DatabaseContext, account int) (int, error)

Save the ReasonLeft entity.

func (*ReasonLeft) SetID

func (entity *ReasonLeft) SetID(id int)

SetID sets the entity identifier.

func (*ReasonLeft) Unmarshal

func (entity *ReasonLeft) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ReasonLeft) Valid

func (entity *ReasonLeft) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type RelationshipsCohabitants

type RelationshipsCohabitants struct {
	PayloadHasCohabitant  Payload `json:"HasCohabitant" sql:"-"`
	PayloadCohabitantList Payload `json:"CohabitantList" sql:"-"`

	// Validator specific fields
	HasCohabitant  *Branch     `json:"-"`
	CohabitantList *Collection `json:"-"`

	// Persister specific fields
	ID               int `json:"-"`
	HasCohabitantID  int `json:"-" pg:", fk:HasCohabitant"`
	CohabitantListID int `json:"-" pg:", fk:CohabitantList"`
}

func (*RelationshipsCohabitants) Delete

func (entity *RelationshipsCohabitants) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*RelationshipsCohabitants) Get

func (entity *RelationshipsCohabitants) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*RelationshipsCohabitants) GetID

func (entity *RelationshipsCohabitants) GetID() int

GetID returns the entity identifier.

func (*RelationshipsCohabitants) Marshal

func (entity *RelationshipsCohabitants) Marshal() Payload

Marshal to payload structure

func (*RelationshipsCohabitants) Save

func (entity *RelationshipsCohabitants) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*RelationshipsCohabitants) SetID

func (entity *RelationshipsCohabitants) SetID(id int)

SetID sets the entity identifier.

func (*RelationshipsCohabitants) Unmarshal

func (entity *RelationshipsCohabitants) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*RelationshipsCohabitants) Valid

func (entity *RelationshipsCohabitants) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type RelationshipsComments

type RelationshipsComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

RelationshipsComments subsection of identification section.

func (*RelationshipsComments) Delete

func (entity *RelationshipsComments) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*RelationshipsComments) Get

func (entity *RelationshipsComments) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*RelationshipsComments) GetID

func (entity *RelationshipsComments) GetID() int

GetID returns the entity identifier.

func (*RelationshipsComments) Marshal

func (entity *RelationshipsComments) Marshal() Payload

Marshal to payload structure

func (*RelationshipsComments) Save

func (entity *RelationshipsComments) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*RelationshipsComments) SetID

func (entity *RelationshipsComments) SetID(id int)

SetID sets the entity identifier.

func (*RelationshipsComments) Unmarshal

func (entity *RelationshipsComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*RelationshipsComments) Valid

func (entity *RelationshipsComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type RelationshipsMarital

type RelationshipsMarital struct {
	PayloadStatus       Payload `json:"Status" sql:"-"`
	PayloadCivilUnion   Payload `json:"CivilUnion" sql:"-"`
	PayloadDivorcedList Payload `json:"DivorcedList" sql:"-"`

	// Validator specific fields
	Status       *Radio      `json:"-"`
	CivilUnion   *CivilUnion `json:"-"`
	DivorcedList *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	StatusID       int `json:"-" pg:", fk:Status"`
	CivilUnionID   int `json:"-" pg:", fk:CivilUnion"`
	DivorcedListID int `json:"-" pg:", fk:DivorcedList"`
}

func (*RelationshipsMarital) Delete

func (entity *RelationshipsMarital) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*RelationshipsMarital) Get

func (entity *RelationshipsMarital) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*RelationshipsMarital) GetID

func (entity *RelationshipsMarital) GetID() int

GetID returns the entity identifier.

func (*RelationshipsMarital) Marshal

func (entity *RelationshipsMarital) Marshal() Payload

Marshal to payload structure

func (*RelationshipsMarital) Save

func (entity *RelationshipsMarital) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*RelationshipsMarital) SetID

func (entity *RelationshipsMarital) SetID(id int)

SetID sets the entity identifier.

func (*RelationshipsMarital) Unmarshal

func (entity *RelationshipsMarital) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*RelationshipsMarital) Valid

func (entity *RelationshipsMarital) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type RelationshipsPeople

type RelationshipsPeople struct {
	PayloadList Payload `json:"List" sql:"-"`

	// Validator specific fields
	List *Collection `json:"-"`

	// Persister specific fields
	ID     int `json:"-"`
	ListID int `json:"-" pg:", fk:List"`
}

func (*RelationshipsPeople) Delete

func (entity *RelationshipsPeople) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*RelationshipsPeople) Get

func (entity *RelationshipsPeople) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*RelationshipsPeople) GetID

func (entity *RelationshipsPeople) GetID() int

GetID returns the entity identifier.

func (*RelationshipsPeople) Marshal

func (entity *RelationshipsPeople) Marshal() Payload

Marshal to payload structure

func (*RelationshipsPeople) Save

func (entity *RelationshipsPeople) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*RelationshipsPeople) SetID

func (entity *RelationshipsPeople) SetID(id int)

SetID sets the entity identifier.

func (*RelationshipsPeople) Unmarshal

func (entity *RelationshipsPeople) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*RelationshipsPeople) Valid

func (entity *RelationshipsPeople) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type RelationshipsRelatives

type RelationshipsRelatives struct {
	PayloadList Payload `json:"List" sql:"-"`

	// Validator specific fields
	List *Collection `json:"-"`

	// Persister specific fields
	ID     int `json:"-"`
	ListID int `json:"-" pg:", fk:List"`
}

func (*RelationshipsRelatives) Delete

func (entity *RelationshipsRelatives) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*RelationshipsRelatives) Get

func (entity *RelationshipsRelatives) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*RelationshipsRelatives) GetID

func (entity *RelationshipsRelatives) GetID() int

GetID returns the entity identifier.

func (*RelationshipsRelatives) Marshal

func (entity *RelationshipsRelatives) Marshal() Payload

Marshal to payload structure

func (*RelationshipsRelatives) Save

func (entity *RelationshipsRelatives) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*RelationshipsRelatives) SetID

func (entity *RelationshipsRelatives) SetID(id int)

SetID sets the entity identifier.

func (*RelationshipsRelatives) Unmarshal

func (entity *RelationshipsRelatives) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*RelationshipsRelatives) Valid

func (entity *RelationshipsRelatives) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SSN

type SSN struct {
	ID            int    `json:"-"`
	First         string `json:"first"`
	Middle        string `json:"middle"`
	Last          string `json:"last"`
	NotApplicable bool   `json:"notApplicable"`
}

SSN is a basic input.

func (*SSN) Delete

func (entity *SSN) Delete(context *db.DatabaseContext, account int) (int, error)

func (*SSN) Get

func (entity *SSN) Get(context *db.DatabaseContext, account int) (int, error)

func (*SSN) GetID

func (entity *SSN) GetID() int

ID returns the entity identifier.

func (*SSN) Marshal

func (entity *SSN) Marshal() Payload

Marshal to payload structure

func (*SSN) Save

func (entity *SSN) Save(context *db.DatabaseContext, account int) (int, error)

func (*SSN) SetID

func (entity *SSN) SetID(id int)

SetID sets the entity identifier.

func (*SSN) Unmarshal

func (entity *SSN) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SSN) Valid

func (entity *SSN) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Sentence

type Sentence struct {
	PayloadDescription          Payload `json:"Description" sql:"-"`
	PayloadExceedsYear          Payload `json:"ExceedsYear" sql:"-"`
	PayloadIncarcerated         Payload `json:"Incarcerated" sql:"-"`
	PayloadIncarcerationDates   Payload `json:"IncarcerationDates" sql:"-"`
	PayloadIncarcerationDatesNA Payload `json:"IncarcerationDatesNA" sql:"-"`
	PayloadProbationDates       Payload `json:"ProbationDates" sql:"-"`
	PayloadProbationDatesNA     Payload `json:"ProbationDatesNA" sql:"-"`

	// Validator specific fields
	Description          *Textarea      `json:"-" sql:"-"`
	ExceedsYear          *Branch        `json:"-" sql:"-"`
	Incarcerated         *Branch        `json:"-" sql:"-"`
	IncarcerationDates   *DateRange     `json:"-" sql:"-"`
	IncarcerationDatesNA *NotApplicable `json:"-" sql:"-"`
	ProbationDates       *DateRange     `json:"-" sql:"-"`
	ProbationDatesNA     *NotApplicable `json:"-" sql:"-"`

	// Persister specific fields
	ID                     int `json:"-"`
	AccountID              int `json:"-"`
	DescriptionID          int `json:"-"`
	ExceedsYearID          int `json:"-"`
	IncarceratedID         int `json:"-"`
	IncarcerationDatesID   int `json:"-"`
	IncarcerationDatesNAID int `json:"-"`
	ProbationDatesID       int `json:"-"`
	ProbationDatesNAID     int `json:"-"`
}

Sentence is a basic input.

func (*Sentence) Delete

func (entity *Sentence) Delete(context *db.DatabaseContext, account int) (int, error)

Delete the Sentence entity.

func (*Sentence) Get

func (entity *Sentence) Get(context *db.DatabaseContext, account int) (int, error)

Get the Sentence entity.

func (*Sentence) GetID

func (entity *Sentence) GetID() int

GetID returns the entity identifier.

func (*Sentence) Marshal

func (entity *Sentence) Marshal() Payload

Marshal to payload structure

func (*Sentence) Save

func (entity *Sentence) Save(context *db.DatabaseContext, account int) (int, error)

Save the Sentence entity.

func (*Sentence) SetID

func (entity *Sentence) SetID(id int)

SetID sets the entity identifier.

func (*Sentence) Unmarshal

func (entity *Sentence) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Sentence) Valid

func (entity *Sentence) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Signature

type Signature struct {
	PayloadName Payload `json:"Name" sql:"-"`
	PayloadDate Payload `json:"Date" sql:"-"`

	// Validator specific fields
	Name *Text        `json:"-" sql:"-"`
	Date *DateControl `json:"-" sql:"-"`

	// Persister specific fields
	ID        int `json:"-"`
	AccountID int `json:"-"`
	NameID    int `json:"-"`
	DateID    int `json:"-"`
}

Signature is a basic input.

func (*Signature) Delete

func (entity *Signature) Delete(context *db.DatabaseContext, account int) (int, error)

func (*Signature) Get

func (entity *Signature) Get(context *db.DatabaseContext, account int) (int, error)

func (*Signature) GetID

func (entity *Signature) GetID() int

ID returns the entity identifier.

func (*Signature) Marshal

func (entity *Signature) Marshal() Payload

Marshal to payload structure

func (*Signature) Save

func (entity *Signature) Save(context *db.DatabaseContext, account int) (int, error)

func (*Signature) SetID

func (entity *Signature) SetID(id int)

SetID sets the entity identifier.

func (*Signature) Unmarshal

func (entity *Signature) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Signature) Valid

func (entity *Signature) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Submission

type Submission struct {
	PayloadAdditionalComments Payload `json:"AdditionalComments" sql:"-"`
	PayloadGeneral            Payload `json:"General" sql:"-"`
	PayloadMedical            Payload `json:"Medical" sql:"-"`
	PayloadCredit             Payload `json:"Credit" sql:"-"`

	// Validator specific fields
	AdditionalComments *SubmissionAdditionalComments `json:"-" sql:"-"`
	General            *SubmissionGeneral            `json:"-" sql:"-"`
	Medical            *SubmissionMedical            `json:"-" sql:"-"`
	Credit             *SubmissionCredit             `json:"-" sql:"-"`

	// Persister specific fields
	ID                   int `json:"-"`
	AdditionalCommentsID int `json:"-"`
	GeneralID            int `json:"-"`
	MedicalID            int `json:"-"`
	CreditID             int `json:"-"`
}

func (*Submission) Delete

func (entity *Submission) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*Submission) Get

func (entity *Submission) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*Submission) GetID

func (entity *Submission) GetID() int

GetID returns the entity identifier.

func (*Submission) Marshal

func (entity *Submission) Marshal() Payload

Marshal to payload structure

func (*Submission) Save

func (entity *Submission) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*Submission) SetID

func (entity *Submission) SetID(id int)

SetID sets the entity identifier.

func (*Submission) Unmarshal

func (entity *Submission) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Submission) Valid

func (entity *Submission) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubmissionAdditionalComments

type SubmissionAdditionalComments struct {
	PayloadSignature Payload `json:"Signature" sql:"-"`

	// Validator specific fields
	Signature *Signature `json:"-" sql:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	SignatureID int `json:"-"`
}

func (*SubmissionAdditionalComments) Delete

func (entity *SubmissionAdditionalComments) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubmissionAdditionalComments) Get

func (entity *SubmissionAdditionalComments) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubmissionAdditionalComments) GetID

func (entity *SubmissionAdditionalComments) GetID() int

GetID returns the entity identifier.

func (*SubmissionAdditionalComments) Marshal

func (entity *SubmissionAdditionalComments) Marshal() Payload

Marshal to payload structure

func (*SubmissionAdditionalComments) Save

func (entity *SubmissionAdditionalComments) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubmissionAdditionalComments) SetID

func (entity *SubmissionAdditionalComments) SetID(id int)

SetID sets the entity identifier.

func (*SubmissionAdditionalComments) Unmarshal

func (entity *SubmissionAdditionalComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubmissionAdditionalComments) Valid

func (entity *SubmissionAdditionalComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubmissionCredit

type SubmissionCredit struct {
	PayloadSignature Payload `json:"Signature" sql:"-"`

	// Validator specific fields
	Signature *Signature `json:"-" sql:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	SignatureID int `json:"-"`
}

func (*SubmissionCredit) Delete

func (entity *SubmissionCredit) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubmissionCredit) Get

func (entity *SubmissionCredit) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubmissionCredit) GetID

func (entity *SubmissionCredit) GetID() int

GetID returns the entity identifier.

func (*SubmissionCredit) Marshal

func (entity *SubmissionCredit) Marshal() Payload

Marshal to payload structure

func (*SubmissionCredit) Save

func (entity *SubmissionCredit) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubmissionCredit) SetID

func (entity *SubmissionCredit) SetID(id int)

SetID sets the entity identifier.

func (*SubmissionCredit) Unmarshal

func (entity *SubmissionCredit) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubmissionCredit) Valid

func (entity *SubmissionCredit) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubmissionGeneral

type SubmissionGeneral struct {
	PayloadSignature Payload `json:"Signature" sql:"-"`

	// Validator specific fields
	Signature *Signature `json:"-" sql:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	SignatureID int `json:"-"`
}

func (*SubmissionGeneral) Delete

func (entity *SubmissionGeneral) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubmissionGeneral) Get

func (entity *SubmissionGeneral) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubmissionGeneral) GetID

func (entity *SubmissionGeneral) GetID() int

GetID returns the entity identifier.

func (*SubmissionGeneral) Marshal

func (entity *SubmissionGeneral) Marshal() Payload

Marshal to payload structure

func (*SubmissionGeneral) Save

func (entity *SubmissionGeneral) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubmissionGeneral) SetID

func (entity *SubmissionGeneral) SetID(id int)

SetID sets the entity identifier.

func (*SubmissionGeneral) Unmarshal

func (entity *SubmissionGeneral) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubmissionGeneral) Valid

func (entity *SubmissionGeneral) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubmissionMedical

type SubmissionMedical struct {
	PayloadSignature Payload `json:"Signature" sql:"-"`

	// Validator specific fields
	Signature *Signature `json:"-" sql:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	SignatureID int `json:"-"`
}

func (*SubmissionMedical) Delete

func (entity *SubmissionMedical) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubmissionMedical) Get

func (entity *SubmissionMedical) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubmissionMedical) GetID

func (entity *SubmissionMedical) GetID() int

GetID returns the entity identifier.

func (*SubmissionMedical) Marshal

func (entity *SubmissionMedical) Marshal() Payload

Marshal to payload structure

func (*SubmissionMedical) Save

func (entity *SubmissionMedical) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubmissionMedical) SetID

func (entity *SubmissionMedical) SetID(id int)

SetID sets the entity identifier.

func (*SubmissionMedical) Unmarshal

func (entity *SubmissionMedical) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubmissionMedical) Valid

func (entity *SubmissionMedical) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceAlcoholAdditional

type SubstanceAlcoholAdditional struct {
	PayloadReceivedTreatment Payload `json:"ReceivedTreatment" sql:"-"`
	PayloadList              Payload `json:"List" sql:"-"`

	// Validator specific fields
	ReceivedTreatment *Branch     `json:"-"`
	List              *Collection `json:"-"`

	// Persister specific fields
	ID                  int `json:"-"`
	ReceivedTreatmentID int `json:"-" pg:", fk:ReceivedTreatment"`
	ListID              int `json:"-" pg:", fk:List"`
}

func (*SubstanceAlcoholAdditional) Delete

func (entity *SubstanceAlcoholAdditional) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceAlcoholAdditional) Get

func (entity *SubstanceAlcoholAdditional) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceAlcoholAdditional) GetID

func (entity *SubstanceAlcoholAdditional) GetID() int

GetID returns the entity identifier.

func (*SubstanceAlcoholAdditional) Marshal

func (entity *SubstanceAlcoholAdditional) Marshal() Payload

Marshal to payload structure

func (*SubstanceAlcoholAdditional) Save

func (entity *SubstanceAlcoholAdditional) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubstanceAlcoholAdditional) SetID

func (entity *SubstanceAlcoholAdditional) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceAlcoholAdditional) Unmarshal

func (entity *SubstanceAlcoholAdditional) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceAlcoholAdditional) Valid

func (entity *SubstanceAlcoholAdditional) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceAlcoholNegative

type SubstanceAlcoholNegative struct {
	PayloadHasImpacts Payload `json:"HasImpacts" sql:"-"`
	PayloadList       Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasImpacts *Branch     `json:"-"`
	List       *Collection `json:"-"`

	// Persister specific fields
	ID           int `json:"-"`
	HasImpactsID int `json:"-" pg:", fk:HasImpacts"`
	ListID       int `json:"-" pg:", fk:List"`
}

func (*SubstanceAlcoholNegative) Delete

func (entity *SubstanceAlcoholNegative) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceAlcoholNegative) Get

func (entity *SubstanceAlcoholNegative) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceAlcoholNegative) GetID

func (entity *SubstanceAlcoholNegative) GetID() int

GetID returns the entity identifier.

func (*SubstanceAlcoholNegative) Marshal

func (entity *SubstanceAlcoholNegative) Marshal() Payload

Marshal to payload structure

func (*SubstanceAlcoholNegative) Save

func (entity *SubstanceAlcoholNegative) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubstanceAlcoholNegative) SetID

func (entity *SubstanceAlcoholNegative) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceAlcoholNegative) Unmarshal

func (entity *SubstanceAlcoholNegative) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceAlcoholNegative) Valid

func (entity *SubstanceAlcoholNegative) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceAlcoholOrdered

type SubstanceAlcoholOrdered struct {
	PayloadHasBeenOrdered Payload `json:"HasBeenOrdered" sql:"-"`
	PayloadList           Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasBeenOrdered *Branch     `json:"-"`
	List           *Collection `json:"-"`

	// Persister specific fields
	ID               int `json:"-"`
	HasBeenOrderedID int `json:"-" pg:", fk:HasBeenOrdered"`
	ListID           int `json:"-" pg:", fk:List"`
}

func (*SubstanceAlcoholOrdered) Delete

func (entity *SubstanceAlcoholOrdered) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceAlcoholOrdered) Get

func (entity *SubstanceAlcoholOrdered) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceAlcoholOrdered) GetID

func (entity *SubstanceAlcoholOrdered) GetID() int

GetID returns the entity identifier.

func (*SubstanceAlcoholOrdered) Marshal

func (entity *SubstanceAlcoholOrdered) Marshal() Payload

Marshal to payload structure

func (*SubstanceAlcoholOrdered) Save

func (entity *SubstanceAlcoholOrdered) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubstanceAlcoholOrdered) SetID

func (entity *SubstanceAlcoholOrdered) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceAlcoholOrdered) Unmarshal

func (entity *SubstanceAlcoholOrdered) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceAlcoholOrdered) Valid

func (entity *SubstanceAlcoholOrdered) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceAlcoholVoluntary

type SubstanceAlcoholVoluntary struct {
	PayloadSoughtTreatment Payload `json:"SoughtTreatment" sql:"-"`
	PayloadList            Payload `json:"List" sql:"-"`

	// Validator specific fields
	SoughtTreatment *Branch     `json:"-"`
	List            *Collection `json:"-"`

	// Persister specific fields
	ID                int `json:"-"`
	SoughtTreatmentID int `json:"-" pg:", fk:SoughtTreatment"`
	ListID            int `json:"-" pg:", fk:List"`
}

func (*SubstanceAlcoholVoluntary) Delete

func (entity *SubstanceAlcoholVoluntary) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceAlcoholVoluntary) Get

func (entity *SubstanceAlcoholVoluntary) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceAlcoholVoluntary) GetID

func (entity *SubstanceAlcoholVoluntary) GetID() int

GetID returns the entity identifier.

func (*SubstanceAlcoholVoluntary) Marshal

func (entity *SubstanceAlcoholVoluntary) Marshal() Payload

Marshal to payload structure

func (*SubstanceAlcoholVoluntary) Save

func (entity *SubstanceAlcoholVoluntary) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubstanceAlcoholVoluntary) SetID

func (entity *SubstanceAlcoholVoluntary) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceAlcoholVoluntary) Unmarshal

func (entity *SubstanceAlcoholVoluntary) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceAlcoholVoluntary) Valid

func (entity *SubstanceAlcoholVoluntary) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceComments

type SubstanceComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

SubstanceComments subsection of identification section.

func (*SubstanceComments) Delete

func (entity *SubstanceComments) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceComments) Get

func (entity *SubstanceComments) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceComments) GetID

func (entity *SubstanceComments) GetID() int

GetID returns the entity identifier.

func (*SubstanceComments) Marshal

func (entity *SubstanceComments) Marshal() Payload

Marshal to payload structure

func (*SubstanceComments) Save

func (entity *SubstanceComments) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubstanceComments) SetID

func (entity *SubstanceComments) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceComments) Unmarshal

func (entity *SubstanceComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceComments) Valid

func (entity *SubstanceComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceDrugClearance

type SubstanceDrugClearance struct {
	PayloadUsedDrugs Payload `json:"UsedDrugs" sql:"-"`
	PayloadList      Payload `json:"List" sql:"-"`

	// Validator specific fields
	UsedDrugs *Branch     `json:"-"`
	List      *Collection `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	UsedDrugsID int `json:"-" pg:", fk:UsedDrugs"`
	ListID      int `json:"-" pg:", fk:List"`
}

func (*SubstanceDrugClearance) Delete

func (entity *SubstanceDrugClearance) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceDrugClearance) Get

func (entity *SubstanceDrugClearance) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceDrugClearance) GetID

func (entity *SubstanceDrugClearance) GetID() int

GetID returns the entity identifier.

func (*SubstanceDrugClearance) Marshal

func (entity *SubstanceDrugClearance) Marshal() Payload

Marshal to payload structure

func (*SubstanceDrugClearance) Save

func (entity *SubstanceDrugClearance) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubstanceDrugClearance) SetID

func (entity *SubstanceDrugClearance) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceDrugClearance) Unmarshal

func (entity *SubstanceDrugClearance) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceDrugClearance) Valid

func (entity *SubstanceDrugClearance) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceDrugMisuse

type SubstanceDrugMisuse struct {
	PayloadUsedDrugs Payload `json:"MisusedDrugs" sql:"-"`
	PayloadList      Payload `json:"List" sql:"-"`

	// Validator specific fields
	UsedDrugs *Branch     `json:"-"`
	List      *Collection `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	UsedDrugsID int `json:"-" pg:", fk:MisusedDrugs"`
	ListID      int `json:"-" pg:", fk:List"`
}

func (*SubstanceDrugMisuse) Delete

func (entity *SubstanceDrugMisuse) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceDrugMisuse) Get

func (entity *SubstanceDrugMisuse) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceDrugMisuse) GetID

func (entity *SubstanceDrugMisuse) GetID() int

GetID returns the entity identifier.

func (*SubstanceDrugMisuse) Marshal

func (entity *SubstanceDrugMisuse) Marshal() Payload

Marshal to payload structure

func (*SubstanceDrugMisuse) Save

func (entity *SubstanceDrugMisuse) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubstanceDrugMisuse) SetID

func (entity *SubstanceDrugMisuse) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceDrugMisuse) Unmarshal

func (entity *SubstanceDrugMisuse) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceDrugMisuse) Valid

func (entity *SubstanceDrugMisuse) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceDrugOrdered

type SubstanceDrugOrdered struct {
	PayloadInvolved Payload `json:"TreatmentOrdered" sql:"-"`
	PayloadList     Payload `json:"List" sql:"-"`

	// Validator specific fields
	Involved *Branch     `json:"-"`
	List     *Collection `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	InvolvedID int `json:"-" pg:", fk:TreatmentOrdered"`
	ListID     int `json:"-" pg:", fk:List"`
}

func (*SubstanceDrugOrdered) Delete

func (entity *SubstanceDrugOrdered) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceDrugOrdered) Get

func (entity *SubstanceDrugOrdered) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceDrugOrdered) GetID

func (entity *SubstanceDrugOrdered) GetID() int

GetID returns the entity identifier.

func (*SubstanceDrugOrdered) Marshal

func (entity *SubstanceDrugOrdered) Marshal() Payload

Marshal to payload structure

func (*SubstanceDrugOrdered) Save

func (entity *SubstanceDrugOrdered) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubstanceDrugOrdered) SetID

func (entity *SubstanceDrugOrdered) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceDrugOrdered) Unmarshal

func (entity *SubstanceDrugOrdered) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceDrugOrdered) Valid

func (entity *SubstanceDrugOrdered) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceDrugPublicSafety

type SubstanceDrugPublicSafety struct {
	PayloadUsedDrugs Payload `json:"UsedDrugs" sql:"-"`
	PayloadList      Payload `json:"List" sql:"-"`

	// Validator specific fields
	UsedDrugs *Branch     `json:"-"`
	List      *Collection `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	UsedDrugsID int `json:"-" pg:", fk:UsedDrugs"`
	ListID      int `json:"-" pg:", fk:List"`
}

func (*SubstanceDrugPublicSafety) Delete

func (entity *SubstanceDrugPublicSafety) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceDrugPublicSafety) Get

func (entity *SubstanceDrugPublicSafety) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceDrugPublicSafety) GetID

func (entity *SubstanceDrugPublicSafety) GetID() int

GetID returns the entity identifier.

func (*SubstanceDrugPublicSafety) Marshal

func (entity *SubstanceDrugPublicSafety) Marshal() Payload

Marshal to payload structure

func (*SubstanceDrugPublicSafety) Save

func (entity *SubstanceDrugPublicSafety) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubstanceDrugPublicSafety) SetID

func (entity *SubstanceDrugPublicSafety) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceDrugPublicSafety) Unmarshal

func (entity *SubstanceDrugPublicSafety) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceDrugPublicSafety) Valid

func (entity *SubstanceDrugPublicSafety) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceDrugPurchase

type SubstanceDrugPurchase struct {
	PayloadInvolved Payload `json:"Involved" sql:"-"`
	PayloadList     Payload `json:"List" sql:"-"`

	// Validator specific fields
	Involved *Branch     `json:"-"`
	List     *Collection `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	InvolvedID int `json:"-" pg:", fk:Involved"`
	ListID     int `json:"-" pg:", fk:List"`
}

func (*SubstanceDrugPurchase) Delete

func (entity *SubstanceDrugPurchase) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceDrugPurchase) Get

func (entity *SubstanceDrugPurchase) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceDrugPurchase) GetID

func (entity *SubstanceDrugPurchase) GetID() int

GetID returns the entity identifier.

func (*SubstanceDrugPurchase) Marshal

func (entity *SubstanceDrugPurchase) Marshal() Payload

Marshal to payload structure

func (*SubstanceDrugPurchase) Save

func (entity *SubstanceDrugPurchase) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubstanceDrugPurchase) SetID

func (entity *SubstanceDrugPurchase) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceDrugPurchase) Unmarshal

func (entity *SubstanceDrugPurchase) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceDrugPurchase) Valid

func (entity *SubstanceDrugPurchase) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceDrugUsage

type SubstanceDrugUsage struct {
	PayloadUsedDrugs Payload `json:"UsedDrugs" sql:"-"`
	PayloadList      Payload `json:"List" sql:"-"`

	// Validator specific fields
	UsedDrugs *Branch     `json:"-"`
	List      *Collection `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	UsedDrugsID int `json:"-" pg:", fk:UsedDrugs"`
	ListID      int `json:"-" pg:", fk:List"`
}

func (*SubstanceDrugUsage) Delete

func (entity *SubstanceDrugUsage) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceDrugUsage) Get

func (entity *SubstanceDrugUsage) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceDrugUsage) GetID

func (entity *SubstanceDrugUsage) GetID() int

GetID returns the entity identifier.

func (*SubstanceDrugUsage) Marshal

func (entity *SubstanceDrugUsage) Marshal() Payload

Marshal to payload structure

func (*SubstanceDrugUsage) Save

func (entity *SubstanceDrugUsage) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubstanceDrugUsage) SetID

func (entity *SubstanceDrugUsage) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceDrugUsage) Unmarshal

func (entity *SubstanceDrugUsage) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceDrugUsage) Valid

func (entity *SubstanceDrugUsage) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceDrugVoluntary

type SubstanceDrugVoluntary struct {
	PayloadInvolved Payload `json:"TreatmentVoluntary" sql:"-"`
	PayloadList     Payload `json:"List" sql:"-"`

	// Validator specific fields
	Involved *Branch     `json:"-"`
	List     *Collection `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	InvolvedID int `json:"-" pg:", fk:TreatmentVoluntary"`
	ListID     int `json:"-" pg:", fk:List"`
}

func (*SubstanceDrugVoluntary) Delete

func (entity *SubstanceDrugVoluntary) Delete(context *db.DatabaseContext, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceDrugVoluntary) Get

func (entity *SubstanceDrugVoluntary) Get(context *db.DatabaseContext, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceDrugVoluntary) GetID

func (entity *SubstanceDrugVoluntary) GetID() int

GetID returns the entity identifier.

func (*SubstanceDrugVoluntary) Marshal

func (entity *SubstanceDrugVoluntary) Marshal() Payload

Marshal to payload structure

func (*SubstanceDrugVoluntary) Save

func (entity *SubstanceDrugVoluntary) Save(context *db.DatabaseContext, account int) (int, error)

Save will create or update the database.

func (*SubstanceDrugVoluntary) SetID

func (entity *SubstanceDrugVoluntary) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceDrugVoluntary) Unmarshal

func (entity *SubstanceDrugVoluntary) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceDrugVoluntary) Valid

func (entity *SubstanceDrugVoluntary) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Supervisor

type Supervisor struct {
	PayloadSupervisorName     Payload `json:"SupervisorName" sql:"-"`
	PayloadTitle              Payload `json:"Title" sql:"-"`
	PayloadEmail              Payload `json:"Email" sql:"-"`
	PayloadEmailNotApplicable Payload `json:"EmailNotApplicable" sql:"-"`
	PayloadAddress            Payload `json:"Address" sql:"-"`
	PayloadTelephone          Payload `json:"Telephone" sql:"-"`

	// Validator specific fields
	SupervisorName     *Text          `json:"-"`
	Title              *Text          `json:"-"`
	Email              *Email         `json:"-"`
	EmailNotApplicable *NotApplicable `json:"-"`
	Address            *Location      `json:"-"`
	Telephone          *Telephone     `json:"-"`

	// Persister specific fields
	ID                   int `json:"-"`
	AccountID            int `json:"-"`
	SupervisorNameID     int `json:"-"`
	TitleID              int `json:"-"`
	EmailID              int `json:"-"`
	EmailNotApplicableID int `json:"-"`
	AddressID            int `json:"-"`
	TelephoneID          int `json:"-"`
}

Supervisor is a basic input.

func (*Supervisor) Delete

func (entity *Supervisor) Delete(context *db.DatabaseContext, account int) (int, error)

Delete the Supervisor entity.

func (*Supervisor) Get

func (entity *Supervisor) Get(context *db.DatabaseContext, account int) (int, error)

Get the Supervisor entity.

func (*Supervisor) GetID

func (entity *Supervisor) GetID() int

GetID returns the entity identifier.

func (*Supervisor) Marshal

func (entity *Supervisor) Marshal() Payload

Marshal to payload structure

func (*Supervisor) Save

func (entity *Supervisor) Save(context *db.DatabaseContext, account int) (int, error)

Save the Supervisor entity.

func (*Supervisor) SetID

func (entity *Supervisor) SetID(id int)

SetID sets the entity identifier.

func (*Supervisor) Unmarshal

func (entity *Supervisor) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Supervisor) Valid

func (entity *Supervisor) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Telephone

type Telephone struct {
	ID         int    `json:"-"`
	TimeOfDay  string `json:"timeOfDay"`
	Type       string `json:"type"`
	NumberType string `json:"numberType"`
	Number     string `json:"number"`
	Extension  string `json:"extension"`
	NoNumber   bool   `json:"noNumber"`
}

Telephone is a basic input.

func (*Telephone) Delete

func (entity *Telephone) Delete(context *db.DatabaseContext, account int) (int, error)

func (*Telephone) Get

func (entity *Telephone) Get(context *db.DatabaseContext, account int) (int, error)

func (*Telephone) GetID

func (entity *Telephone) GetID() int

ID returns the entity identifier.

func (*Telephone) Marshal

func (entity *Telephone) Marshal() Payload

Marshal to payload structure

func (*Telephone) Save

func (entity *Telephone) Save(context *db.DatabaseContext, account int) (int, error)

func (*Telephone) SetID

func (entity *Telephone) SetID(id int)

SetID sets the entity identifier.

func (*Telephone) Unmarshal

func (entity *Telephone) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Telephone) Valid

func (entity *Telephone) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Text

type Text struct {
	ID    int    `json:"-"`
	Value string `json:"value"`
}

Text is a basic input.

func (*Text) Delete

func (entity *Text) Delete(context *db.DatabaseContext, account int) (int, error)

func (*Text) Get

func (entity *Text) Get(context *db.DatabaseContext, account int) (int, error)

func (*Text) GetID

func (entity *Text) GetID() int

ID returns the entity identifier.

func (*Text) Marshal

func (entity *Text) Marshal() Payload

Marshal to payload structure

func (*Text) Save

func (entity *Text) Save(context *db.DatabaseContext, account int) (int, error)

func (*Text) SetID

func (entity *Text) SetID(id int)

SetID sets the entity identifier.

func (*Text) Unmarshal

func (entity *Text) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Text) Valid

func (entity *Text) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Textarea

type Textarea struct {
	ID    int    `json:"-"`
	Value string `json:"value"`
}

Textarea is a basic input.

func (*Textarea) Delete

func (entity *Textarea) Delete(context *db.DatabaseContext, account int) (int, error)

func (*Textarea) Get

func (entity *Textarea) Get(context *db.DatabaseContext, account int) (int, error)

func (*Textarea) GetID

func (entity *Textarea) GetID() int

ID returns the entity identifier.

func (*Textarea) Marshal

func (entity *Textarea) Marshal() Payload

Marshal to payload structure

func (*Textarea) Save

func (entity *Textarea) Save(context *db.DatabaseContext, account int) (int, error)

func (*Textarea) SetID

func (entity *Textarea) SetID(id int)

SetID sets the entity identifier.

func (*Textarea) Unmarshal

func (entity *Textarea) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Textarea) Valid

func (entity *Textarea) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Treatment

type Treatment struct {
	PayloadName    Payload `json:"Name" sql:"-"`
	PayloadPhone   Payload `json:"Phone" sql:"-"`
	PayloadAddress Payload `json:"Address" sql:"-"`

	// Validator specific fields
	Name    *Text      `json:"-"`
	Phone   *Telephone `json:"-"`
	Address *Location  `json:"-"`

	// Persister specific fields
	ID        int `json:"-"`
	NameID    int `json:"-" pg:", fk:Name"`
	PhoneID   int `json:"-" pg:", fk:Phone"`
	AddressID int `json:"-" pg:", fk:Address"`
}

func (*Treatment) Delete

func (entity *Treatment) Delete(context *db.DatabaseContext, account int) (int, error)

func (*Treatment) Get

func (entity *Treatment) Get(context *db.DatabaseContext, account int) (int, error)

func (*Treatment) GetID

func (entity *Treatment) GetID() int

ID returns the entity identifier.

func (*Treatment) Marshal

func (entity *Treatment) Marshal() Payload

Marshal to payload structure

func (*Treatment) Save

func (entity *Treatment) Save(context *db.DatabaseContext, account int) (int, error)

func (*Treatment) SetID

func (entity *Treatment) SetID(id int)

SetID sets the entity identifier.

func (*Treatment) Unmarshal

func (entity *Treatment) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Treatment) Valid

func (entity *Treatment) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Validator

type Validator interface {
	Valid() (bool, error)
}

Validator interface entities which allow validating properties.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL