lib/app/company.go

60 lines
1.4 KiB
Go
Raw Permalink Normal View History

2021-01-10 23:44:39 +00:00
package app
2021-01-10 18:40:46 +00:00
2021-01-12 05:46:24 +00:00
import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/crm/crm_models"
)
// CompanyChannelWrapper wraps the object with the security principal
type CompanyChannelWrapper struct {
Obj crm_models.Company
Principal User
2021-01-13 05:30:35 +00:00
SagaID string
SagaType string
2021-01-12 05:46:24 +00:00
}
2021-01-10 18:40:46 +00:00
// Company is a DB struct
type Company struct {
ID string
AccountID string
AccountNumberPrefix string
AdvancePeriodID string
BillingAddress Address
BillingAdvice string
BillingContactID string
BillingEmail string
BillingPhone string
BillingWebsite string
CoaTemplateID string
ColorAccent1 string
ColorAccent2 string
ColorPrimary string
ClosedPeriodID string
CreatedByID string
CreatedDate sql.NullTime
CurrentPeriodID string
CurrentPeriodStatus string
CustomerSuccessID string
DateClosed sql.NullTime
DefaultAddress Address
DefaultCompany bool
FontBody string
FontHeading string
FontHeadingNarrow string
FontLink string
FontMono string
International bool
LastAccountNumber int64
LastModifiedByID string
LastModifiedDate sql.NullTime
LastTaxtypeNumber int64
Logo string
Name string
OwnerID string
PreparerID string
PricebookID string
TenantID string
UserTechLeadID string
}