67 lines
4.4 KiB
Go
67 lines
4.4 KiB
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type CrmInterpreter struct {
|
|
ID int `gorm:"primaryKey;column:id" json:"id"`
|
|
ABN *string `gorm:"column:abn" json:"abn"`
|
|
AccountNumber *string `gorm:"column:account_number" json:"account_number"`
|
|
AccountStatus *string `gorm:"column:account_status" json:"account_status"`
|
|
Address *string `gorm:"column:address" json:"address"`
|
|
BankName *string `gorm:"column:bank_name" json:"bank_name"`
|
|
BSB *string `gorm:"column:bsb" json:"bsb"`
|
|
ContractStatus *string `gorm:"column:contract_status" json:"contract_status"`
|
|
BirthCountry *string `gorm:"column:birth_country" json:"birth_country"`
|
|
CreatedBy *string `gorm:"column:created_by" json:"created_by"`
|
|
CurrentPhone *string `gorm:"column:current_phone" json:"current_phone"`
|
|
DateOfBirth *string `gorm:"column:date_of_birth" json:"date_of_birth"`
|
|
Email *string `gorm:"column:email" json:"email"`
|
|
EmployedBy *string `gorm:"column:employed_by" json:"employed_by"`
|
|
EnrolmentDate *string `gorm:"column:enrolment_date" json:"enrolment_date"`
|
|
FinanceTasksCompleted *bool `gorm:"column:finance_tasks_completed" json:"finance_tasks_completed"`
|
|
GST *bool `gorm:"column:gst" json:"gst"`
|
|
NZGovApproved *bool `gorm:"column:nz_gov_approved" json:"nz_gov_approved"`
|
|
NaatiListed *bool `gorm:"column:naati_listed" json:"naati_listed"`
|
|
PersonalCV *bool `gorm:"column:personal_cv" json:"personal_cv"`
|
|
PinViaSMS *bool `gorm:"column:pin_via_sms" json:"pin_via_sms"`
|
|
VaxFluCheck *bool `gorm:"column:vax_flu_check" json:"vax_flu_check"`
|
|
WorkingWithChildren *bool `gorm:"column:working_with_children" json:"working_with_children"`
|
|
LastContactAttempt *time.Time `gorm:"column:last_contact_attempt" json:"last_contact_attempt"`
|
|
MigrationYear *time.Time `gorm:"column:migration_year" json:"migration_year"`
|
|
FirstName *string `gorm:"column:first_name" json:"first_name"`
|
|
Gender *string `gorm:"column:gender" json:"gender"`
|
|
FullName *string `gorm:"column:full_name" json:"full_name"`
|
|
Owner *string `gorm:"column:owner" json:"owner"`
|
|
TranslationType *string `gorm:"column:translation_type" json:"translation_type"`
|
|
Status *string `gorm:"column:status" json:"status"`
|
|
GSTNumber *string `gorm:"column:gst_number" json:"gst_number"`
|
|
LastName *string `gorm:"column:last_name" json:"last_name"`
|
|
Layout *string `gorm:"column:layout" json:"layout"`
|
|
ModifiedBy *string `gorm:"column:modified_by" json:"modified_by"`
|
|
NaatiCertification *string `gorm:"column:naati_certification" json:"naati_certification"`
|
|
NaatiCertificationID *string `gorm:"column:naati_certification_id" json:"naati_certification_id"`
|
|
Notes *string `gorm:"column:notes" json:"notes"`
|
|
NZBN *string `gorm:"column:nzbn" json:"nzbn"`
|
|
Password *string `gorm:"column:password" json:"password"`
|
|
PaymentState *string `gorm:"column:payment_state" json:"payment_state"`
|
|
PhotoID *string `gorm:"column:photo_id" json:"photo_id"`
|
|
PhotoIDExpiry *string `gorm:"column:photo_id_expiry" json:"photo_id_expiry"`
|
|
Pin *string `gorm:"column:pin" json:"pin"`
|
|
PoliceCheck *string `gorm:"column:police_check" json:"police_check"`
|
|
PoliceCheckExpiry *string `gorm:"column:police_check_expiry" json:"police_check_expiry"`
|
|
Postcode *string `gorm:"column:postcode" json:"postcode"`
|
|
Priority *string `gorm:"column:priority" json:"priority"`
|
|
State *string `gorm:"column:state" json:"state"`
|
|
Status2 *string `gorm:"column:status_2" json:"status_2"`
|
|
Suburb *string `gorm:"column:suburb" json:"suburb"`
|
|
Tag *string `gorm:"column:tag" json:"tag"`
|
|
VaxCovidCheck *string `gorm:"column:vax_covid_check" json:"vax_covid_check"`
|
|
CRMID *string `gorm:"column:crm_id" json:"crm_id"`
|
|
}
|
|
|
|
func (CrmInterpreter) TableName() string {
|
|
return "live_interpreters"
|
|
}
|