package models import ( "time" ) type CrmClient struct { ID int `gorm:"primaryKey;column:id" json:"id"` BillingGroupNumber *int `gorm:"column:billing_group_number" json:"billing_group_number"` DrawdownCurrentBalance *float64 `gorm:"column:drawdown_current_balance" json:"drawdown_current_balance"` DrawdownInitialBalance *float64 `gorm:"column:drawdown_initial_balance" json:"drawdown_initial_balance"` ContractExpiry *time.Time `gorm:"column:contract_expiry;type:date" json:"contract_expiry"` CreatedDate *time.Time `gorm:"column:created_date;type:date" json:"created_date"` MBIE *bool `gorm:"column:mbie" json:"mbie"` FundingAvailable *bool `gorm:"column:funding_available" json:"funding_available"` DrawdownClient *bool `gorm:"column:drawdown_client" json:"drawdown_client"` CostCentreRequired *bool `gorm:"column:cost_centre_required" json:"cost_centre_required"` CallsRecordings *bool `gorm:"column:calls_recordings" json:"calls_recordings"` ABNNZBMNumber *string `gorm:"column:abn_nzbm_number" json:"abn_nzbm_number"` AccountsPayableEmail *string `gorm:"column:accounts_payable_email" json:"accounts_payable_email"` BillingGroup *string `gorm:"column:billing_group" json:"billing_group"` BusinessAddress *string `gorm:"column:business_address" json:"business_address"` Name *string `gorm:"column:name" json:"name"` Notes *string `gorm:"column:notes" json:"notes"` Owner *string `gorm:"column:owner" json:"owner"` PhoneNumber *string `gorm:"column:phone_number" json:"phone_number"` ServicePhone *string `gorm:"column:service_phone" json:"service_phone"` Status *string `gorm:"column:status" json:"status"` ContactName *string `gorm:"column:contact_name" json:"contact_name"` ContractSigned *string `gorm:"column:contract_signed" json:"contract_signed"` CreatedBy *string `gorm:"column:created_by" json:"created_by"` DrawdownPONumber *string `gorm:"column:drawdown_po_number" json:"drawdown_po_number"` GenderPreference *string `gorm:"column:gender_preference" json:"gender_preference"` GSTNumber *string `gorm:"column:gst_number" json:"gst_number"` InvoiceConfig *string `gorm:"column:invoice_config" json:"invoice_config"` CustomerReference *string `gorm:"column:customer_reference" json:"customer_reference"` PartnerName *string `gorm:"column:partner_name" json:"partner_name"` POReference *string `gorm:"column:po_reference" json:"po_reference"` PostalAddress *string `gorm:"column:postal_address" json:"postal_address"` SearchPattern *string `gorm:"column:search_pattern" json:"search_pattern"` State *string `gorm:"column:state" json:"state"` ReportEmails *string `gorm:"column:report_emails" json:"report_emails"` } func (CrmClient) TableName() string { return "live_clients" }