Documentation
¶
Index ¶
- Variables
- func AddCategoryHook(hookPoint boil.HookPoint, categoryHook CategoryHook)
- func AddCompanyCardHook(hookPoint boil.HookPoint, companyCardHook CompanyCardHook)
- func AddCostCenterHook(hookPoint boil.HookPoint, costCenterHook CostCenterHook)
- func AddExpenseApproverIDHook(hookPoint boil.HookPoint, expenseApproverIDHook ExpenseApproverIDHook)
- func AddExpenseCostCenterHook(hookPoint boil.HookPoint, expenseCostCenterHook ExpenseCostCenterHook)
- func AddExpenseEventLogHook(hookPoint boil.HookPoint, expenseEventLogHook ExpenseEventLogHook)
- func AddExpenseHook(hookPoint boil.HookPoint, expenseHook ExpenseHook)
- func AddExpenseTaxItemHook(hookPoint boil.HookPoint, expenseTaxItemHook ExpenseTaxItemHook)
- func AddInvoiceCategoryHook(hookPoint boil.HookPoint, invoiceCategoryHook InvoiceCategoryHook)
- func AddInvoiceHook(hookPoint boil.HookPoint, invoiceHook InvoiceHook)
- func AddInvoiceLineItemHook(hookPoint boil.HookPoint, invoiceLineItemHook InvoiceLineItemHook)
- func AddLegalEntityHook(hookPoint boil.HookPoint, legalEntityHook LegalEntityHook)
- func AddPolicyHook(hookPoint boil.HookPoint, policyHook PolicyHook)
- func AddSupplierHook(hookPoint boil.HookPoint, supplierHook SupplierHook)
- func AddTagHook(hookPoint boil.HookPoint, tagHook TagHook)
- func AddTaxRateHook(hookPoint boil.HookPoint, taxRateHook TaxRateHook)
- func AddTripHook(hookPoint boil.HookPoint, tripHook TripHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func Categories(mods ...qm.QueryMod) categoryQuery
- func CategoryExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func CompanyCardExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func CompanyCards(mods ...qm.QueryMod) companyCardQuery
- func CostCenterExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func CostCenters(mods ...qm.QueryMod) costCenterQuery
- func ExpenseApproverIDExists(ctx context.Context, exec boil.ContextExecutor, expenseID string, ...) (bool, error)
- func ExpenseApproverIds(mods ...qm.QueryMod) expenseApproverIDQuery
- func ExpenseCostCenterExists(ctx context.Context, exec boil.ContextExecutor, expenseID string, ...) (bool, error)
- func ExpenseCostCenters(mods ...qm.QueryMod) expenseCostCenterQuery
- func ExpenseEventLogExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func ExpenseEventLogs(mods ...qm.QueryMod) expenseEventLogQuery
- func ExpenseExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func ExpenseTaxItemExists(ctx context.Context, exec boil.ContextExecutor, expenseID string, ...) (bool, error)
- func ExpenseTaxItems(mods ...qm.QueryMod) expenseTaxItemQuery
- func Expenses(mods ...qm.QueryMod) expenseQuery
- func InvoiceCategories(mods ...qm.QueryMod) invoiceCategoryQuery
- func InvoiceCategoryExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func InvoiceExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func InvoiceLineItemExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func InvoiceLineItems(mods ...qm.QueryMod) invoiceLineItemQuery
- func Invoices(mods ...qm.QueryMod) invoiceQuery
- func LegalEntities(mods ...qm.QueryMod) legalEntityQuery
- func LegalEntityExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func Policies(mods ...qm.QueryMod) policyQuery
- func PolicyExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func SupplierExists(ctx context.Context, exec boil.ContextExecutor, legalEntityID string, ...) (bool, error)
- func Suppliers(mods ...qm.QueryMod) supplierQuery
- func TagExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Tags(mods ...qm.QueryMod) tagQuery
- func TaxRateExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func TaxRates(mods ...qm.QueryMod) taxRateQuery
- func TripExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Trips(mods ...qm.QueryMod) tripQuery
- func UserExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Users(mods ...qm.QueryMod) userQuery
- type Category
- func (o *Category) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Category) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Category) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Category) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Category) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Category) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type CategoryHook
- type CategorySlice
- type CompanyCard
- func (o *CompanyCard) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *CompanyCard) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *CompanyCard) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *CompanyCard) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CompanyCard) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *CompanyCard) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type CompanyCardHook
- type CompanyCardSlice
- type CostCenter
- func (o *CostCenter) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *CostCenter) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *CostCenter) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *CostCenter) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CostCenter) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *CostCenter) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type CostCenterHook
- type CostCenterSlice
- type Expense
- func (o *Expense) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Expense) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Expense) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Expense) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Expense) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Expense) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type ExpenseApproverID
- func (o *ExpenseApproverID) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ExpenseApproverID) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ExpenseApproverID) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ExpenseApproverID) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ExpenseApproverID) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ExpenseApproverID) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type ExpenseApproverIDHook
- type ExpenseApproverIDSlice
- func (o ExpenseApproverIDSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ExpenseApproverIDSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ExpenseApproverIDSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type ExpenseCostCenter
- func (o *ExpenseCostCenter) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ExpenseCostCenter) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ExpenseCostCenter) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ExpenseCostCenter) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ExpenseCostCenter) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ExpenseCostCenter) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type ExpenseCostCenterHook
- type ExpenseCostCenterSlice
- func (o ExpenseCostCenterSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ExpenseCostCenterSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ExpenseCostCenterSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type ExpenseEventLog
- func (o *ExpenseEventLog) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ExpenseEventLog) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ExpenseEventLog) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ExpenseEventLog) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ExpenseEventLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ExpenseEventLog) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type ExpenseEventLogHook
- type ExpenseEventLogSlice
- func (o ExpenseEventLogSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ExpenseEventLogSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ExpenseEventLogSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type ExpenseHook
- type ExpenseSlice
- type ExpenseTaxItem
- func (o *ExpenseTaxItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ExpenseTaxItem) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ExpenseTaxItem) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ExpenseTaxItem) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ExpenseTaxItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ExpenseTaxItem) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type ExpenseTaxItemHook
- type ExpenseTaxItemSlice
- func (o ExpenseTaxItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ExpenseTaxItemSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ExpenseTaxItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Invoice
- func (o *Invoice) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Invoice) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Invoice) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Invoice) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Invoice) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Invoice) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type InvoiceCategory
- func (o *InvoiceCategory) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *InvoiceCategory) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *InvoiceCategory) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *InvoiceCategory) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *InvoiceCategory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *InvoiceCategory) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type InvoiceCategoryHook
- type InvoiceCategorySlice
- func (o InvoiceCategorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *InvoiceCategorySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o InvoiceCategorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type InvoiceHook
- type InvoiceLineItem
- func (o *InvoiceLineItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *InvoiceLineItem) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *InvoiceLineItem) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *InvoiceLineItem) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *InvoiceLineItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *InvoiceLineItem) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type InvoiceLineItemHook
- type InvoiceLineItemSlice
- func (o InvoiceLineItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *InvoiceLineItemSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o InvoiceLineItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type InvoiceSlice
- type LegalEntity
- func (o *LegalEntity) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *LegalEntity) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *LegalEntity) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *LegalEntity) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *LegalEntity) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *LegalEntity) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type LegalEntityHook
- type LegalEntitySlice
- type M
- type Policy
- func (o *Policy) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Policy) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Policy) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Policy) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Policy) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Policy) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type PolicyHook
- type PolicySlice
- type Supplier
- func (o *Supplier) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Supplier) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Supplier) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Supplier) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Supplier) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Supplier) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type SupplierHook
- type SupplierSlice
- type Tag
- func (o *Tag) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Tag) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Tag) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Tag) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Tag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Tag) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type TagHook
- type TagSlice
- type TaxRate
- func (o *TaxRate) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TaxRate) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *TaxRate) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TaxRate) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TaxRate) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TaxRate) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type TaxRateHook
- type TaxRateSlice
- type Trip
- func (o *Trip) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Trip) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Trip) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Trip) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Trip) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Trip) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type TripHook
- type TripSlice
- type UpsertOptionFunc
- type UpsertOptions
- type User
- func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *User) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type UserHook
- type UserSlice
Constants ¶
This section is empty.
Variables ¶
var CategoryColumns = struct { ID string AccountReference string ChargeToEmployee string Name string LegalEntityID string StatusActive string }{ ID: "id", AccountReference: "account_reference", ChargeToEmployee: "charge_to_employee", Name: "name", LegalEntityID: "legal_entity_id", StatusActive: "status_active", }
var CategoryRels = struct {
}{}
CategoryRels is where relationship names are stored.
var CategoryTableColumns = struct { ID string AccountReference string ChargeToEmployee string Name string LegalEntityID string StatusActive string }{ ID: "categories.id", AccountReference: "categories.account_reference", ChargeToEmployee: "categories.charge_to_employee", Name: "categories.name", LegalEntityID: "categories.legal_entity_id", StatusActive: "categories.status_active", }
var CategoryWhere = struct { ID whereHelperstring AccountReference whereHelpernull_String ChargeToEmployee whereHelpernull_Bool Name whereHelpernull_String LegalEntityID whereHelpernull_String StatusActive whereHelpernull_Bool }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, AccountReference: whereHelpernull_String{/* contains filtered or unexported fields */}, ChargeToEmployee: whereHelpernull_Bool{/* contains filtered or unexported fields */}, Name: whereHelpernull_String{/* contains filtered or unexported fields */}, LegalEntityID: whereHelpernull_String{/* contains filtered or unexported fields */}, StatusActive: whereHelpernull_Bool{/* contains filtered or unexported fields */}, }
var CompanyCardColumns = struct { ID string AccountReference string Currency string Description string Name string Number string OwnerID string StatusActive string LegalEntityID string }{ ID: "id", AccountReference: "account_reference", Currency: "currency", Description: "description", Name: "name", Number: "number", OwnerID: "owner_id", StatusActive: "status_active", LegalEntityID: "legal_entity_id", }
var CompanyCardRels = struct {
}{}
CompanyCardRels is where relationship names are stored.
var CompanyCardTableColumns = struct { ID string AccountReference string Currency string Description string Name string Number string OwnerID string StatusActive string LegalEntityID string }{ ID: "company_cards.id", AccountReference: "company_cards.account_reference", Currency: "company_cards.currency", Description: "company_cards.description", Name: "company_cards.name", Number: "company_cards.number", OwnerID: "company_cards.owner_id", StatusActive: "company_cards.status_active", LegalEntityID: "company_cards.legal_entity_id", }
var CompanyCardWhere = struct { ID whereHelperstring AccountReference whereHelpernull_String Currency whereHelpernull_String Description whereHelpernull_String Name whereHelpernull_String Number whereHelpernull_String OwnerID whereHelpernull_String StatusActive whereHelpernull_Bool LegalEntityID whereHelpernull_String }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, AccountReference: whereHelpernull_String{/* contains filtered or unexported fields */}, Currency: whereHelpernull_String{/* contains filtered or unexported fields */}, Description: whereHelpernull_String{/* contains filtered or unexported fields */}, Name: whereHelpernull_String{/* contains filtered or unexported fields */}, Number: whereHelpernull_String{/* contains filtered or unexported fields */}, OwnerID: whereHelpernull_String{/* contains filtered or unexported fields */}, StatusActive: whereHelpernull_Bool{/* contains filtered or unexported fields */}, LegalEntityID: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var CostCenterColumns = struct { ID string ApprovalLimit string ApproverID string AutoApprovalLimit string Code string DelegateExpiry string DelegateID string Description string Name string ParentID string LegalEntityID string StatusActive string }{ ID: "id", ApprovalLimit: "approval_limit", ApproverID: "approver_id", AutoApprovalLimit: "auto_approval_limit", Code: "code", DelegateExpiry: "delegate_expiry", DelegateID: "delegate_id", Description: "description", Name: "name", ParentID: "parent_id", LegalEntityID: "legal_entity_id", StatusActive: "status_active", }
var CostCenterRels = struct {
}{}
CostCenterRels is where relationship names are stored.
var CostCenterTableColumns = struct { ID string ApprovalLimit string ApproverID string AutoApprovalLimit string Code string DelegateExpiry string DelegateID string Description string Name string ParentID string LegalEntityID string StatusActive string }{ ID: "cost_centers.id", ApprovalLimit: "cost_centers.approval_limit", ApproverID: "cost_centers.approver_id", AutoApprovalLimit: "cost_centers.auto_approval_limit", Code: "cost_centers.code", DelegateExpiry: "cost_centers.delegate_expiry", DelegateID: "cost_centers.delegate_id", Description: "cost_centers.description", Name: "cost_centers.name", ParentID: "cost_centers.parent_id", LegalEntityID: "cost_centers.legal_entity_id", StatusActive: "cost_centers.status_active", }
var CostCenterWhere = struct { ID whereHelperstring ApprovalLimit whereHelperdecimal_Decimal ApproverID whereHelpernull_String AutoApprovalLimit whereHelperdecimal_Decimal Code whereHelpernull_String DelegateExpiry whereHelpernull_Time DelegateID whereHelpernull_String Description whereHelpernull_String Name whereHelpernull_String ParentID whereHelpernull_String LegalEntityID whereHelpernull_String StatusActive whereHelpernull_Bool }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, ApprovalLimit: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, ApproverID: whereHelpernull_String{/* contains filtered or unexported fields */}, AutoApprovalLimit: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, Code: whereHelpernull_String{/* contains filtered or unexported fields */}, DelegateExpiry: whereHelpernull_Time{/* contains filtered or unexported fields */}, DelegateID: whereHelpernull_String{/* contains filtered or unexported fields */}, Description: whereHelpernull_String{/* contains filtered or unexported fields */}, Name: whereHelpernull_String{/* contains filtered or unexported fields */}, ParentID: whereHelpernull_String{/* contains filtered or unexported fields */}, LegalEntityID: whereHelpernull_String{/* contains filtered or unexported fields */}, StatusActive: whereHelpernull_Bool{/* contains filtered or unexported fields */}, }
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var ExpenseApproverIDColumns = struct { ExpenseID string ApproverID string }{ ExpenseID: "expense_id", ApproverID: "approver_id", }
var ExpenseApproverIDRels = struct {
}{}
ExpenseApproverIDRels is where relationship names are stored.
var ExpenseApproverIDTableColumns = struct { ExpenseID string ApproverID string }{ ExpenseID: "expense_approver_ids.expense_id", ApproverID: "expense_approver_ids.approver_id", }
var ExpenseApproverIDWhere = struct { ExpenseID whereHelperstring ApproverID whereHelperstring }{ ExpenseID: whereHelperstring{/* contains filtered or unexported fields */}, ApproverID: whereHelperstring{/* contains filtered or unexported fields */}, }
var ExpenseColumns = struct { ID string AdditionalCharges string CategoryID string Country string Created string Currency string Description string ExpenseDate string ExpenseEndDate string ExpenseType string IsCreditNote string LastModified string LegalEntityID string PaymentMethod string PostingDate string Status string TaxNumber string TotalAmount string TotalClaim string TripID string UserID string }{ ID: "id", AdditionalCharges: "additional_charges", CategoryID: "category_id", Country: "country", Created: "created", Currency: "currency", Description: "description", ExpenseDate: "expense_date", ExpenseEndDate: "expense_end_date", ExpenseType: "expense_type", IsCreditNote: "is_credit_note", LastModified: "last_modified", LegalEntityID: "legal_entity_id", PaymentMethod: "payment_method", PostingDate: "posting_date", Status: "status", TaxNumber: "tax_number", TotalAmount: "total_amount", TotalClaim: "total_claim", TripID: "trip_id", UserID: "user_id", }
var ExpenseCostCenterColumns = struct { ExpenseID string CostCenterID string PercentWeight string }{ ExpenseID: "expense_id", CostCenterID: "cost_center_id", PercentWeight: "percent_weight", }
var ExpenseCostCenterRels = struct {
}{}
ExpenseCostCenterRels is where relationship names are stored.
var ExpenseCostCenterTableColumns = struct { ExpenseID string CostCenterID string PercentWeight string }{ ExpenseID: "expense_cost_centers.expense_id", CostCenterID: "expense_cost_centers.cost_center_id", PercentWeight: "expense_cost_centers.percent_weight", }
var ExpenseCostCenterWhere = struct { ExpenseID whereHelperstring CostCenterID whereHelperstring PercentWeight whereHelperdecimal_Decimal }{ ExpenseID: whereHelperstring{/* contains filtered or unexported fields */}, CostCenterID: whereHelperstring{/* contains filtered or unexported fields */}, PercentWeight: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, }
var ExpenseEventLogColumns = struct { ID string ExpenseID string ActionType string Comment string Name string Timestamp string UserID string }{ ID: "id", ExpenseID: "expense_id", ActionType: "action_type", Comment: "comment", Name: "name", Timestamp: "timestamp", UserID: "user_id", }
var ExpenseEventLogRels = struct {
}{}
ExpenseEventLogRels is where relationship names are stored.
var ExpenseEventLogTableColumns = struct { ID string ExpenseID string ActionType string Comment string Name string Timestamp string UserID string }{ ID: "expense_event_logs.id", ExpenseID: "expense_event_logs.expense_id", ActionType: "expense_event_logs.action_type", Comment: "expense_event_logs.comment", Name: "expense_event_logs.name", Timestamp: "expense_event_logs.timestamp", UserID: "expense_event_logs.user_id", }
var ExpenseEventLogWhere = struct { ID whereHelperint ExpenseID whereHelpernull_String ActionType whereHelpernull_String Comment whereHelpernull_String Name whereHelpernull_String Timestamp whereHelpernull_Time UserID whereHelpernull_String }{ ID: whereHelperint{/* contains filtered or unexported fields */}, ExpenseID: whereHelpernull_String{/* contains filtered or unexported fields */}, ActionType: whereHelpernull_String{/* contains filtered or unexported fields */}, Comment: whereHelpernull_String{/* contains filtered or unexported fields */}, Name: whereHelpernull_String{/* contains filtered or unexported fields */}, Timestamp: whereHelpernull_Time{/* contains filtered or unexported fields */}, UserID: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var ExpenseRels = struct {
}{}
ExpenseRels is where relationship names are stored.
var ExpenseTableColumns = struct { ID string AdditionalCharges string CategoryID string Country string Created string Currency string Description string ExpenseDate string ExpenseEndDate string ExpenseType string IsCreditNote string LastModified string LegalEntityID string PaymentMethod string PostingDate string Status string TaxNumber string TotalAmount string TotalClaim string TripID string UserID string }{ ID: "expenses.id", AdditionalCharges: "expenses.additional_charges", CategoryID: "expenses.category_id", Country: "expenses.country", Created: "expenses.created", Currency: "expenses.currency", Description: "expenses.description", ExpenseDate: "expenses.expense_date", ExpenseEndDate: "expenses.expense_end_date", ExpenseType: "expenses.expense_type", IsCreditNote: "expenses.is_credit_note", LastModified: "expenses.last_modified", LegalEntityID: "expenses.legal_entity_id", PaymentMethod: "expenses.payment_method", PostingDate: "expenses.posting_date", Status: "expenses.status", TaxNumber: "expenses.tax_number", TotalAmount: "expenses.total_amount", TotalClaim: "expenses.total_claim", TripID: "expenses.trip_id", UserID: "expenses.user_id", }
var ExpenseTaxItemColumns = struct { ExpenseID string RateID string Gross string Tax string }{ ExpenseID: "expense_id", RateID: "rate_id", Gross: "gross", Tax: "tax", }
var ExpenseTaxItemRels = struct {
}{}
ExpenseTaxItemRels is where relationship names are stored.
var ExpenseTaxItemTableColumns = struct { ExpenseID string RateID string Gross string Tax string }{ ExpenseID: "expense_tax_items.expense_id", RateID: "expense_tax_items.rate_id", Gross: "expense_tax_items.gross", Tax: "expense_tax_items.tax", }
var ExpenseTaxItemWhere = struct { ExpenseID whereHelperstring RateID whereHelperstring Gross whereHelperdecimal_Decimal Tax whereHelperdecimal_Decimal }{ ExpenseID: whereHelperstring{/* contains filtered or unexported fields */}, RateID: whereHelperstring{/* contains filtered or unexported fields */}, Gross: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, Tax: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, }
var ExpenseWhere = struct { ID whereHelperstring AdditionalCharges whereHelpernull_Int CategoryID whereHelpernull_String Country whereHelpernull_String Created whereHelpernull_Time Currency whereHelpernull_String Description whereHelpernull_String ExpenseDate whereHelpernull_Time ExpenseEndDate whereHelpernull_Time ExpenseType whereHelpernull_String IsCreditNote whereHelpernull_Bool LastModified whereHelpernull_Time LegalEntityID whereHelpernull_String PaymentMethod whereHelpernull_String PostingDate whereHelpernull_Time Status whereHelpernull_String TaxNumber whereHelpernull_String TotalAmount whereHelperdecimal_Decimal TotalClaim whereHelperdecimal_Decimal TripID whereHelpernull_String UserID whereHelpernull_String }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, AdditionalCharges: whereHelpernull_Int{/* contains filtered or unexported fields */}, CategoryID: whereHelpernull_String{/* contains filtered or unexported fields */}, Country: whereHelpernull_String{/* contains filtered or unexported fields */}, Created: whereHelpernull_Time{/* contains filtered or unexported fields */}, Currency: whereHelpernull_String{/* contains filtered or unexported fields */}, Description: whereHelpernull_String{/* contains filtered or unexported fields */}, ExpenseDate: whereHelpernull_Time{/* contains filtered or unexported fields */}, ExpenseEndDate: whereHelpernull_Time{/* contains filtered or unexported fields */}, ExpenseType: whereHelpernull_String{/* contains filtered or unexported fields */}, IsCreditNote: whereHelpernull_Bool{/* contains filtered or unexported fields */}, LastModified: whereHelpernull_Time{/* contains filtered or unexported fields */}, LegalEntityID: whereHelpernull_String{/* contains filtered or unexported fields */}, PaymentMethod: whereHelpernull_String{/* contains filtered or unexported fields */}, PostingDate: whereHelpernull_Time{/* contains filtered or unexported fields */}, Status: whereHelpernull_String{/* contains filtered or unexported fields */}, TaxNumber: whereHelpernull_String{/* contains filtered or unexported fields */}, TotalAmount: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, TotalClaim: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, TripID: whereHelpernull_String{/* contains filtered or unexported fields */}, UserID: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var InvoiceCategoryColumns = struct { ID string AccountReference string Description string Name string StatusActive string LegalEntityID string }{ ID: "id", AccountReference: "account_reference", Description: "description", Name: "name", StatusActive: "status_active", LegalEntityID: "legal_entity_id", }
var InvoiceCategoryRels = struct {
}{}
InvoiceCategoryRels is where relationship names are stored.
var InvoiceCategoryTableColumns = struct { ID string AccountReference string Description string Name string StatusActive string LegalEntityID string }{ ID: "invoice_categories.id", AccountReference: "invoice_categories.account_reference", Description: "invoice_categories.description", Name: "invoice_categories.name", StatusActive: "invoice_categories.status_active", LegalEntityID: "invoice_categories.legal_entity_id", }
var InvoiceCategoryWhere = struct { ID whereHelperstring AccountReference whereHelpernull_String Description whereHelpernull_String Name whereHelpernull_String StatusActive whereHelpernull_Bool LegalEntityID whereHelpernull_String }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, AccountReference: whereHelpernull_String{/* contains filtered or unexported fields */}, Description: whereHelpernull_String{/* contains filtered or unexported fields */}, Name: whereHelpernull_String{/* contains filtered or unexported fields */}, StatusActive: whereHelpernull_Bool{/* contains filtered or unexported fields */}, LegalEntityID: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var InvoiceColumns = struct { ID string LegalEntityID string Country string Currency string Duedate string Date string GrossAmount string InvoiceNumber string IsCreditNode string NetAmount string PaymentTermID string PostingDate string PurchaseOrderIds string ServiceDate string Status string Submitters string SupplierID string TaxableAmount string BankAccount string BankCountry string BankKey string BankNumber string ExternalID string Iban string SwiftCode string }{ ID: "id", LegalEntityID: "legal_entity_id", Country: "country", Currency: "currency", Duedate: "duedate", Date: "date", GrossAmount: "gross_amount", InvoiceNumber: "invoice_number", IsCreditNode: "is_credit_node", NetAmount: "net_amount", PaymentTermID: "payment_term_id", PostingDate: "posting_date", PurchaseOrderIds: "purchase_order_ids", ServiceDate: "service_date", Status: "status", Submitters: "submitters", SupplierID: "supplier_id", TaxableAmount: "taxable_amount", BankAccount: "bank_account", BankCountry: "bank_country", BankKey: "bank_key", BankNumber: "bank_number", ExternalID: "external_id", Iban: "iban", SwiftCode: "swift_code", }
var InvoiceLineItemColumns = struct { ID string InvoiceID string CategoryID string CostObjectID string Description string Gross string ItemPrice string Net string PurchaseOrderID string PurchaseOrderItemID string Quantity string Tags string TaxRateID string Unit string }{ ID: "id", InvoiceID: "invoice_id", CategoryID: "category_id", CostObjectID: "cost_object_id", Description: "description", Gross: "gross", ItemPrice: "item_price", Net: "net", PurchaseOrderID: "purchase_order_id", PurchaseOrderItemID: "purchase_order_item_id", Quantity: "quantity", Tags: "tags", TaxRateID: "tax_rate_id", Unit: "unit", }
var InvoiceLineItemRels = struct {
}{}
InvoiceLineItemRels is where relationship names are stored.
var InvoiceLineItemTableColumns = struct { ID string InvoiceID string CategoryID string CostObjectID string Description string Gross string ItemPrice string Net string PurchaseOrderID string PurchaseOrderItemID string Quantity string Tags string TaxRateID string Unit string }{ ID: "invoice_line_items.id", InvoiceID: "invoice_line_items.invoice_id", CategoryID: "invoice_line_items.category_id", CostObjectID: "invoice_line_items.cost_object_id", Description: "invoice_line_items.description", Gross: "invoice_line_items.gross", ItemPrice: "invoice_line_items.item_price", Net: "invoice_line_items.net", PurchaseOrderID: "invoice_line_items.purchase_order_id", PurchaseOrderItemID: "invoice_line_items.purchase_order_item_id", Quantity: "invoice_line_items.quantity", Tags: "invoice_line_items.tags", TaxRateID: "invoice_line_items.tax_rate_id", Unit: "invoice_line_items.unit", }
var InvoiceLineItemWhere = struct { ID whereHelperint InvoiceID whereHelpernull_String CategoryID whereHelpernull_String CostObjectID whereHelpernull_String Description whereHelpernull_String Gross whereHelperdecimal_Decimal ItemPrice whereHelperdecimal_Decimal Net whereHelperdecimal_Decimal PurchaseOrderID whereHelpernull_String PurchaseOrderItemID whereHelpernull_String Quantity whereHelperdecimal_Decimal Tags whereHelpernull_String TaxRateID whereHelpernull_String Unit whereHelpernull_String }{ ID: whereHelperint{/* contains filtered or unexported fields */}, InvoiceID: whereHelpernull_String{/* contains filtered or unexported fields */}, CategoryID: whereHelpernull_String{/* contains filtered or unexported fields */}, CostObjectID: whereHelpernull_String{/* contains filtered or unexported fields */}, Description: whereHelpernull_String{/* contains filtered or unexported fields */}, Gross: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, ItemPrice: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, Net: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, PurchaseOrderID: whereHelpernull_String{/* contains filtered or unexported fields */}, PurchaseOrderItemID: whereHelpernull_String{/* contains filtered or unexported fields */}, Quantity: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, Tags: whereHelpernull_String{/* contains filtered or unexported fields */}, TaxRateID: whereHelpernull_String{/* contains filtered or unexported fields */}, Unit: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var InvoiceRels = struct {
}{}
InvoiceRels is where relationship names are stored.
var InvoiceTableColumns = struct { ID string LegalEntityID string Country string Currency string Duedate string Date string GrossAmount string InvoiceNumber string IsCreditNode string NetAmount string PaymentTermID string PostingDate string PurchaseOrderIds string ServiceDate string Status string Submitters string SupplierID string TaxableAmount string BankAccount string BankCountry string BankKey string BankNumber string ExternalID string Iban string SwiftCode string }{ ID: "invoices.id", LegalEntityID: "invoices.legal_entity_id", Country: "invoices.country", Currency: "invoices.currency", Duedate: "invoices.duedate", Date: "invoices.date", GrossAmount: "invoices.gross_amount", InvoiceNumber: "invoices.invoice_number", IsCreditNode: "invoices.is_credit_node", NetAmount: "invoices.net_amount", PaymentTermID: "invoices.payment_term_id", PostingDate: "invoices.posting_date", PurchaseOrderIds: "invoices.purchase_order_ids", ServiceDate: "invoices.service_date", Status: "invoices.status", Submitters: "invoices.submitters", SupplierID: "invoices.supplier_id", TaxableAmount: "invoices.taxable_amount", BankAccount: "invoices.bank_account", BankCountry: "invoices.bank_country", BankKey: "invoices.bank_key", BankNumber: "invoices.bank_number", ExternalID: "invoices.external_id", Iban: "invoices.iban", SwiftCode: "invoices.swift_code", }
var InvoiceWhere = struct { ID whereHelperstring LegalEntityID whereHelpernull_String Country whereHelpernull_String Currency whereHelpernull_String Duedate whereHelpernull_Time Date whereHelpernull_Time GrossAmount whereHelperdecimal_Decimal InvoiceNumber whereHelpernull_String IsCreditNode whereHelpernull_Bool NetAmount whereHelperdecimal_Decimal PaymentTermID whereHelpernull_String PostingDate whereHelpernull_Time PurchaseOrderIds whereHelpertypes_StringArray ServiceDate whereHelpernull_Time Status whereHelpernull_String Submitters whereHelpertypes_StringArray SupplierID whereHelpernull_String TaxableAmount whereHelperdecimal_Decimal BankAccount whereHelpernull_String BankCountry whereHelpernull_String BankKey whereHelpernull_String BankNumber whereHelpernull_String ExternalID whereHelpernull_String Iban whereHelpernull_String SwiftCode whereHelpernull_String }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, LegalEntityID: whereHelpernull_String{/* contains filtered or unexported fields */}, Country: whereHelpernull_String{/* contains filtered or unexported fields */}, Currency: whereHelpernull_String{/* contains filtered or unexported fields */}, Duedate: whereHelpernull_Time{/* contains filtered or unexported fields */}, Date: whereHelpernull_Time{/* contains filtered or unexported fields */}, GrossAmount: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, InvoiceNumber: whereHelpernull_String{/* contains filtered or unexported fields */}, IsCreditNode: whereHelpernull_Bool{/* contains filtered or unexported fields */}, NetAmount: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, PaymentTermID: whereHelpernull_String{/* contains filtered or unexported fields */}, PostingDate: whereHelpernull_Time{/* contains filtered or unexported fields */}, PurchaseOrderIds: whereHelpertypes_StringArray{/* contains filtered or unexported fields */}, ServiceDate: whereHelpernull_Time{/* contains filtered or unexported fields */}, Status: whereHelpernull_String{/* contains filtered or unexported fields */}, Submitters: whereHelpertypes_StringArray{/* contains filtered or unexported fields */}, SupplierID: whereHelpernull_String{/* contains filtered or unexported fields */}, TaxableAmount: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, BankAccount: whereHelpernull_String{/* contains filtered or unexported fields */}, BankCountry: whereHelpernull_String{/* contains filtered or unexported fields */}, BankKey: whereHelpernull_String{/* contains filtered or unexported fields */}, BankNumber: whereHelpernull_String{/* contains filtered or unexported fields */}, ExternalID: whereHelpernull_String{/* contains filtered or unexported fields */}, Iban: whereHelpernull_String{/* contains filtered or unexported fields */}, SwiftCode: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var LegalEntityColumns = struct { ID string Code string Language string Name string CreatedAt string UpdatedAt string }{ ID: "id", Code: "code", Language: "language", Name: "name", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var LegalEntityRels = struct {
}{}
LegalEntityRels is where relationship names are stored.
var LegalEntityTableColumns = struct { ID string Code string Language string Name string CreatedAt string UpdatedAt string }{ ID: "legal_entities.id", Code: "legal_entities.code", Language: "legal_entities.language", Name: "legal_entities.name", CreatedAt: "legal_entities.created_at", UpdatedAt: "legal_entities.updated_at", }
var LegalEntityWhere = struct { ID whereHelperstring Code whereHelpernull_String Language whereHelpernull_String Name whereHelpernull_String CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Code: whereHelpernull_String{/* contains filtered or unexported fields */}, Language: whereHelpernull_String{/* contains filtered or unexported fields */}, Name: whereHelpernull_String{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var PolicyColumns = struct { ID string Code string Name string LegalEntityID string StatusActive string }{ ID: "id", Code: "code", Name: "name", LegalEntityID: "legal_entity_id", StatusActive: "status_active", }
var PolicyRels = struct {
}{}
PolicyRels is where relationship names are stored.
var PolicyTableColumns = struct { ID string Code string Name string LegalEntityID string StatusActive string }{ ID: "policies.id", Code: "policies.code", Name: "policies.name", LegalEntityID: "policies.legal_entity_id", StatusActive: "policies.status_active", }
var PolicyWhere = struct { ID whereHelperstring Code whereHelpernull_String Name whereHelpernull_String LegalEntityID whereHelpernull_String StatusActive whereHelpernull_Bool }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Code: whereHelpernull_String{/* contains filtered or unexported fields */}, Name: whereHelpernull_String{/* contains filtered or unexported fields */}, LegalEntityID: whereHelpernull_String{/* contains filtered or unexported fields */}, StatusActive: whereHelpernull_Bool{/* contains filtered or unexported fields */}, }
var SupplierColumns = struct { ID string LegalEntityID string City string CountryCode string ExternalID string Name string SecondaryName string ShortName string StatusActive string Street string TaxNumber string URL string ZipCode string DefaultApproverID string DefaultCategoryID string DefaultCostCenter string DefaultPaymentTermID string SupplierID string }{ ID: "id", LegalEntityID: "legal_entity_id", City: "city", CountryCode: "country_code", ExternalID: "external_id", Name: "name", SecondaryName: "secondary_name", ShortName: "short_name", StatusActive: "status_active", Street: "street", TaxNumber: "tax_number", URL: "url", ZipCode: "zip_code", DefaultApproverID: "default_approver_id", DefaultCategoryID: "default_category_id", DefaultCostCenter: "default_cost_center", DefaultPaymentTermID: "default_payment_term_id", SupplierID: "supplier_id", }
var SupplierRels = struct {
}{}
SupplierRels is where relationship names are stored.
var SupplierTableColumns = struct { ID string LegalEntityID string City string CountryCode string ExternalID string Name string SecondaryName string ShortName string StatusActive string Street string TaxNumber string URL string ZipCode string DefaultApproverID string DefaultCategoryID string DefaultCostCenter string DefaultPaymentTermID string SupplierID string }{ ID: "suppliers.id", LegalEntityID: "suppliers.legal_entity_id", City: "suppliers.city", CountryCode: "suppliers.country_code", ExternalID: "suppliers.external_id", Name: "suppliers.name", SecondaryName: "suppliers.secondary_name", ShortName: "suppliers.short_name", StatusActive: "suppliers.status_active", Street: "suppliers.street", TaxNumber: "suppliers.tax_number", URL: "suppliers.url", ZipCode: "suppliers.zip_code", DefaultApproverID: "suppliers.default_approver_id", DefaultCategoryID: "suppliers.default_category_id", DefaultCostCenter: "suppliers.default_cost_center", DefaultPaymentTermID: "suppliers.default_payment_term_id", SupplierID: "suppliers.supplier_id", }
var SupplierWhere = struct { ID whereHelperstring LegalEntityID whereHelperstring City whereHelpernull_String CountryCode whereHelpernull_String ExternalID whereHelpernull_String Name whereHelpernull_String SecondaryName whereHelpernull_String ShortName whereHelpernull_String StatusActive whereHelpernull_Bool Street whereHelpernull_String TaxNumber whereHelpernull_String URL whereHelpernull_String ZipCode whereHelpernull_String DefaultApproverID whereHelpernull_String DefaultCategoryID whereHelpernull_String DefaultCostCenter whereHelpernull_String DefaultPaymentTermID whereHelpernull_String SupplierID whereHelpernull_String }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, LegalEntityID: whereHelperstring{/* contains filtered or unexported fields */}, City: whereHelpernull_String{/* contains filtered or unexported fields */}, CountryCode: whereHelpernull_String{/* contains filtered or unexported fields */}, ExternalID: whereHelpernull_String{/* contains filtered or unexported fields */}, Name: whereHelpernull_String{/* contains filtered or unexported fields */}, SecondaryName: whereHelpernull_String{/* contains filtered or unexported fields */}, ShortName: whereHelpernull_String{/* contains filtered or unexported fields */}, StatusActive: whereHelpernull_Bool{/* contains filtered or unexported fields */}, Street: whereHelpernull_String{/* contains filtered or unexported fields */}, TaxNumber: whereHelpernull_String{/* contains filtered or unexported fields */}, URL: whereHelpernull_String{/* contains filtered or unexported fields */}, ZipCode: whereHelpernull_String{/* contains filtered or unexported fields */}, DefaultApproverID: whereHelpernull_String{/* contains filtered or unexported fields */}, DefaultCategoryID: whereHelpernull_String{/* contains filtered or unexported fields */}, DefaultCostCenter: whereHelpernull_String{/* contains filtered or unexported fields */}, DefaultPaymentTermID: whereHelpernull_String{/* contains filtered or unexported fields */}, SupplierID: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var TableNames = struct { Categories string CompanyCards string CostCenters string ExpenseApproverIds string ExpenseCostCenters string ExpenseEventLogs string ExpenseTaxItems string Expenses string InvoiceCategories string InvoiceLineItems string Invoices string LegalEntities string Policies string Suppliers string Tags string TaxRates string Trips string Users string }{ Categories: "categories", CompanyCards: "company_cards", CostCenters: "cost_centers", ExpenseApproverIds: "expense_approver_ids", ExpenseCostCenters: "expense_cost_centers", ExpenseEventLogs: "expense_event_logs", ExpenseTaxItems: "expense_tax_items", Expenses: "expenses", InvoiceCategories: "invoice_categories", InvoiceLineItems: "invoice_line_items", Invoices: "invoices", LegalEntities: "legal_entities", Policies: "policies", Suppliers: "suppliers", Tags: "tags", TaxRates: "tax_rates", Trips: "trips", Users: "users", }
var TagColumns = struct { ID string DimensionCode string Code string Name string LegalEntityID string StatusActive string }{ ID: "id", DimensionCode: "dimension_code", Code: "code", Name: "name", LegalEntityID: "legal_entity_id", StatusActive: "status_active", }
var TagRels = struct {
}{}
TagRels is where relationship names are stored.
var TagTableColumns = struct { ID string DimensionCode string Code string Name string LegalEntityID string StatusActive string }{ ID: "tags.id", DimensionCode: "tags.dimension_code", Code: "tags.code", Name: "tags.name", LegalEntityID: "tags.legal_entity_id", StatusActive: "tags.status_active", }
var TagWhere = struct { ID whereHelperstring DimensionCode whereHelpernull_String Code whereHelpernull_String Name whereHelpernull_String LegalEntityID whereHelpernull_String StatusActive whereHelpernull_Bool }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, DimensionCode: whereHelpernull_String{/* contains filtered or unexported fields */}, Code: whereHelpernull_String{/* contains filtered or unexported fields */}, Name: whereHelpernull_String{/* contains filtered or unexported fields */}, LegalEntityID: whereHelpernull_String{/* contains filtered or unexported fields */}, StatusActive: whereHelpernull_Bool{/* contains filtered or unexported fields */}, }
var TaxRateColumns = struct { ID string AccountReference string Code string Country string Name string Rate string LegalEntityID string StatusActive string }{ ID: "id", AccountReference: "account_reference", Code: "code", Country: "country", Name: "name", Rate: "rate", LegalEntityID: "legal_entity_id", StatusActive: "status_active", }
var TaxRateRels = struct {
}{}
TaxRateRels is where relationship names are stored.
var TaxRateTableColumns = struct { ID string AccountReference string Code string Country string Name string Rate string LegalEntityID string StatusActive string }{ ID: "tax_rates.id", AccountReference: "tax_rates.account_reference", Code: "tax_rates.code", Country: "tax_rates.country", Name: "tax_rates.name", Rate: "tax_rates.rate", LegalEntityID: "tax_rates.legal_entity_id", StatusActive: "tax_rates.status_active", }
var TaxRateWhere = struct { ID whereHelperstring AccountReference whereHelpernull_String Code whereHelpernull_String Country whereHelpernull_String Name whereHelpernull_String Rate whereHelperdecimal_Decimal LegalEntityID whereHelpernull_String StatusActive whereHelpernull_Bool }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, AccountReference: whereHelpernull_String{/* contains filtered or unexported fields */}, Code: whereHelpernull_String{/* contains filtered or unexported fields */}, Country: whereHelpernull_String{/* contains filtered or unexported fields */}, Name: whereHelpernull_String{/* contains filtered or unexported fields */}, Rate: whereHelperdecimal_Decimal{/* contains filtered or unexported fields */}, LegalEntityID: whereHelpernull_String{/* contains filtered or unexported fields */}, StatusActive: whereHelpernull_Bool{/* contains filtered or unexported fields */}, }
var TripColumns = struct { ID string Currency string StartDateTime string EndDateTime string LegalEntityID string Name string Status string TotalClaim string UserID string }{ ID: "id", Currency: "currency", StartDateTime: "start_date_time", EndDateTime: "end_date_time", LegalEntityID: "legal_entity_id", Name: "name", Status: "status", TotalClaim: "total_claim", UserID: "user_id", }
var TripRels = struct {
}{}
TripRels is where relationship names are stored.
var TripTableColumns = struct { ID string Currency string StartDateTime string EndDateTime string LegalEntityID string Name string Status string TotalClaim string UserID string }{ ID: "trips.id", Currency: "trips.currency", StartDateTime: "trips.start_date_time", EndDateTime: "trips.end_date_time", LegalEntityID: "trips.legal_entity_id", Name: "trips.name", Status: "trips.status", TotalClaim: "trips.total_claim", UserID: "trips.user_id", }
var TripWhere = struct { ID whereHelperstring Currency whereHelpernull_String StartDateTime whereHelpernull_Time EndDateTime whereHelpernull_Time LegalEntityID whereHelpernull_String Name whereHelpernull_String Status whereHelpernull_String TotalClaim whereHelpernull_Int UserID whereHelpernull_String }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Currency: whereHelpernull_String{/* contains filtered or unexported fields */}, StartDateTime: whereHelpernull_Time{/* contains filtered or unexported fields */}, EndDateTime: whereHelpernull_Time{/* contains filtered or unexported fields */}, LegalEntityID: whereHelpernull_String{/* contains filtered or unexported fields */}, Name: whereHelpernull_String{/* contains filtered or unexported fields */}, Status: whereHelpernull_String{/* contains filtered or unexported fields */}, TotalClaim: whereHelpernull_Int{/* contains filtered or unexported fields */}, UserID: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var UserColumns = struct { ID string CostCenterID string Email string EmployeeID string FirstName string Language string LastName string LegalEntityID string LineManagerID string LineManagerThreshold string PolicyID string StatusActive string SubmissionDelegateID string }{ ID: "id", CostCenterID: "cost_center_id", Email: "email", EmployeeID: "employee_id", FirstName: "first_name", Language: "language", LastName: "last_name", LegalEntityID: "legal_entity_id", LineManagerID: "line_manager_id", LineManagerThreshold: "line_manager_threshold", PolicyID: "policy_id", StatusActive: "status_active", SubmissionDelegateID: "submission_delegate_id", }
var UserRels = struct {
}{}
UserRels is where relationship names are stored.
var UserTableColumns = struct { ID string CostCenterID string Email string EmployeeID string FirstName string Language string LastName string LegalEntityID string LineManagerID string LineManagerThreshold string PolicyID string StatusActive string SubmissionDelegateID string }{ ID: "users.id", CostCenterID: "users.cost_center_id", Email: "users.email", EmployeeID: "users.employee_id", FirstName: "users.first_name", Language: "users.language", LastName: "users.last_name", LegalEntityID: "users.legal_entity_id", LineManagerID: "users.line_manager_id", LineManagerThreshold: "users.line_manager_threshold", PolicyID: "users.policy_id", StatusActive: "users.status_active", SubmissionDelegateID: "users.submission_delegate_id", }
var UserWhere = struct { ID whereHelperstring CostCenterID whereHelpernull_String Email whereHelpernull_String EmployeeID whereHelpernull_Int FirstName whereHelpernull_String Language whereHelpernull_String LastName whereHelpernull_String LegalEntityID whereHelpernull_String LineManagerID whereHelpernull_String LineManagerThreshold whereHelpernull_Int PolicyID whereHelpernull_String StatusActive whereHelpernull_Bool SubmissionDelegateID whereHelpernull_String }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, CostCenterID: whereHelpernull_String{/* contains filtered or unexported fields */}, Email: whereHelpernull_String{/* contains filtered or unexported fields */}, EmployeeID: whereHelpernull_Int{/* contains filtered or unexported fields */}, FirstName: whereHelpernull_String{/* contains filtered or unexported fields */}, Language: whereHelpernull_String{/* contains filtered or unexported fields */}, LastName: whereHelpernull_String{/* contains filtered or unexported fields */}, LegalEntityID: whereHelpernull_String{/* contains filtered or unexported fields */}, LineManagerID: whereHelpernull_String{/* contains filtered or unexported fields */}, LineManagerThreshold: whereHelpernull_Int{/* contains filtered or unexported fields */}, PolicyID: whereHelpernull_String{/* contains filtered or unexported fields */}, StatusActive: whereHelpernull_Bool{/* contains filtered or unexported fields */}, SubmissionDelegateID: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var ViewNames = struct {
}{}
Functions ¶
func AddCategoryHook ¶
func AddCategoryHook(hookPoint boil.HookPoint, categoryHook CategoryHook)
AddCategoryHook registers your hook function for all future operations.
func AddCompanyCardHook ¶
func AddCompanyCardHook(hookPoint boil.HookPoint, companyCardHook CompanyCardHook)
AddCompanyCardHook registers your hook function for all future operations.
func AddCostCenterHook ¶
func AddCostCenterHook(hookPoint boil.HookPoint, costCenterHook CostCenterHook)
AddCostCenterHook registers your hook function for all future operations.
func AddExpenseApproverIDHook ¶
func AddExpenseApproverIDHook(hookPoint boil.HookPoint, expenseApproverIDHook ExpenseApproverIDHook)
AddExpenseApproverIDHook registers your hook function for all future operations.
func AddExpenseCostCenterHook ¶
func AddExpenseCostCenterHook(hookPoint boil.HookPoint, expenseCostCenterHook ExpenseCostCenterHook)
AddExpenseCostCenterHook registers your hook function for all future operations.
func AddExpenseEventLogHook ¶
func AddExpenseEventLogHook(hookPoint boil.HookPoint, expenseEventLogHook ExpenseEventLogHook)
AddExpenseEventLogHook registers your hook function for all future operations.
func AddExpenseHook ¶
func AddExpenseHook(hookPoint boil.HookPoint, expenseHook ExpenseHook)
AddExpenseHook registers your hook function for all future operations.
func AddExpenseTaxItemHook ¶
func AddExpenseTaxItemHook(hookPoint boil.HookPoint, expenseTaxItemHook ExpenseTaxItemHook)
AddExpenseTaxItemHook registers your hook function for all future operations.
func AddInvoiceCategoryHook ¶
func AddInvoiceCategoryHook(hookPoint boil.HookPoint, invoiceCategoryHook InvoiceCategoryHook)
AddInvoiceCategoryHook registers your hook function for all future operations.
func AddInvoiceHook ¶
func AddInvoiceHook(hookPoint boil.HookPoint, invoiceHook InvoiceHook)
AddInvoiceHook registers your hook function for all future operations.
func AddInvoiceLineItemHook ¶
func AddInvoiceLineItemHook(hookPoint boil.HookPoint, invoiceLineItemHook InvoiceLineItemHook)
AddInvoiceLineItemHook registers your hook function for all future operations.
func AddLegalEntityHook ¶
func AddLegalEntityHook(hookPoint boil.HookPoint, legalEntityHook LegalEntityHook)
AddLegalEntityHook registers your hook function for all future operations.
func AddPolicyHook ¶
func AddPolicyHook(hookPoint boil.HookPoint, policyHook PolicyHook)
AddPolicyHook registers your hook function for all future operations.
func AddSupplierHook ¶
func AddSupplierHook(hookPoint boil.HookPoint, supplierHook SupplierHook)
AddSupplierHook registers your hook function for all future operations.
func AddTagHook ¶
AddTagHook registers your hook function for all future operations.
func AddTaxRateHook ¶
func AddTaxRateHook(hookPoint boil.HookPoint, taxRateHook TaxRateHook)
AddTaxRateHook registers your hook function for all future operations.
func AddTripHook ¶
AddTripHook registers your hook function for all future operations.
func AddUserHook ¶
AddUserHook registers your hook function for all future operations.
func Categories ¶
Categories retrieves all the records using an executor.
func CategoryExists ¶
CategoryExists checks if the Category row exists.
func CompanyCardExists ¶
CompanyCardExists checks if the CompanyCard row exists.
func CompanyCards ¶
CompanyCards retrieves all the records using an executor.
func CostCenterExists ¶
CostCenterExists checks if the CostCenter row exists.
func CostCenters ¶
CostCenters retrieves all the records using an executor.
func ExpenseApproverIDExists ¶
func ExpenseApproverIDExists(ctx context.Context, exec boil.ContextExecutor, expenseID string, approverID string) (bool, error)
ExpenseApproverIDExists checks if the ExpenseApproverID row exists.
func ExpenseApproverIds ¶
ExpenseApproverIds retrieves all the records using an executor.
func ExpenseCostCenterExists ¶
func ExpenseCostCenterExists(ctx context.Context, exec boil.ContextExecutor, expenseID string, costCenterID string) (bool, error)
ExpenseCostCenterExists checks if the ExpenseCostCenter row exists.
func ExpenseCostCenters ¶
ExpenseCostCenters retrieves all the records using an executor.
func ExpenseEventLogExists ¶
ExpenseEventLogExists checks if the ExpenseEventLog row exists.
func ExpenseEventLogs ¶
ExpenseEventLogs retrieves all the records using an executor.
func ExpenseExists ¶
ExpenseExists checks if the Expense row exists.
func ExpenseTaxItemExists ¶
func ExpenseTaxItemExists(ctx context.Context, exec boil.ContextExecutor, expenseID string, rateID string) (bool, error)
ExpenseTaxItemExists checks if the ExpenseTaxItem row exists.
func ExpenseTaxItems ¶
ExpenseTaxItems retrieves all the records using an executor.
func InvoiceCategories ¶
InvoiceCategories retrieves all the records using an executor.
func InvoiceCategoryExists ¶
InvoiceCategoryExists checks if the InvoiceCategory row exists.
func InvoiceExists ¶
InvoiceExists checks if the Invoice row exists.
func InvoiceLineItemExists ¶
InvoiceLineItemExists checks if the InvoiceLineItem row exists.
func InvoiceLineItems ¶
InvoiceLineItems retrieves all the records using an executor.
func LegalEntities ¶
LegalEntities retrieves all the records using an executor.
func LegalEntityExists ¶
LegalEntityExists checks if the LegalEntity row exists.
func PolicyExists ¶
PolicyExists checks if the Policy row exists.
func SupplierExists ¶
func SupplierExists(ctx context.Context, exec boil.ContextExecutor, legalEntityID string, iD string) (bool, error)
SupplierExists checks if the Supplier row exists.
func TaxRateExists ¶
TaxRateExists checks if the TaxRate row exists.
func TripExists ¶
TripExists checks if the Trip row exists.
func UserExists ¶
UserExists checks if the User row exists.
Types ¶
type Category ¶
type Category struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` AccountReference null.String `boil:"account_reference" json:"account_reference,omitempty" toml:"account_reference" yaml:"account_reference,omitempty"` ChargeToEmployee null.Bool `boil:"charge_to_employee" json:"charge_to_employee,omitempty" toml:"charge_to_employee" yaml:"charge_to_employee,omitempty"` Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"` LegalEntityID null.String `boil:"legal_entity_id" json:"legal_entity_id,omitempty" toml:"legal_entity_id" yaml:"legal_entity_id,omitempty"` StatusActive null.Bool `boil:"status_active" json:"status_active,omitempty" toml:"status_active" yaml:"status_active,omitempty"` R *categoryR `boil:"-" json:"-" toml:"-" yaml:"-"` L categoryL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Category is an object representing the database table.
func FindCategory ¶
func FindCategory(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Category, error)
FindCategory retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Category) Delete ¶
Delete deletes a single Category record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Category) Insert ¶
func (o *Category) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Category) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Category) Update ¶
func (o *Category) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Category. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Category) Upsert ¶
func (o *Category) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type CategoryHook ¶
CategoryHook is the signature for custom Category hook methods
type CategorySlice ¶
type CategorySlice []*Category
CategorySlice is an alias for a slice of pointers to Category. This should almost always be used instead of []Category.
func (CategorySlice) DeleteAll ¶
func (o CategorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*CategorySlice) ReloadAll ¶
func (o *CategorySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (CategorySlice) UpdateAll ¶
func (o CategorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type CompanyCard ¶
type CompanyCard struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` AccountReference null.String `boil:"account_reference" json:"account_reference,omitempty" toml:"account_reference" yaml:"account_reference,omitempty"` Currency null.String `boil:"currency" json:"currency,omitempty" toml:"currency" yaml:"currency,omitempty"` Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"` Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"` Number null.String `boil:"number" json:"number,omitempty" toml:"number" yaml:"number,omitempty"` OwnerID null.String `boil:"owner_id" json:"owner_id,omitempty" toml:"owner_id" yaml:"owner_id,omitempty"` StatusActive null.Bool `boil:"status_active" json:"status_active,omitempty" toml:"status_active" yaml:"status_active,omitempty"` LegalEntityID null.String `boil:"legal_entity_id" json:"legal_entity_id,omitempty" toml:"legal_entity_id" yaml:"legal_entity_id,omitempty"` R *companyCardR `boil:"-" json:"-" toml:"-" yaml:"-"` L companyCardL `boil:"-" json:"-" toml:"-" yaml:"-"` }
CompanyCard is an object representing the database table.
func FindCompanyCard ¶
func FindCompanyCard(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*CompanyCard, error)
FindCompanyCard retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*CompanyCard) Delete ¶
func (o *CompanyCard) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single CompanyCard record with an executor. Delete will match against the primary key column to find the record to delete.
func (*CompanyCard) Exists ¶
func (o *CompanyCard) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the CompanyCard row exists.
func (*CompanyCard) Insert ¶
func (o *CompanyCard) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*CompanyCard) Reload ¶
func (o *CompanyCard) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*CompanyCard) Update ¶
func (o *CompanyCard) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the CompanyCard. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*CompanyCard) Upsert ¶
func (o *CompanyCard) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type CompanyCardHook ¶
type CompanyCardHook func(context.Context, boil.ContextExecutor, *CompanyCard) error
CompanyCardHook is the signature for custom CompanyCard hook methods
type CompanyCardSlice ¶
type CompanyCardSlice []*CompanyCard
CompanyCardSlice is an alias for a slice of pointers to CompanyCard. This should almost always be used instead of []CompanyCard.
func (CompanyCardSlice) DeleteAll ¶
func (o CompanyCardSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*CompanyCardSlice) ReloadAll ¶
func (o *CompanyCardSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (CompanyCardSlice) UpdateAll ¶
func (o CompanyCardSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type CostCenter ¶
type CostCenter struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` ApprovalLimit decimal.Decimal `boil:"approval_limit" json:"approval_limit" toml:"approval_limit" yaml:"approval_limit"` ApproverID null.String `boil:"approver_id" json:"approver_id,omitempty" toml:"approver_id" yaml:"approver_id,omitempty"` AutoApprovalLimit decimal.Decimal `boil:"auto_approval_limit" json:"auto_approval_limit" toml:"auto_approval_limit" yaml:"auto_approval_limit"` Code null.String `boil:"code" json:"code,omitempty" toml:"code" yaml:"code,omitempty"` DelegateExpiry null.Time `boil:"delegate_expiry" json:"delegate_expiry,omitempty" toml:"delegate_expiry" yaml:"delegate_expiry,omitempty"` DelegateID null.String `boil:"delegate_id" json:"delegate_id,omitempty" toml:"delegate_id" yaml:"delegate_id,omitempty"` Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"` Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"` ParentID null.String `boil:"parent_id" json:"parent_id,omitempty" toml:"parent_id" yaml:"parent_id,omitempty"` LegalEntityID null.String `boil:"legal_entity_id" json:"legal_entity_id,omitempty" toml:"legal_entity_id" yaml:"legal_entity_id,omitempty"` StatusActive null.Bool `boil:"status_active" json:"status_active,omitempty" toml:"status_active" yaml:"status_active,omitempty"` R *costCenterR `boil:"-" json:"-" toml:"-" yaml:"-"` L costCenterL `boil:"-" json:"-" toml:"-" yaml:"-"` }
CostCenter is an object representing the database table.
func FindCostCenter ¶
func FindCostCenter(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*CostCenter, error)
FindCostCenter retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*CostCenter) Delete ¶
func (o *CostCenter) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single CostCenter record with an executor. Delete will match against the primary key column to find the record to delete.
func (*CostCenter) Exists ¶
func (o *CostCenter) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the CostCenter row exists.
func (*CostCenter) Insert ¶
func (o *CostCenter) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*CostCenter) Reload ¶
func (o *CostCenter) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*CostCenter) Update ¶
func (o *CostCenter) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the CostCenter. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*CostCenter) Upsert ¶
func (o *CostCenter) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type CostCenterHook ¶
type CostCenterHook func(context.Context, boil.ContextExecutor, *CostCenter) error
CostCenterHook is the signature for custom CostCenter hook methods
type CostCenterSlice ¶
type CostCenterSlice []*CostCenter
CostCenterSlice is an alias for a slice of pointers to CostCenter. This should almost always be used instead of []CostCenter.
func (CostCenterSlice) DeleteAll ¶
func (o CostCenterSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*CostCenterSlice) ReloadAll ¶
func (o *CostCenterSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (CostCenterSlice) UpdateAll ¶
func (o CostCenterSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Expense ¶
type Expense struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` AdditionalCharges null.Int `boil:"additional_charges" json:"additional_charges,omitempty" toml:"additional_charges" yaml:"additional_charges,omitempty"` CategoryID null.String `boil:"category_id" json:"category_id,omitempty" toml:"category_id" yaml:"category_id,omitempty"` Country null.String `boil:"country" json:"country,omitempty" toml:"country" yaml:"country,omitempty"` Created null.Time `boil:"created" json:"created,omitempty" toml:"created" yaml:"created,omitempty"` Currency null.String `boil:"currency" json:"currency,omitempty" toml:"currency" yaml:"currency,omitempty"` Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"` ExpenseDate null.Time `boil:"expense_date" json:"expense_date,omitempty" toml:"expense_date" yaml:"expense_date,omitempty"` ExpenseEndDate null.Time `boil:"expense_end_date" json:"expense_end_date,omitempty" toml:"expense_end_date" yaml:"expense_end_date,omitempty"` ExpenseType null.String `boil:"expense_type" json:"expense_type,omitempty" toml:"expense_type" yaml:"expense_type,omitempty"` IsCreditNote null.Bool `boil:"is_credit_note" json:"is_credit_note,omitempty" toml:"is_credit_note" yaml:"is_credit_note,omitempty"` LastModified null.Time `boil:"last_modified" json:"last_modified,omitempty" toml:"last_modified" yaml:"last_modified,omitempty"` LegalEntityID null.String `boil:"legal_entity_id" json:"legal_entity_id,omitempty" toml:"legal_entity_id" yaml:"legal_entity_id,omitempty"` PaymentMethod null.String `boil:"payment_method" json:"payment_method,omitempty" toml:"payment_method" yaml:"payment_method,omitempty"` PostingDate null.Time `boil:"posting_date" json:"posting_date,omitempty" toml:"posting_date" yaml:"posting_date,omitempty"` Status null.String `boil:"status" json:"status,omitempty" toml:"status" yaml:"status,omitempty"` TaxNumber null.String `boil:"tax_number" json:"tax_number,omitempty" toml:"tax_number" yaml:"tax_number,omitempty"` TotalAmount decimal.Decimal `boil:"total_amount" json:"total_amount" toml:"total_amount" yaml:"total_amount"` TotalClaim decimal.Decimal `boil:"total_claim" json:"total_claim" toml:"total_claim" yaml:"total_claim"` TripID null.String `boil:"trip_id" json:"trip_id,omitempty" toml:"trip_id" yaml:"trip_id,omitempty"` UserID null.String `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"` R *expenseR `boil:"-" json:"-" toml:"-" yaml:"-"` L expenseL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Expense is an object representing the database table.
func FindExpense ¶
func FindExpense(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Expense, error)
FindExpense retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Expense) Delete ¶
Delete deletes a single Expense record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Expense) Insert ¶
func (o *Expense) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Expense) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Expense) Update ¶
func (o *Expense) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Expense. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Expense) Upsert ¶
func (o *Expense) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ExpenseApproverID ¶
type ExpenseApproverID struct { ExpenseID string `boil:"expense_id" json:"expense_id" toml:"expense_id" yaml:"expense_id"` ApproverID string `boil:"approver_id" json:"approver_id" toml:"approver_id" yaml:"approver_id"` R *expenseApproverIDR `boil:"-" json:"-" toml:"-" yaml:"-"` L expenseApproverIDL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ExpenseApproverID is an object representing the database table.
func FindExpenseApproverID ¶
func FindExpenseApproverID(ctx context.Context, exec boil.ContextExecutor, expenseID string, approverID string, selectCols ...string) (*ExpenseApproverID, error)
FindExpenseApproverID retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ExpenseApproverID) Delete ¶
func (o *ExpenseApproverID) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ExpenseApproverID record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ExpenseApproverID) Exists ¶
func (o *ExpenseApproverID) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ExpenseApproverID row exists.
func (*ExpenseApproverID) Insert ¶
func (o *ExpenseApproverID) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*ExpenseApproverID) Reload ¶
func (o *ExpenseApproverID) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ExpenseApproverID) Update ¶
func (o *ExpenseApproverID) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ExpenseApproverID. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ExpenseApproverID) Upsert ¶
func (o *ExpenseApproverID) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ExpenseApproverIDHook ¶
type ExpenseApproverIDHook func(context.Context, boil.ContextExecutor, *ExpenseApproverID) error
ExpenseApproverIDHook is the signature for custom ExpenseApproverID hook methods
type ExpenseApproverIDSlice ¶
type ExpenseApproverIDSlice []*ExpenseApproverID
ExpenseApproverIDSlice is an alias for a slice of pointers to ExpenseApproverID. This should almost always be used instead of []ExpenseApproverID.
func (ExpenseApproverIDSlice) DeleteAll ¶
func (o ExpenseApproverIDSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ExpenseApproverIDSlice) ReloadAll ¶
func (o *ExpenseApproverIDSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ExpenseApproverIDSlice) UpdateAll ¶
func (o ExpenseApproverIDSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ExpenseCostCenter ¶
type ExpenseCostCenter struct { ExpenseID string `boil:"expense_id" json:"expense_id" toml:"expense_id" yaml:"expense_id"` CostCenterID string `boil:"cost_center_id" json:"cost_center_id" toml:"cost_center_id" yaml:"cost_center_id"` PercentWeight decimal.Decimal `boil:"percent_weight" json:"percent_weight" toml:"percent_weight" yaml:"percent_weight"` R *expenseCostCenterR `boil:"-" json:"-" toml:"-" yaml:"-"` L expenseCostCenterL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ExpenseCostCenter is an object representing the database table.
func FindExpenseCostCenter ¶
func FindExpenseCostCenter(ctx context.Context, exec boil.ContextExecutor, expenseID string, costCenterID string, selectCols ...string) (*ExpenseCostCenter, error)
FindExpenseCostCenter retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ExpenseCostCenter) Delete ¶
func (o *ExpenseCostCenter) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ExpenseCostCenter record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ExpenseCostCenter) Exists ¶
func (o *ExpenseCostCenter) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ExpenseCostCenter row exists.
func (*ExpenseCostCenter) Insert ¶
func (o *ExpenseCostCenter) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*ExpenseCostCenter) Reload ¶
func (o *ExpenseCostCenter) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ExpenseCostCenter) Update ¶
func (o *ExpenseCostCenter) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ExpenseCostCenter. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ExpenseCostCenter) Upsert ¶
func (o *ExpenseCostCenter) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ExpenseCostCenterHook ¶
type ExpenseCostCenterHook func(context.Context, boil.ContextExecutor, *ExpenseCostCenter) error
ExpenseCostCenterHook is the signature for custom ExpenseCostCenter hook methods
type ExpenseCostCenterSlice ¶
type ExpenseCostCenterSlice []*ExpenseCostCenter
ExpenseCostCenterSlice is an alias for a slice of pointers to ExpenseCostCenter. This should almost always be used instead of []ExpenseCostCenter.
func (ExpenseCostCenterSlice) DeleteAll ¶
func (o ExpenseCostCenterSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ExpenseCostCenterSlice) ReloadAll ¶
func (o *ExpenseCostCenterSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ExpenseCostCenterSlice) UpdateAll ¶
func (o ExpenseCostCenterSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ExpenseEventLog ¶
type ExpenseEventLog struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` ExpenseID null.String `boil:"expense_id" json:"expense_id,omitempty" toml:"expense_id" yaml:"expense_id,omitempty"` ActionType null.String `boil:"action_type" json:"action_type,omitempty" toml:"action_type" yaml:"action_type,omitempty"` Comment null.String `boil:"comment" json:"comment,omitempty" toml:"comment" yaml:"comment,omitempty"` Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"` Timestamp null.Time `boil:"timestamp" json:"timestamp,omitempty" toml:"timestamp" yaml:"timestamp,omitempty"` UserID null.String `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"` R *expenseEventLogR `boil:"-" json:"-" toml:"-" yaml:"-"` L expenseEventLogL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ExpenseEventLog is an object representing the database table.
func FindExpenseEventLog ¶
func FindExpenseEventLog(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*ExpenseEventLog, error)
FindExpenseEventLog retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ExpenseEventLog) Delete ¶
func (o *ExpenseEventLog) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ExpenseEventLog record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ExpenseEventLog) Exists ¶
func (o *ExpenseEventLog) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ExpenseEventLog row exists.
func (*ExpenseEventLog) Insert ¶
func (o *ExpenseEventLog) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*ExpenseEventLog) Reload ¶
func (o *ExpenseEventLog) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ExpenseEventLog) Update ¶
func (o *ExpenseEventLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ExpenseEventLog. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ExpenseEventLog) Upsert ¶
func (o *ExpenseEventLog) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ExpenseEventLogHook ¶
type ExpenseEventLogHook func(context.Context, boil.ContextExecutor, *ExpenseEventLog) error
ExpenseEventLogHook is the signature for custom ExpenseEventLog hook methods
type ExpenseEventLogSlice ¶
type ExpenseEventLogSlice []*ExpenseEventLog
ExpenseEventLogSlice is an alias for a slice of pointers to ExpenseEventLog. This should almost always be used instead of []ExpenseEventLog.
func (ExpenseEventLogSlice) DeleteAll ¶
func (o ExpenseEventLogSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ExpenseEventLogSlice) ReloadAll ¶
func (o *ExpenseEventLogSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ExpenseEventLogSlice) UpdateAll ¶
func (o ExpenseEventLogSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ExpenseHook ¶
ExpenseHook is the signature for custom Expense hook methods
type ExpenseSlice ¶
type ExpenseSlice []*Expense
ExpenseSlice is an alias for a slice of pointers to Expense. This should almost always be used instead of []Expense.
func (ExpenseSlice) DeleteAll ¶
func (o ExpenseSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ExpenseSlice) ReloadAll ¶
func (o *ExpenseSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ExpenseSlice) UpdateAll ¶
func (o ExpenseSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ExpenseTaxItem ¶
type ExpenseTaxItem struct { ExpenseID string `boil:"expense_id" json:"expense_id" toml:"expense_id" yaml:"expense_id"` RateID string `boil:"rate_id" json:"rate_id" toml:"rate_id" yaml:"rate_id"` Gross decimal.Decimal `boil:"gross" json:"gross" toml:"gross" yaml:"gross"` Tax decimal.Decimal `boil:"tax" json:"tax" toml:"tax" yaml:"tax"` R *expenseTaxItemR `boil:"-" json:"-" toml:"-" yaml:"-"` L expenseTaxItemL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ExpenseTaxItem is an object representing the database table.
func FindExpenseTaxItem ¶
func FindExpenseTaxItem(ctx context.Context, exec boil.ContextExecutor, expenseID string, rateID string, selectCols ...string) (*ExpenseTaxItem, error)
FindExpenseTaxItem retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ExpenseTaxItem) Delete ¶
func (o *ExpenseTaxItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ExpenseTaxItem record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ExpenseTaxItem) Exists ¶
func (o *ExpenseTaxItem) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ExpenseTaxItem row exists.
func (*ExpenseTaxItem) Insert ¶
func (o *ExpenseTaxItem) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*ExpenseTaxItem) Reload ¶
func (o *ExpenseTaxItem) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ExpenseTaxItem) Update ¶
func (o *ExpenseTaxItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ExpenseTaxItem. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ExpenseTaxItem) Upsert ¶
func (o *ExpenseTaxItem) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ExpenseTaxItemHook ¶
type ExpenseTaxItemHook func(context.Context, boil.ContextExecutor, *ExpenseTaxItem) error
ExpenseTaxItemHook is the signature for custom ExpenseTaxItem hook methods
type ExpenseTaxItemSlice ¶
type ExpenseTaxItemSlice []*ExpenseTaxItem
ExpenseTaxItemSlice is an alias for a slice of pointers to ExpenseTaxItem. This should almost always be used instead of []ExpenseTaxItem.
func (ExpenseTaxItemSlice) DeleteAll ¶
func (o ExpenseTaxItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ExpenseTaxItemSlice) ReloadAll ¶
func (o *ExpenseTaxItemSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ExpenseTaxItemSlice) UpdateAll ¶
func (o ExpenseTaxItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Invoice ¶
type Invoice struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` LegalEntityID null.String `boil:"legal_entity_id" json:"legal_entity_id,omitempty" toml:"legal_entity_id" yaml:"legal_entity_id,omitempty"` Country null.String `boil:"country" json:"country,omitempty" toml:"country" yaml:"country,omitempty"` Currency null.String `boil:"currency" json:"currency,omitempty" toml:"currency" yaml:"currency,omitempty"` Duedate null.Time `boil:"duedate" json:"duedate,omitempty" toml:"duedate" yaml:"duedate,omitempty"` Date null.Time `boil:"date" json:"date,omitempty" toml:"date" yaml:"date,omitempty"` GrossAmount decimal.Decimal `boil:"gross_amount" json:"gross_amount" toml:"gross_amount" yaml:"gross_amount"` InvoiceNumber null.String `boil:"invoice_number" json:"invoice_number,omitempty" toml:"invoice_number" yaml:"invoice_number,omitempty"` IsCreditNode null.Bool `boil:"is_credit_node" json:"is_credit_node,omitempty" toml:"is_credit_node" yaml:"is_credit_node,omitempty"` NetAmount decimal.Decimal `boil:"net_amount" json:"net_amount" toml:"net_amount" yaml:"net_amount"` PaymentTermID null.String `boil:"payment_term_id" json:"payment_term_id,omitempty" toml:"payment_term_id" yaml:"payment_term_id,omitempty"` PostingDate null.Time `boil:"posting_date" json:"posting_date,omitempty" toml:"posting_date" yaml:"posting_date,omitempty"` PurchaseOrderIds types.StringArray `boil:"purchase_order_ids" json:"purchase_order_ids,omitempty" toml:"purchase_order_ids" yaml:"purchase_order_ids,omitempty"` ServiceDate null.Time `boil:"service_date" json:"service_date,omitempty" toml:"service_date" yaml:"service_date,omitempty"` Status null.String `boil:"status" json:"status,omitempty" toml:"status" yaml:"status,omitempty"` Submitters types.StringArray `boil:"submitters" json:"submitters,omitempty" toml:"submitters" yaml:"submitters,omitempty"` SupplierID null.String `boil:"supplier_id" json:"supplier_id,omitempty" toml:"supplier_id" yaml:"supplier_id,omitempty"` TaxableAmount decimal.Decimal `boil:"taxable_amount" json:"taxable_amount" toml:"taxable_amount" yaml:"taxable_amount"` BankAccount null.String `boil:"bank_account" json:"bank_account,omitempty" toml:"bank_account" yaml:"bank_account,omitempty"` BankCountry null.String `boil:"bank_country" json:"bank_country,omitempty" toml:"bank_country" yaml:"bank_country,omitempty"` BankKey null.String `boil:"bank_key" json:"bank_key,omitempty" toml:"bank_key" yaml:"bank_key,omitempty"` BankNumber null.String `boil:"bank_number" json:"bank_number,omitempty" toml:"bank_number" yaml:"bank_number,omitempty"` ExternalID null.String `boil:"external_id" json:"external_id,omitempty" toml:"external_id" yaml:"external_id,omitempty"` Iban null.String `boil:"iban" json:"iban,omitempty" toml:"iban" yaml:"iban,omitempty"` SwiftCode null.String `boil:"swift_code" json:"swift_code,omitempty" toml:"swift_code" yaml:"swift_code,omitempty"` R *invoiceR `boil:"-" json:"-" toml:"-" yaml:"-"` L invoiceL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Invoice is an object representing the database table.
func FindInvoice ¶
func FindInvoice(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Invoice, error)
FindInvoice retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Invoice) Delete ¶
Delete deletes a single Invoice record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Invoice) Insert ¶
func (o *Invoice) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Invoice) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Invoice) Update ¶
func (o *Invoice) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Invoice. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Invoice) Upsert ¶
func (o *Invoice) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type InvoiceCategory ¶
type InvoiceCategory struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` AccountReference null.String `boil:"account_reference" json:"account_reference,omitempty" toml:"account_reference" yaml:"account_reference,omitempty"` Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"` Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"` StatusActive null.Bool `boil:"status_active" json:"status_active,omitempty" toml:"status_active" yaml:"status_active,omitempty"` LegalEntityID null.String `boil:"legal_entity_id" json:"legal_entity_id,omitempty" toml:"legal_entity_id" yaml:"legal_entity_id,omitempty"` R *invoiceCategoryR `boil:"-" json:"-" toml:"-" yaml:"-"` L invoiceCategoryL `boil:"-" json:"-" toml:"-" yaml:"-"` }
InvoiceCategory is an object representing the database table.
func FindInvoiceCategory ¶
func FindInvoiceCategory(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*InvoiceCategory, error)
FindInvoiceCategory retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*InvoiceCategory) Delete ¶
func (o *InvoiceCategory) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single InvoiceCategory record with an executor. Delete will match against the primary key column to find the record to delete.
func (*InvoiceCategory) Exists ¶
func (o *InvoiceCategory) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the InvoiceCategory row exists.
func (*InvoiceCategory) Insert ¶
func (o *InvoiceCategory) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*InvoiceCategory) Reload ¶
func (o *InvoiceCategory) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*InvoiceCategory) Update ¶
func (o *InvoiceCategory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the InvoiceCategory. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*InvoiceCategory) Upsert ¶
func (o *InvoiceCategory) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type InvoiceCategoryHook ¶
type InvoiceCategoryHook func(context.Context, boil.ContextExecutor, *InvoiceCategory) error
InvoiceCategoryHook is the signature for custom InvoiceCategory hook methods
type InvoiceCategorySlice ¶
type InvoiceCategorySlice []*InvoiceCategory
InvoiceCategorySlice is an alias for a slice of pointers to InvoiceCategory. This should almost always be used instead of []InvoiceCategory.
func (InvoiceCategorySlice) DeleteAll ¶
func (o InvoiceCategorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*InvoiceCategorySlice) ReloadAll ¶
func (o *InvoiceCategorySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (InvoiceCategorySlice) UpdateAll ¶
func (o InvoiceCategorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type InvoiceHook ¶
InvoiceHook is the signature for custom Invoice hook methods
type InvoiceLineItem ¶
type InvoiceLineItem struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` InvoiceID null.String `boil:"invoice_id" json:"invoice_id,omitempty" toml:"invoice_id" yaml:"invoice_id,omitempty"` CategoryID null.String `boil:"category_id" json:"category_id,omitempty" toml:"category_id" yaml:"category_id,omitempty"` CostObjectID null.String `boil:"cost_object_id" json:"cost_object_id,omitempty" toml:"cost_object_id" yaml:"cost_object_id,omitempty"` Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"` Gross decimal.Decimal `boil:"gross" json:"gross" toml:"gross" yaml:"gross"` ItemPrice decimal.Decimal `boil:"item_price" json:"item_price" toml:"item_price" yaml:"item_price"` Net decimal.Decimal `boil:"net" json:"net" toml:"net" yaml:"net"` PurchaseOrderID null.String `boil:"purchase_order_id" json:"purchase_order_id,omitempty" toml:"purchase_order_id" yaml:"purchase_order_id,omitempty"` PurchaseOrderItemID null.String `` /* 139-byte string literal not displayed */ Quantity decimal.Decimal `boil:"quantity" json:"quantity" toml:"quantity" yaml:"quantity"` Tags null.String `boil:"tags" json:"tags,omitempty" toml:"tags" yaml:"tags,omitempty"` TaxRateID null.String `boil:"tax_rate_id" json:"tax_rate_id,omitempty" toml:"tax_rate_id" yaml:"tax_rate_id,omitempty"` Unit null.String `boil:"unit" json:"unit,omitempty" toml:"unit" yaml:"unit,omitempty"` R *invoiceLineItemR `boil:"-" json:"-" toml:"-" yaml:"-"` L invoiceLineItemL `boil:"-" json:"-" toml:"-" yaml:"-"` }
InvoiceLineItem is an object representing the database table.
func FindInvoiceLineItem ¶
func FindInvoiceLineItem(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*InvoiceLineItem, error)
FindInvoiceLineItem retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*InvoiceLineItem) Delete ¶
func (o *InvoiceLineItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single InvoiceLineItem record with an executor. Delete will match against the primary key column to find the record to delete.
func (*InvoiceLineItem) Exists ¶
func (o *InvoiceLineItem) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the InvoiceLineItem row exists.
func (*InvoiceLineItem) Insert ¶
func (o *InvoiceLineItem) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*InvoiceLineItem) Reload ¶
func (o *InvoiceLineItem) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*InvoiceLineItem) Update ¶
func (o *InvoiceLineItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the InvoiceLineItem. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*InvoiceLineItem) Upsert ¶
func (o *InvoiceLineItem) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type InvoiceLineItemHook ¶
type InvoiceLineItemHook func(context.Context, boil.ContextExecutor, *InvoiceLineItem) error
InvoiceLineItemHook is the signature for custom InvoiceLineItem hook methods
type InvoiceLineItemSlice ¶
type InvoiceLineItemSlice []*InvoiceLineItem
InvoiceLineItemSlice is an alias for a slice of pointers to InvoiceLineItem. This should almost always be used instead of []InvoiceLineItem.
func (InvoiceLineItemSlice) DeleteAll ¶
func (o InvoiceLineItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*InvoiceLineItemSlice) ReloadAll ¶
func (o *InvoiceLineItemSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (InvoiceLineItemSlice) UpdateAll ¶
func (o InvoiceLineItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type InvoiceSlice ¶
type InvoiceSlice []*Invoice
InvoiceSlice is an alias for a slice of pointers to Invoice. This should almost always be used instead of []Invoice.
func (InvoiceSlice) DeleteAll ¶
func (o InvoiceSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*InvoiceSlice) ReloadAll ¶
func (o *InvoiceSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (InvoiceSlice) UpdateAll ¶
func (o InvoiceSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type LegalEntity ¶
type LegalEntity struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Code null.String `boil:"code" json:"code,omitempty" toml:"code" yaml:"code,omitempty"` Language null.String `boil:"language" json:"language,omitempty" toml:"language" yaml:"language,omitempty"` Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` R *legalEntityR `boil:"-" json:"-" toml:"-" yaml:"-"` L legalEntityL `boil:"-" json:"-" toml:"-" yaml:"-"` }
LegalEntity is an object representing the database table.
func FindLegalEntity ¶
func FindLegalEntity(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*LegalEntity, error)
FindLegalEntity retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*LegalEntity) Delete ¶
func (o *LegalEntity) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single LegalEntity record with an executor. Delete will match against the primary key column to find the record to delete.
func (*LegalEntity) Exists ¶
func (o *LegalEntity) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the LegalEntity row exists.
func (*LegalEntity) Insert ¶
func (o *LegalEntity) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*LegalEntity) Reload ¶
func (o *LegalEntity) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*LegalEntity) Update ¶
func (o *LegalEntity) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the LegalEntity. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*LegalEntity) Upsert ¶
func (o *LegalEntity) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type LegalEntityHook ¶
type LegalEntityHook func(context.Context, boil.ContextExecutor, *LegalEntity) error
LegalEntityHook is the signature for custom LegalEntity hook methods
type LegalEntitySlice ¶
type LegalEntitySlice []*LegalEntity
LegalEntitySlice is an alias for a slice of pointers to LegalEntity. This should almost always be used instead of []LegalEntity.
func (LegalEntitySlice) DeleteAll ¶
func (o LegalEntitySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*LegalEntitySlice) ReloadAll ¶
func (o *LegalEntitySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (LegalEntitySlice) UpdateAll ¶
func (o LegalEntitySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Policy ¶
type Policy struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Code null.String `boil:"code" json:"code,omitempty" toml:"code" yaml:"code,omitempty"` Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"` LegalEntityID null.String `boil:"legal_entity_id" json:"legal_entity_id,omitempty" toml:"legal_entity_id" yaml:"legal_entity_id,omitempty"` StatusActive null.Bool `boil:"status_active" json:"status_active,omitempty" toml:"status_active" yaml:"status_active,omitempty"` R *policyR `boil:"-" json:"-" toml:"-" yaml:"-"` L policyL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Policy is an object representing the database table.
func FindPolicy ¶
func FindPolicy(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Policy, error)
FindPolicy retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Policy) Delete ¶
Delete deletes a single Policy record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Policy) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Policy) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Policy) Update ¶
func (o *Policy) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Policy. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Policy) Upsert ¶
func (o *Policy) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type PolicyHook ¶
PolicyHook is the signature for custom Policy hook methods
type PolicySlice ¶
type PolicySlice []*Policy
PolicySlice is an alias for a slice of pointers to Policy. This should almost always be used instead of []Policy.
func (PolicySlice) DeleteAll ¶
func (o PolicySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*PolicySlice) ReloadAll ¶
func (o *PolicySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (PolicySlice) UpdateAll ¶
func (o PolicySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Supplier ¶
type Supplier struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` LegalEntityID string `boil:"legal_entity_id" json:"legal_entity_id" toml:"legal_entity_id" yaml:"legal_entity_id"` City null.String `boil:"city" json:"city,omitempty" toml:"city" yaml:"city,omitempty"` CountryCode null.String `boil:"country_code" json:"country_code,omitempty" toml:"country_code" yaml:"country_code,omitempty"` ExternalID null.String `boil:"external_id" json:"external_id,omitempty" toml:"external_id" yaml:"external_id,omitempty"` Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"` SecondaryName null.String `boil:"secondary_name" json:"secondary_name,omitempty" toml:"secondary_name" yaml:"secondary_name,omitempty"` ShortName null.String `boil:"short_name" json:"short_name,omitempty" toml:"short_name" yaml:"short_name,omitempty"` StatusActive null.Bool `boil:"status_active" json:"status_active,omitempty" toml:"status_active" yaml:"status_active,omitempty"` Street null.String `boil:"street" json:"street,omitempty" toml:"street" yaml:"street,omitempty"` TaxNumber null.String `boil:"tax_number" json:"tax_number,omitempty" toml:"tax_number" yaml:"tax_number,omitempty"` URL null.String `boil:"url" json:"url,omitempty" toml:"url" yaml:"url,omitempty"` ZipCode null.String `boil:"zip_code" json:"zip_code,omitempty" toml:"zip_code" yaml:"zip_code,omitempty"` DefaultApproverID null.String `` /* 127-byte string literal not displayed */ DefaultCategoryID null.String `` /* 127-byte string literal not displayed */ DefaultCostCenter null.String `` /* 127-byte string literal not displayed */ DefaultPaymentTermID null.String `` /* 143-byte string literal not displayed */ SupplierID null.String `boil:"supplier_id" json:"supplier_id,omitempty" toml:"supplier_id" yaml:"supplier_id,omitempty"` R *supplierR `boil:"-" json:"-" toml:"-" yaml:"-"` L supplierL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Supplier is an object representing the database table.
func FindSupplier ¶
func FindSupplier(ctx context.Context, exec boil.ContextExecutor, legalEntityID string, iD string, selectCols ...string) (*Supplier, error)
FindSupplier retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Supplier) Delete ¶
Delete deletes a single Supplier record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Supplier) Insert ¶
func (o *Supplier) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Supplier) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Supplier) Update ¶
func (o *Supplier) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Supplier. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Supplier) Upsert ¶
func (o *Supplier) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type SupplierHook ¶
SupplierHook is the signature for custom Supplier hook methods
type SupplierSlice ¶
type SupplierSlice []*Supplier
SupplierSlice is an alias for a slice of pointers to Supplier. This should almost always be used instead of []Supplier.
func (SupplierSlice) DeleteAll ¶
func (o SupplierSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*SupplierSlice) ReloadAll ¶
func (o *SupplierSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (SupplierSlice) UpdateAll ¶
func (o SupplierSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Tag ¶
type Tag struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` DimensionCode null.String `boil:"dimension_code" json:"dimension_code,omitempty" toml:"dimension_code" yaml:"dimension_code,omitempty"` Code null.String `boil:"code" json:"code,omitempty" toml:"code" yaml:"code,omitempty"` Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"` LegalEntityID null.String `boil:"legal_entity_id" json:"legal_entity_id,omitempty" toml:"legal_entity_id" yaml:"legal_entity_id,omitempty"` StatusActive null.Bool `boil:"status_active" json:"status_active,omitempty" toml:"status_active" yaml:"status_active,omitempty"` R *tagR `boil:"-" json:"-" toml:"-" yaml:"-"` L tagL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Tag is an object representing the database table.
func FindTag ¶
func FindTag(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Tag, error)
FindTag retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Tag) Delete ¶
Delete deletes a single Tag record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Tag) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Tag) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Tag) Update ¶
func (o *Tag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Tag. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Tag) Upsert ¶
func (o *Tag) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type TagSlice ¶
type TagSlice []*Tag
TagSlice is an alias for a slice of pointers to Tag. This should almost always be used instead of []Tag.
type TaxRate ¶
type TaxRate struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` AccountReference null.String `boil:"account_reference" json:"account_reference,omitempty" toml:"account_reference" yaml:"account_reference,omitempty"` Code null.String `boil:"code" json:"code,omitempty" toml:"code" yaml:"code,omitempty"` Country null.String `boil:"country" json:"country,omitempty" toml:"country" yaml:"country,omitempty"` Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"` Rate decimal.Decimal `boil:"rate" json:"rate" toml:"rate" yaml:"rate"` LegalEntityID null.String `boil:"legal_entity_id" json:"legal_entity_id,omitempty" toml:"legal_entity_id" yaml:"legal_entity_id,omitempty"` StatusActive null.Bool `boil:"status_active" json:"status_active,omitempty" toml:"status_active" yaml:"status_active,omitempty"` R *taxRateR `boil:"-" json:"-" toml:"-" yaml:"-"` L taxRateL `boil:"-" json:"-" toml:"-" yaml:"-"` }
TaxRate is an object representing the database table.
func FindTaxRate ¶
func FindTaxRate(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*TaxRate, error)
FindTaxRate retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*TaxRate) Delete ¶
Delete deletes a single TaxRate record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TaxRate) Insert ¶
func (o *TaxRate) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*TaxRate) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*TaxRate) Update ¶
func (o *TaxRate) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the TaxRate. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*TaxRate) Upsert ¶
func (o *TaxRate) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type TaxRateHook ¶
TaxRateHook is the signature for custom TaxRate hook methods
type TaxRateSlice ¶
type TaxRateSlice []*TaxRate
TaxRateSlice is an alias for a slice of pointers to TaxRate. This should almost always be used instead of []TaxRate.
func (TaxRateSlice) DeleteAll ¶
func (o TaxRateSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*TaxRateSlice) ReloadAll ¶
func (o *TaxRateSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (TaxRateSlice) UpdateAll ¶
func (o TaxRateSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Trip ¶
type Trip struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Currency null.String `boil:"currency" json:"currency,omitempty" toml:"currency" yaml:"currency,omitempty"` StartDateTime null.Time `boil:"start_date_time" json:"start_date_time,omitempty" toml:"start_date_time" yaml:"start_date_time,omitempty"` EndDateTime null.Time `boil:"end_date_time" json:"end_date_time,omitempty" toml:"end_date_time" yaml:"end_date_time,omitempty"` LegalEntityID null.String `boil:"legal_entity_id" json:"legal_entity_id,omitempty" toml:"legal_entity_id" yaml:"legal_entity_id,omitempty"` Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"` Status null.String `boil:"status" json:"status,omitempty" toml:"status" yaml:"status,omitempty"` TotalClaim null.Int `boil:"total_claim" json:"total_claim,omitempty" toml:"total_claim" yaml:"total_claim,omitempty"` UserID null.String `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"` R *tripR `boil:"-" json:"-" toml:"-" yaml:"-"` L tripL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Trip is an object representing the database table.
func FindTrip ¶
func FindTrip(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Trip, error)
FindTrip retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Trip) Delete ¶
Delete deletes a single Trip record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Trip) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Trip) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Trip) Update ¶
func (o *Trip) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Trip. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Trip) Upsert ¶
func (o *Trip) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type TripSlice ¶
type TripSlice []*Trip
TripSlice is an alias for a slice of pointers to Trip. This should almost always be used instead of []Trip.
type UpsertOptionFunc ¶
type UpsertOptionFunc func(o *UpsertOptions)
func UpsertConflictTarget ¶
func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc
func UpsertUpdateSet ¶
func UpsertUpdateSet(updateSet string) UpsertOptionFunc
type UpsertOptions ¶
type UpsertOptions struct {
// contains filtered or unexported fields
}
type User ¶
type User struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` CostCenterID null.String `boil:"cost_center_id" json:"cost_center_id,omitempty" toml:"cost_center_id" yaml:"cost_center_id,omitempty"` Email null.String `boil:"email" json:"email,omitempty" toml:"email" yaml:"email,omitempty"` EmployeeID null.Int `boil:"employee_id" json:"employee_id,omitempty" toml:"employee_id" yaml:"employee_id,omitempty"` FirstName null.String `boil:"first_name" json:"first_name,omitempty" toml:"first_name" yaml:"first_name,omitempty"` Language null.String `boil:"language" json:"language,omitempty" toml:"language" yaml:"language,omitempty"` LastName null.String `boil:"last_name" json:"last_name,omitempty" toml:"last_name" yaml:"last_name,omitempty"` LegalEntityID null.String `boil:"legal_entity_id" json:"legal_entity_id,omitempty" toml:"legal_entity_id" yaml:"legal_entity_id,omitempty"` LineManagerID null.String `boil:"line_manager_id" json:"line_manager_id,omitempty" toml:"line_manager_id" yaml:"line_manager_id,omitempty"` LineManagerThreshold null.Int `` /* 139-byte string literal not displayed */ PolicyID null.String `boil:"policy_id" json:"policy_id,omitempty" toml:"policy_id" yaml:"policy_id,omitempty"` StatusActive null.Bool `boil:"status_active" json:"status_active,omitempty" toml:"status_active" yaml:"status_active,omitempty"` SubmissionDelegateID null.String `` /* 139-byte string literal not displayed */ R *userR `boil:"-" json:"-" toml:"-" yaml:"-"` L userL `boil:"-" json:"-" toml:"-" yaml:"-"` }
User is an object representing the database table.
func FindUser ¶
func FindUser(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*User, error)
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*User) Delete ¶
Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.
func (*User) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*User) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*User) Update ¶
func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*User) Upsert ¶
func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type UserSlice ¶
type UserSlice []*User
UserSlice is an alias for a slice of pointers to User. This should almost always be used instead of []User.
Source Files
¶
- boil_queries.go
- boil_table_names.go
- boil_types.go
- boil_view_names.go
- categories.go
- company_cards.go
- cost_centers.go
- expense_approver_ids.go
- expense_cost_centers.go
- expense_event_logs.go
- expense_tax_items.go
- expenses.go
- invoice_categories.go
- invoice_line_items.go
- invoices.go
- legal_entities.go
- policies.go
- psql_upsert.go
- suppliers.go
- tags.go
- tax_rates.go
- trips.go
- users.go