models

package
v0.0.0-...-d6c69a8 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllocationColumns = struct {
	ID          string
	RequestID   string
	Date        string
	PhotoURL    string
	AllocatorID string
}{
	ID:          "id",
	RequestID:   "request_id",
	Date:        "date",
	PhotoURL:    "photo_url",
	AllocatorID: "allocator_id",
}
View Source
var AllocationItemColumns = struct {
	ID           string
	AllocationID string
	ItemID       string
	UnitID       string
	Quantity     string
}{
	ID:           "id",
	AllocationID: "allocation_id",
	ItemID:       "item_id",
	UnitID:       "unit_id",
	Quantity:     "quantity",
}
View Source
var AllocationItemRels = struct {
	Allocation string
	Item       string
	Unit       string
}{
	Allocation: "Allocation",
	Item:       "Item",
	Unit:       "Unit",
}

AllocationItemRels is where relationship names are stored.

View Source
var AllocationItemWhere = struct {
	ID           whereHelperstring
	AllocationID whereHelperstring
	ItemID       whereHelperstring
	UnitID       whereHelperstring
	Quantity     whereHelpertypes_Decimal
}{
	ID:           whereHelperstring{/* contains filtered or unexported fields */},
	AllocationID: whereHelperstring{/* contains filtered or unexported fields */},
	ItemID:       whereHelperstring{/* contains filtered or unexported fields */},
	UnitID:       whereHelperstring{/* contains filtered or unexported fields */},
	Quantity:     whereHelpertypes_Decimal{/* contains filtered or unexported fields */},
}
View Source
var AllocationRels = struct {
	Request         string
	Allocator       string
	AllocationItems string
}{
	Request:         "Request",
	Allocator:       "Allocator",
	AllocationItems: "AllocationItems",
}

AllocationRels is where relationship names are stored.

View Source
var AllocationWhere = struct {
	ID          whereHelperstring
	RequestID   whereHelperstring
	Date        whereHelpertime_Time
	PhotoURL    whereHelpernull_String
	AllocatorID whereHelperstring
}{
	ID:          whereHelperstring{/* contains filtered or unexported fields */},
	RequestID:   whereHelperstring{/* contains filtered or unexported fields */},
	Date:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	PhotoURL:    whereHelpernull_String{/* contains filtered or unexported fields */},
	AllocatorID: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var DonationColumns = struct {
	ID         string
	Date       string
	IsAccepted string
	IsDonated  string
	DonatorID  string
}{
	ID:         "id",
	Date:       "date",
	IsAccepted: "is_accepted",
	IsDonated:  "is_donated",
	DonatorID:  "donator_id",
}
View Source
var DonationItemColumns = struct {
	ID         string
	DonationID string
	ItemID     string
	UnitID     string
	Quantity   string
}{
	ID:         "id",
	DonationID: "donation_id",
	ItemID:     "item_id",
	UnitID:     "unit_id",
	Quantity:   "quantity",
}
View Source
var DonationItemRels = struct {
	Donation string
	Item     string
	Unit     string
}{
	Donation: "Donation",
	Item:     "Item",
	Unit:     "Unit",
}

DonationItemRels is where relationship names are stored.

View Source
var DonationItemWhere = struct {
	ID         whereHelperstring
	DonationID whereHelperstring
	ItemID     whereHelperstring
	UnitID     whereHelperstring
	Quantity   whereHelpertypes_Decimal
}{
	ID:         whereHelperstring{/* contains filtered or unexported fields */},
	DonationID: whereHelperstring{/* contains filtered or unexported fields */},
	ItemID:     whereHelperstring{/* contains filtered or unexported fields */},
	UnitID:     whereHelperstring{/* contains filtered or unexported fields */},
	Quantity:   whereHelpertypes_Decimal{/* contains filtered or unexported fields */},
}
View Source
var DonationRels = struct {
	Donator       string
	DonationItems string
}{
	Donator:       "Donator",
	DonationItems: "DonationItems",
}

DonationRels is where relationship names are stored.

View Source
var DonationWhere = struct {
	ID         whereHelperstring
	Date       whereHelpertime_Time
	IsAccepted whereHelperbool
	IsDonated  whereHelperbool
	DonatorID  whereHelperstring
}{
	ID:         whereHelperstring{/* contains filtered or unexported fields */},
	Date:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	IsAccepted: whereHelperbool{/* contains filtered or unexported fields */},
	IsDonated:  whereHelperbool{/* contains filtered or unexported fields */},
	DonatorID:  whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
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.

View Source
var ItemColumns = struct {
	ID   string
	Name string
}{
	ID:   "id",
	Name: "name",
}
View Source
var ItemRels = struct {
	AllocationItems string
	DonationItems   string
	RequestItems    string
	Stocks          string
}{
	AllocationItems: "AllocationItems",
	DonationItems:   "DonationItems",
	RequestItems:    "RequestItems",
	Stocks:          "Stocks",
}

ItemRels is where relationship names are stored.

View Source
var ItemWhere = struct {
	ID   whereHelperstring
	Name whereHelperstring
}{
	ID:   whereHelperstring{/* contains filtered or unexported fields */},
	Name: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var PasswordResetRequestColumns = struct {
	ID     string
	UserID string
	Date   string
}{
	ID:     "id",
	UserID: "user_id",
	Date:   "date",
}
View Source
var PasswordResetRequestRels = struct {
	User string
}{
	User: "User",
}

PasswordResetRequestRels is where relationship names are stored.

View Source
var PasswordResetRequestWhere = struct {
	ID     whereHelperstring
	UserID whereHelperstring
	Date   whereHelpertime_Time
}{
	ID:     whereHelperstring{/* contains filtered or unexported fields */},
	UserID: whereHelperstring{/* contains filtered or unexported fields */},
	Date:   whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var RequestColumns = struct {
	ID                  string
	Date                string
	IsFulfilled         string
	DonationApplicantID string
}{
	ID:                  "id",
	Date:                "date",
	IsFulfilled:         "is_fulfilled",
	DonationApplicantID: "donation_applicant_id",
}
View Source
var RequestItemAllocationColumns = struct {
	ID             string
	RequestItemID  string
	AllocationDate string
	Description    string
}{
	ID:             "id",
	RequestItemID:  "request_item_id",
	AllocationDate: "allocation_date",
	Description:    "description",
}
View Source
var RequestItemAllocationRels = struct {
	RequestItem string
}{
	RequestItem: "RequestItem",
}

RequestItemAllocationRels is where relationship names are stored.

View Source
var RequestItemAllocationWhere = struct {
	ID             whereHelperstring
	RequestItemID  whereHelperstring
	AllocationDate whereHelpertime_Time
	Description    whereHelpernull_String
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	RequestItemID:  whereHelperstring{/* contains filtered or unexported fields */},
	AllocationDate: whereHelpertime_Time{/* contains filtered or unexported fields */},
	Description:    whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var RequestItemColumns = struct {
	ID        string
	ItemID    string
	UnitID    string
	Quantity  string
	RequestID string
}{
	ID:        "id",
	ItemID:    "item_id",
	UnitID:    "unit_id",
	Quantity:  "quantity",
	RequestID: "request_id",
}
View Source
var RequestItemRels = struct {
	Item                  string
	Request               string
	Unit                  string
	RequestItemAllocation string
}{
	Item:                  "Item",
	Request:               "Request",
	Unit:                  "Unit",
	RequestItemAllocation: "RequestItemAllocation",
}

RequestItemRels is where relationship names are stored.

View Source
var RequestItemWhere = struct {
	ID        whereHelperstring
	ItemID    whereHelperstring
	UnitID    whereHelperstring
	Quantity  whereHelpertypes_Decimal
	RequestID whereHelperstring
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	ItemID:    whereHelperstring{/* contains filtered or unexported fields */},
	UnitID:    whereHelperstring{/* contains filtered or unexported fields */},
	Quantity:  whereHelpertypes_Decimal{/* contains filtered or unexported fields */},
	RequestID: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var RequestRels = struct {
	DonationApplicant string
	Allocations       string
	RequestItems      string
}{
	DonationApplicant: "DonationApplicant",
	Allocations:       "Allocations",
	RequestItems:      "RequestItems",
}

RequestRels is where relationship names are stored.

View Source
var RequestWhere = struct {
	ID                  whereHelperstring
	Date                whereHelpertime_Time
	IsFulfilled         whereHelperbool
	DonationApplicantID whereHelperstring
}{
	ID:                  whereHelperstring{/* contains filtered or unexported fields */},
	Date:                whereHelpertime_Time{/* contains filtered or unexported fields */},
	IsFulfilled:         whereHelperbool{/* contains filtered or unexported fields */},
	DonationApplicantID: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var SchemaMigrationColumns = struct {
	Version string
	Dirty   string
}{
	Version: "version",
	Dirty:   "dirty",
}
View Source
var SchemaMigrationRels = struct {
}{}

SchemaMigrationRels is where relationship names are stored.

View Source
var SchemaMigrationWhere = struct {
	Version whereHelperint64
	Dirty   whereHelperbool
}{
	Version: whereHelperint64{/* contains filtered or unexported fields */},
	Dirty:   whereHelperbool{/* contains filtered or unexported fields */},
}
View Source
var StockColumns = struct {
	ID       string
	ItemID   string
	UnitID   string
	Quantity string
}{
	ID:       "id",
	ItemID:   "item_id",
	UnitID:   "unit_id",
	Quantity: "quantity",
}
View Source
var StockRels = struct {
	Item string
	Unit string
}{
	Item: "Item",
	Unit: "Unit",
}

StockRels is where relationship names are stored.

View Source
var StockWhere = struct {
	ID       whereHelperstring
	ItemID   whereHelperstring
	UnitID   whereHelperstring
	Quantity whereHelpertypes_Decimal
}{
	ID:       whereHelperstring{/* contains filtered or unexported fields */},
	ItemID:   whereHelperstring{/* contains filtered or unexported fields */},
	UnitID:   whereHelperstring{/* contains filtered or unexported fields */},
	Quantity: whereHelpertypes_Decimal{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	AllocationItems       string
	Allocations           string
	DonationItems         string
	Donations             string
	Items                 string
	PasswordResetRequests string
	RequestItemAllocation string
	RequestItems          string
	Requests              string
	SchemaMigrations      string
	Stocks                string
	Units                 string
	Users                 string
}{
	AllocationItems:       "allocation_items",
	Allocations:           "allocations",
	DonationItems:         "donation_items",
	Donations:             "donations",
	Items:                 "items",
	PasswordResetRequests: "password_reset_requests",
	RequestItemAllocation: "request_item_allocation",
	RequestItems:          "request_items",
	Requests:              "requests",
	SchemaMigrations:      "schema_migrations",
	Stocks:                "stocks",
	Units:                 "units",
	Users:                 "users",
}
View Source
var UnitColumns = struct {
	ID   string
	Name string
}{
	ID:   "id",
	Name: "name",
}
View Source
var UnitRels = struct {
	AllocationItems string
	DonationItems   string
	RequestItems    string
	Stocks          string
}{
	AllocationItems: "AllocationItems",
	DonationItems:   "DonationItems",
	RequestItems:    "RequestItems",
	Stocks:          "Stocks",
}

UnitRels is where relationship names are stored.

View Source
var UnitWhere = struct {
	ID   whereHelperstring
	Name whereHelperstring
}{
	ID:   whereHelperstring{/* contains filtered or unexported fields */},
	Name: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var UserColumns = struct {
	ID            string
	Email         string
	Password      string
	Name          string
	ContactPerson string
	ContactNumber string
	Role          string
}{
	ID:            "id",
	Email:         "email",
	Password:      "password",
	Name:          "name",
	ContactPerson: "contact_person",
	ContactNumber: "contact_number",
	Role:          "role",
}
View Source
var UserRels = struct {
	AllocatorAllocations      string
	DonatorDonations          string
	PasswordResetRequests     string
	DonationApplicantRequests string
}{
	AllocatorAllocations:      "AllocatorAllocations",
	DonatorDonations:          "DonatorDonations",
	PasswordResetRequests:     "PasswordResetRequests",
	DonationApplicantRequests: "DonationApplicantRequests",
}

UserRels is where relationship names are stored.

View Source
var UserWhere = struct {
	ID            whereHelperstring
	Email         whereHelperstring
	Password      whereHelperstring
	Name          whereHelperstring
	ContactPerson whereHelpernull_String
	ContactNumber whereHelpernull_String
	Role          whereHelperstring
}{
	ID:            whereHelperstring{/* contains filtered or unexported fields */},
	Email:         whereHelperstring{/* contains filtered or unexported fields */},
	Password:      whereHelperstring{/* contains filtered or unexported fields */},
	Name:          whereHelperstring{/* contains filtered or unexported fields */},
	ContactPerson: whereHelpernull_String{/* contains filtered or unexported fields */},
	ContactNumber: whereHelpernull_String{/* contains filtered or unexported fields */},
	Role:          whereHelperstring{/* contains filtered or unexported fields */},
}

Functions

func AddAllocationHook

func AddAllocationHook(hookPoint boil.HookPoint, allocationHook AllocationHook)

AddAllocationHook registers your hook function for all future operations.

func AddAllocationItemHook

func AddAllocationItemHook(hookPoint boil.HookPoint, allocationItemHook AllocationItemHook)

AddAllocationItemHook registers your hook function for all future operations.

func AddDonationHook

func AddDonationHook(hookPoint boil.HookPoint, donationHook DonationHook)

AddDonationHook registers your hook function for all future operations.

func AddDonationItemHook

func AddDonationItemHook(hookPoint boil.HookPoint, donationItemHook DonationItemHook)

AddDonationItemHook registers your hook function for all future operations.

func AddItemHook

func AddItemHook(hookPoint boil.HookPoint, itemHook ItemHook)

AddItemHook registers your hook function for all future operations.

func AddPasswordResetRequestHook

func AddPasswordResetRequestHook(hookPoint boil.HookPoint, passwordResetRequestHook PasswordResetRequestHook)

AddPasswordResetRequestHook registers your hook function for all future operations.

func AddRequestHook

func AddRequestHook(hookPoint boil.HookPoint, requestHook RequestHook)

AddRequestHook registers your hook function for all future operations.

func AddRequestItemAllocationHook

func AddRequestItemAllocationHook(hookPoint boil.HookPoint, requestItemAllocationHook RequestItemAllocationHook)

AddRequestItemAllocationHook registers your hook function for all future operations.

func AddRequestItemHook

func AddRequestItemHook(hookPoint boil.HookPoint, requestItemHook RequestItemHook)

AddRequestItemHook registers your hook function for all future operations.

func AddSchemaMigrationHook

func AddSchemaMigrationHook(hookPoint boil.HookPoint, schemaMigrationHook SchemaMigrationHook)

AddSchemaMigrationHook registers your hook function for all future operations.

func AddStockHook

func AddStockHook(hookPoint boil.HookPoint, stockHook StockHook)

AddStockHook registers your hook function for all future operations.

func AddUnitHook

func AddUnitHook(hookPoint boil.HookPoint, unitHook UnitHook)

AddUnitHook registers your hook function for all future operations.

func AddUserHook

func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)

AddUserHook registers your hook function for all future operations.

func AllocationExists

func AllocationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

AllocationExists checks if the Allocation row exists.

func AllocationItemExists

func AllocationItemExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

AllocationItemExists checks if the AllocationItem row exists.

func AllocationItems

func AllocationItems(mods ...qm.QueryMod) allocationItemQuery

AllocationItems retrieves all the records using an executor.

func Allocations

func Allocations(mods ...qm.QueryMod) allocationQuery

Allocations retrieves all the records using an executor.

func DonationExists

func DonationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

DonationExists checks if the Donation row exists.

func DonationItemExists

func DonationItemExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

DonationItemExists checks if the DonationItem row exists.

func DonationItems

func DonationItems(mods ...qm.QueryMod) donationItemQuery

DonationItems retrieves all the records using an executor.

func Donations

func Donations(mods ...qm.QueryMod) donationQuery

Donations retrieves all the records using an executor.

func ItemExists

func ItemExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

ItemExists checks if the Item row exists.

func Items

func Items(mods ...qm.QueryMod) itemQuery

Items retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func PasswordResetRequestExists

func PasswordResetRequestExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

PasswordResetRequestExists checks if the PasswordResetRequest row exists.

func PasswordResetRequests

func PasswordResetRequests(mods ...qm.QueryMod) passwordResetRequestQuery

PasswordResetRequests retrieves all the records using an executor.

func RequestExists

func RequestExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

RequestExists checks if the Request row exists.

func RequestItemAllocationExists

func RequestItemAllocationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

RequestItemAllocationExists checks if the RequestItemAllocation row exists.

func RequestItemAllocations

func RequestItemAllocations(mods ...qm.QueryMod) requestItemAllocationQuery

RequestItemAllocations retrieves all the records using an executor.

func RequestItemExists

func RequestItemExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

RequestItemExists checks if the RequestItem row exists.

func RequestItems

func RequestItems(mods ...qm.QueryMod) requestItemQuery

RequestItems retrieves all the records using an executor.

func Requests

func Requests(mods ...qm.QueryMod) requestQuery

Requests retrieves all the records using an executor.

func SchemaMigrationExists

func SchemaMigrationExists(ctx context.Context, exec boil.ContextExecutor, version int64) (bool, error)

SchemaMigrationExists checks if the SchemaMigration row exists.

func SchemaMigrations

func SchemaMigrations(mods ...qm.QueryMod) schemaMigrationQuery

SchemaMigrations retrieves all the records using an executor.

func StockExists

func StockExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

StockExists checks if the Stock row exists.

func Stocks

func Stocks(mods ...qm.QueryMod) stockQuery

Stocks retrieves all the records using an executor.

func UnitExists

func UnitExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

UnitExists checks if the Unit row exists.

func Units

func Units(mods ...qm.QueryMod) unitQuery

Units retrieves all the records using an executor.

func UserExists

func UserExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

UserExists checks if the User row exists.

func Users

func Users(mods ...qm.QueryMod) userQuery

Users retrieves all the records using an executor.

Types

type Allocation

type Allocation struct {
	ID          string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	RequestID   string      `boil:"request_id" json:"request_id" toml:"request_id" yaml:"request_id"`
	Date        time.Time   `boil:"date" json:"date" toml:"date" yaml:"date"`
	PhotoURL    null.String `boil:"photo_url" json:"photo_url,omitempty" toml:"photo_url" yaml:"photo_url,omitempty"`
	AllocatorID string      `boil:"allocator_id" json:"allocator_id" toml:"allocator_id" yaml:"allocator_id"`

	R *allocationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L allocationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Allocation is an object representing the database table.

func FindAllocation

func FindAllocation(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Allocation, error)

FindAllocation retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Allocation) AddAllocationItems

func (o *Allocation) AddAllocationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AllocationItem) error

AddAllocationItems adds the given related objects to the existing relationships of the allocation, optionally inserting them as new records. Appends related to o.R.AllocationItems. Sets related.R.Allocation appropriately.

func (*Allocation) AllocationItems

func (o *Allocation) AllocationItems(mods ...qm.QueryMod) allocationItemQuery

AllocationItems retrieves all the allocation_item's AllocationItems with an executor.

func (*Allocation) Allocator

func (o *Allocation) Allocator(mods ...qm.QueryMod) userQuery

Allocator pointed to by the foreign key.

func (*Allocation) Delete

func (o *Allocation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Allocation record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Allocation) Insert

func (o *Allocation) 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 (*Allocation) Reload

func (o *Allocation) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Allocation) Request

func (o *Allocation) Request(mods ...qm.QueryMod) requestQuery

Request pointed to by the foreign key.

func (*Allocation) SetAllocator

func (o *Allocation) SetAllocator(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetAllocator of the allocation to the related item. Sets o.R.Allocator to related. Adds o to related.R.AllocatorAllocations.

func (*Allocation) SetRequest

func (o *Allocation) SetRequest(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Request) error

SetRequest of the allocation to the related item. Sets o.R.Request to related. Adds o to related.R.Allocations.

func (*Allocation) Update

func (o *Allocation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Allocation. 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 (*Allocation) Upsert

func (o *Allocation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 AllocationHook

type AllocationHook func(context.Context, boil.ContextExecutor, *Allocation) error

AllocationHook is the signature for custom Allocation hook methods

type AllocationItem

type AllocationItem struct {
	ID           string        `boil:"id" json:"id" toml:"id" yaml:"id"`
	AllocationID string        `boil:"allocation_id" json:"allocation_id" toml:"allocation_id" yaml:"allocation_id"`
	ItemID       string        `boil:"item_id" json:"item_id" toml:"item_id" yaml:"item_id"`
	UnitID       string        `boil:"unit_id" json:"unit_id" toml:"unit_id" yaml:"unit_id"`
	Quantity     types.Decimal `boil:"quantity" json:"quantity" toml:"quantity" yaml:"quantity"`

	R *allocationItemR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L allocationItemL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AllocationItem is an object representing the database table.

func FindAllocationItem

func FindAllocationItem(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*AllocationItem, error)

FindAllocationItem retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*AllocationItem) Allocation

func (o *AllocationItem) Allocation(mods ...qm.QueryMod) allocationQuery

Allocation pointed to by the foreign key.

func (*AllocationItem) Delete

func (o *AllocationItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single AllocationItem record with an executor. Delete will match against the primary key column to find the record to delete.

func (*AllocationItem) Insert

func (o *AllocationItem) 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 (*AllocationItem) Item

func (o *AllocationItem) Item(mods ...qm.QueryMod) itemQuery

Item pointed to by the foreign key.

func (*AllocationItem) Reload

func (o *AllocationItem) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*AllocationItem) SetAllocation

func (o *AllocationItem) SetAllocation(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Allocation) error

SetAllocation of the allocationItem to the related item. Sets o.R.Allocation to related. Adds o to related.R.AllocationItems.

func (*AllocationItem) SetItem

func (o *AllocationItem) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error

SetItem of the allocationItem to the related item. Sets o.R.Item to related. Adds o to related.R.AllocationItems.

func (*AllocationItem) SetUnit

func (o *AllocationItem) SetUnit(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Unit) error

SetUnit of the allocationItem to the related item. Sets o.R.Unit to related. Adds o to related.R.AllocationItems.

func (*AllocationItem) Unit

func (o *AllocationItem) Unit(mods ...qm.QueryMod) unitQuery

Unit pointed to by the foreign key.

func (*AllocationItem) Update

func (o *AllocationItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the AllocationItem. 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 (*AllocationItem) Upsert

func (o *AllocationItem) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 AllocationItemHook

type AllocationItemHook func(context.Context, boil.ContextExecutor, *AllocationItem) error

AllocationItemHook is the signature for custom AllocationItem hook methods

type AllocationItemSlice

type AllocationItemSlice []*AllocationItem

AllocationItemSlice is an alias for a slice of pointers to AllocationItem. This should generally be used opposed to []AllocationItem.

func (AllocationItemSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*AllocationItemSlice) ReloadAll

func (o *AllocationItemSlice) 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 (AllocationItemSlice) UpdateAll

func (o AllocationItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type AllocationSlice

type AllocationSlice []*Allocation

AllocationSlice is an alias for a slice of pointers to Allocation. This should generally be used opposed to []Allocation.

func (AllocationSlice) DeleteAll

func (o AllocationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*AllocationSlice) ReloadAll

func (o *AllocationSlice) 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 (AllocationSlice) UpdateAll

func (o AllocationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Donation

type Donation struct {
	ID         string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Date       time.Time `boil:"date" json:"date" toml:"date" yaml:"date"`
	IsAccepted bool      `boil:"is_accepted" json:"is_accepted" toml:"is_accepted" yaml:"is_accepted"`
	IsDonated  bool      `boil:"is_donated" json:"is_donated" toml:"is_donated" yaml:"is_donated"`
	DonatorID  string    `boil:"donator_id" json:"donator_id" toml:"donator_id" yaml:"donator_id"`

	R *donationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L donationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Donation is an object representing the database table.

func FindDonation

func FindDonation(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Donation, error)

FindDonation retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Donation) AddDonationItems

func (o *Donation) AddDonationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DonationItem) error

AddDonationItems adds the given related objects to the existing relationships of the donation, optionally inserting them as new records. Appends related to o.R.DonationItems. Sets related.R.Donation appropriately.

func (*Donation) Delete

func (o *Donation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Donation record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Donation) DonationItems

func (o *Donation) DonationItems(mods ...qm.QueryMod) donationItemQuery

DonationItems retrieves all the donation_item's DonationItems with an executor.

func (*Donation) Donator

func (o *Donation) Donator(mods ...qm.QueryMod) userQuery

Donator pointed to by the foreign key.

func (*Donation) Insert

func (o *Donation) 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 (*Donation) Reload

func (o *Donation) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Donation) SetDonator

func (o *Donation) SetDonator(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetDonator of the donation to the related item. Sets o.R.Donator to related. Adds o to related.R.DonatorDonations.

func (*Donation) Update

func (o *Donation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Donation. 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 (*Donation) Upsert

func (o *Donation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 DonationHook

type DonationHook func(context.Context, boil.ContextExecutor, *Donation) error

DonationHook is the signature for custom Donation hook methods

type DonationItem

type DonationItem struct {
	ID         string        `boil:"id" json:"id" toml:"id" yaml:"id"`
	DonationID string        `boil:"donation_id" json:"donation_id" toml:"donation_id" yaml:"donation_id"`
	ItemID     string        `boil:"item_id" json:"item_id" toml:"item_id" yaml:"item_id"`
	UnitID     string        `boil:"unit_id" json:"unit_id" toml:"unit_id" yaml:"unit_id"`
	Quantity   types.Decimal `boil:"quantity" json:"quantity" toml:"quantity" yaml:"quantity"`

	R *donationItemR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L donationItemL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

DonationItem is an object representing the database table.

func FindDonationItem

func FindDonationItem(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*DonationItem, error)

FindDonationItem retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*DonationItem) Delete

func (o *DonationItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single DonationItem record with an executor. Delete will match against the primary key column to find the record to delete.

func (*DonationItem) Donation

func (o *DonationItem) Donation(mods ...qm.QueryMod) donationQuery

Donation pointed to by the foreign key.

func (*DonationItem) Insert

func (o *DonationItem) 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 (*DonationItem) Item

func (o *DonationItem) Item(mods ...qm.QueryMod) itemQuery

Item pointed to by the foreign key.

func (*DonationItem) Reload

func (o *DonationItem) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*DonationItem) SetDonation

func (o *DonationItem) SetDonation(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Donation) error

SetDonation of the donationItem to the related item. Sets o.R.Donation to related. Adds o to related.R.DonationItems.

func (*DonationItem) SetItem

func (o *DonationItem) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error

SetItem of the donationItem to the related item. Sets o.R.Item to related. Adds o to related.R.DonationItems.

func (*DonationItem) SetUnit

func (o *DonationItem) SetUnit(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Unit) error

SetUnit of the donationItem to the related item. Sets o.R.Unit to related. Adds o to related.R.DonationItems.

func (*DonationItem) Unit

func (o *DonationItem) Unit(mods ...qm.QueryMod) unitQuery

Unit pointed to by the foreign key.

func (*DonationItem) Update

func (o *DonationItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the DonationItem. 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 (*DonationItem) Upsert

func (o *DonationItem) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 DonationItemHook

type DonationItemHook func(context.Context, boil.ContextExecutor, *DonationItem) error

DonationItemHook is the signature for custom DonationItem hook methods

type DonationItemSlice

type DonationItemSlice []*DonationItem

DonationItemSlice is an alias for a slice of pointers to DonationItem. This should generally be used opposed to []DonationItem.

func (DonationItemSlice) DeleteAll

func (o DonationItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*DonationItemSlice) ReloadAll

func (o *DonationItemSlice) 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 (DonationItemSlice) UpdateAll

func (o DonationItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type DonationSlice

type DonationSlice []*Donation

DonationSlice is an alias for a slice of pointers to Donation. This should generally be used opposed to []Donation.

func (DonationSlice) DeleteAll

func (o DonationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*DonationSlice) ReloadAll

func (o *DonationSlice) 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 (DonationSlice) UpdateAll

func (o DonationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Item

type Item struct {
	ID   string `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name string `boil:"name" json:"name" toml:"name" yaml:"name"`

	R *itemR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L itemL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Item is an object representing the database table.

func FindItem

func FindItem(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Item, error)

FindItem retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Item) AddAllocationItems

func (o *Item) AddAllocationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AllocationItem) error

AddAllocationItems adds the given related objects to the existing relationships of the item, optionally inserting them as new records. Appends related to o.R.AllocationItems. Sets related.R.Item appropriately.

func (*Item) AddDonationItems

func (o *Item) AddDonationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DonationItem) error

AddDonationItems adds the given related objects to the existing relationships of the item, optionally inserting them as new records. Appends related to o.R.DonationItems. Sets related.R.Item appropriately.

func (*Item) AddRequestItems

func (o *Item) AddRequestItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RequestItem) error

AddRequestItems adds the given related objects to the existing relationships of the item, optionally inserting them as new records. Appends related to o.R.RequestItems. Sets related.R.Item appropriately.

func (*Item) AddStocks

func (o *Item) AddStocks(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Stock) error

AddStocks adds the given related objects to the existing relationships of the item, optionally inserting them as new records. Appends related to o.R.Stocks. Sets related.R.Item appropriately.

func (*Item) AllocationItems

func (o *Item) AllocationItems(mods ...qm.QueryMod) allocationItemQuery

AllocationItems retrieves all the allocation_item's AllocationItems with an executor.

func (*Item) Delete

func (o *Item) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Item record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Item) DonationItems

func (o *Item) DonationItems(mods ...qm.QueryMod) donationItemQuery

DonationItems retrieves all the donation_item's DonationItems with an executor.

func (*Item) Insert

func (o *Item) 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 (*Item) Reload

func (o *Item) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Item) RequestItems

func (o *Item) RequestItems(mods ...qm.QueryMod) requestItemQuery

RequestItems retrieves all the request_item's RequestItems with an executor.

func (*Item) Stocks

func (o *Item) Stocks(mods ...qm.QueryMod) stockQuery

Stocks retrieves all the stock's Stocks with an executor.

func (*Item) Update

func (o *Item) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Item. 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 (*Item) Upsert

func (o *Item) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 ItemHook

type ItemHook func(context.Context, boil.ContextExecutor, *Item) error

ItemHook is the signature for custom Item hook methods

type ItemSlice

type ItemSlice []*Item

ItemSlice is an alias for a slice of pointers to Item. This should generally be used opposed to []Item.

func (ItemSlice) DeleteAll

func (o ItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*ItemSlice) ReloadAll

func (o *ItemSlice) 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 (ItemSlice) UpdateAll

func (o ItemSlice) 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 PasswordResetRequest

type PasswordResetRequest struct {
	ID     string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	UserID string    `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Date   time.Time `boil:"date" json:"date" toml:"date" yaml:"date"`

	R *passwordResetRequestR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L passwordResetRequestL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PasswordResetRequest is an object representing the database table.

func FindPasswordResetRequest

func FindPasswordResetRequest(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*PasswordResetRequest, error)

FindPasswordResetRequest retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*PasswordResetRequest) Delete

Delete deletes a single PasswordResetRequest record with an executor. Delete will match against the primary key column to find the record to delete.

func (*PasswordResetRequest) Insert

func (o *PasswordResetRequest) 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 (*PasswordResetRequest) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*PasswordResetRequest) SetUser

func (o *PasswordResetRequest) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the passwordResetRequest to the related item. Sets o.R.User to related. Adds o to related.R.PasswordResetRequests.

func (*PasswordResetRequest) Update

func (o *PasswordResetRequest) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the PasswordResetRequest. 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 (*PasswordResetRequest) Upsert

func (o *PasswordResetRequest) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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.

func (*PasswordResetRequest) User

func (o *PasswordResetRequest) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type PasswordResetRequestHook

type PasswordResetRequestHook func(context.Context, boil.ContextExecutor, *PasswordResetRequest) error

PasswordResetRequestHook is the signature for custom PasswordResetRequest hook methods

type PasswordResetRequestSlice

type PasswordResetRequestSlice []*PasswordResetRequest

PasswordResetRequestSlice is an alias for a slice of pointers to PasswordResetRequest. This should generally be used opposed to []PasswordResetRequest.

func (PasswordResetRequestSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*PasswordResetRequestSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (PasswordResetRequestSlice) UpdateAll

func (o PasswordResetRequestSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Request

type Request struct {
	ID                  string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Date                time.Time `boil:"date" json:"date" toml:"date" yaml:"date"`
	IsFulfilled         bool      `boil:"is_fulfilled" json:"is_fulfilled" toml:"is_fulfilled" yaml:"is_fulfilled"`
	DonationApplicantID string    `boil:"donation_applicant_id" json:"donation_applicant_id" toml:"donation_applicant_id" yaml:"donation_applicant_id"`

	R *requestR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L requestL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Request is an object representing the database table.

func FindRequest

func FindRequest(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Request, error)

FindRequest retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Request) AddAllocations

func (o *Request) AddAllocations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Allocation) error

AddAllocations adds the given related objects to the existing relationships of the request, optionally inserting them as new records. Appends related to o.R.Allocations. Sets related.R.Request appropriately.

func (*Request) AddRequestItems

func (o *Request) AddRequestItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RequestItem) error

AddRequestItems adds the given related objects to the existing relationships of the request, optionally inserting them as new records. Appends related to o.R.RequestItems. Sets related.R.Request appropriately.

func (*Request) Allocations

func (o *Request) Allocations(mods ...qm.QueryMod) allocationQuery

Allocations retrieves all the allocation's Allocations with an executor.

func (*Request) Delete

func (o *Request) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Request record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Request) DonationApplicant

func (o *Request) DonationApplicant(mods ...qm.QueryMod) userQuery

DonationApplicant pointed to by the foreign key.

func (*Request) Insert

func (o *Request) 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 (*Request) Reload

func (o *Request) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Request) RequestItems

func (o *Request) RequestItems(mods ...qm.QueryMod) requestItemQuery

RequestItems retrieves all the request_item's RequestItems with an executor.

func (*Request) SetDonationApplicant

func (o *Request) SetDonationApplicant(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetDonationApplicant of the request to the related item. Sets o.R.DonationApplicant to related. Adds o to related.R.DonationApplicantRequests.

func (*Request) Update

func (o *Request) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Request. 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 (*Request) Upsert

func (o *Request) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 RequestHook

type RequestHook func(context.Context, boil.ContextExecutor, *Request) error

RequestHook is the signature for custom Request hook methods

type RequestItem

type RequestItem struct {
	ID        string        `boil:"id" json:"id" toml:"id" yaml:"id"`
	ItemID    string        `boil:"item_id" json:"item_id" toml:"item_id" yaml:"item_id"`
	UnitID    string        `boil:"unit_id" json:"unit_id" toml:"unit_id" yaml:"unit_id"`
	Quantity  types.Decimal `boil:"quantity" json:"quantity" toml:"quantity" yaml:"quantity"`
	RequestID string        `boil:"request_id" json:"request_id" toml:"request_id" yaml:"request_id"`

	R *requestItemR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L requestItemL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RequestItem is an object representing the database table.

func FindRequestItem

func FindRequestItem(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*RequestItem, error)

FindRequestItem retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*RequestItem) Delete

func (o *RequestItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single RequestItem record with an executor. Delete will match against the primary key column to find the record to delete.

func (*RequestItem) Insert

func (o *RequestItem) 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 (*RequestItem) Item

func (o *RequestItem) Item(mods ...qm.QueryMod) itemQuery

Item pointed to by the foreign key.

func (*RequestItem) Reload

func (o *RequestItem) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*RequestItem) Request

func (o *RequestItem) Request(mods ...qm.QueryMod) requestQuery

Request pointed to by the foreign key.

func (*RequestItem) RequestItemAllocation

func (o *RequestItem) RequestItemAllocation(mods ...qm.QueryMod) requestItemAllocationQuery

RequestItemAllocation pointed to by the foreign key.

func (*RequestItem) SetItem

func (o *RequestItem) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error

SetItem of the requestItem to the related item. Sets o.R.Item to related. Adds o to related.R.RequestItems.

func (*RequestItem) SetRequest

func (o *RequestItem) SetRequest(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Request) error

SetRequest of the requestItem to the related item. Sets o.R.Request to related. Adds o to related.R.RequestItems.

func (*RequestItem) SetRequestItemAllocation

func (o *RequestItem) SetRequestItemAllocation(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RequestItemAllocation) error

SetRequestItemAllocation of the requestItem to the related item. Sets o.R.RequestItemAllocation to related. Adds o to related.R.RequestItem.

func (*RequestItem) SetUnit

func (o *RequestItem) SetUnit(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Unit) error

SetUnit of the requestItem to the related item. Sets o.R.Unit to related. Adds o to related.R.RequestItems.

func (*RequestItem) Unit

func (o *RequestItem) Unit(mods ...qm.QueryMod) unitQuery

Unit pointed to by the foreign key.

func (*RequestItem) Update

func (o *RequestItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the RequestItem. 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 (*RequestItem) Upsert

func (o *RequestItem) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 RequestItemAllocation

type RequestItemAllocation struct {
	ID             string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	RequestItemID  string      `boil:"request_item_id" json:"request_item_id" toml:"request_item_id" yaml:"request_item_id"`
	AllocationDate time.Time   `boil:"allocation_date" json:"allocation_date" toml:"allocation_date" yaml:"allocation_date"`
	Description    null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`

	R *requestItemAllocationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L requestItemAllocationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RequestItemAllocation is an object representing the database table.

func FindRequestItemAllocation

func FindRequestItemAllocation(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*RequestItemAllocation, error)

FindRequestItemAllocation retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*RequestItemAllocation) Delete

Delete deletes a single RequestItemAllocation record with an executor. Delete will match against the primary key column to find the record to delete.

func (*RequestItemAllocation) Insert

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*RequestItemAllocation) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*RequestItemAllocation) RequestItem

func (o *RequestItemAllocation) RequestItem(mods ...qm.QueryMod) requestItemQuery

RequestItem pointed to by the foreign key.

func (*RequestItemAllocation) SetRequestItem

func (o *RequestItemAllocation) SetRequestItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RequestItem) error

SetRequestItem of the requestItemAllocation to the related item. Sets o.R.RequestItem to related. Adds o to related.R.RequestItemAllocation.

func (*RequestItemAllocation) Update

func (o *RequestItemAllocation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the RequestItemAllocation. 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 (*RequestItemAllocation) Upsert

func (o *RequestItemAllocation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 RequestItemAllocationHook

type RequestItemAllocationHook func(context.Context, boil.ContextExecutor, *RequestItemAllocation) error

RequestItemAllocationHook is the signature for custom RequestItemAllocation hook methods

type RequestItemAllocationSlice

type RequestItemAllocationSlice []*RequestItemAllocation

RequestItemAllocationSlice is an alias for a slice of pointers to RequestItemAllocation. This should generally be used opposed to []RequestItemAllocation.

func (RequestItemAllocationSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*RequestItemAllocationSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (RequestItemAllocationSlice) UpdateAll

func (o RequestItemAllocationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type RequestItemHook

type RequestItemHook func(context.Context, boil.ContextExecutor, *RequestItem) error

RequestItemHook is the signature for custom RequestItem hook methods

type RequestItemSlice

type RequestItemSlice []*RequestItem

RequestItemSlice is an alias for a slice of pointers to RequestItem. This should generally be used opposed to []RequestItem.

func (RequestItemSlice) DeleteAll

func (o RequestItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*RequestItemSlice) ReloadAll

func (o *RequestItemSlice) 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 (RequestItemSlice) UpdateAll

func (o RequestItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type RequestSlice

type RequestSlice []*Request

RequestSlice is an alias for a slice of pointers to Request. This should generally be used opposed to []Request.

func (RequestSlice) DeleteAll

func (o RequestSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*RequestSlice) ReloadAll

func (o *RequestSlice) 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 (RequestSlice) UpdateAll

func (o RequestSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type SchemaMigration

type SchemaMigration struct {
	Version int64 `boil:"version" json:"version" toml:"version" yaml:"version"`
	Dirty   bool  `boil:"dirty" json:"dirty" toml:"dirty" yaml:"dirty"`

	R *schemaMigrationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L schemaMigrationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

SchemaMigration is an object representing the database table.

func FindSchemaMigration

func FindSchemaMigration(ctx context.Context, exec boil.ContextExecutor, version int64, selectCols ...string) (*SchemaMigration, error)

FindSchemaMigration retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*SchemaMigration) Delete

func (o *SchemaMigration) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single SchemaMigration record with an executor. Delete will match against the primary key column to find the record to delete.

func (*SchemaMigration) Insert

func (o *SchemaMigration) 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 (*SchemaMigration) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*SchemaMigration) Update

func (o *SchemaMigration) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the SchemaMigration. 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 (*SchemaMigration) Upsert

func (o *SchemaMigration) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 SchemaMigrationHook

type SchemaMigrationHook func(context.Context, boil.ContextExecutor, *SchemaMigration) error

SchemaMigrationHook is the signature for custom SchemaMigration hook methods

type SchemaMigrationSlice

type SchemaMigrationSlice []*SchemaMigration

SchemaMigrationSlice is an alias for a slice of pointers to SchemaMigration. This should generally be used opposed to []SchemaMigration.

func (SchemaMigrationSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*SchemaMigrationSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (SchemaMigrationSlice) UpdateAll

func (o SchemaMigrationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Stock

type Stock struct {
	ID       string        `boil:"id" json:"id" toml:"id" yaml:"id"`
	ItemID   string        `boil:"item_id" json:"item_id" toml:"item_id" yaml:"item_id"`
	UnitID   string        `boil:"unit_id" json:"unit_id" toml:"unit_id" yaml:"unit_id"`
	Quantity types.Decimal `boil:"quantity" json:"quantity" toml:"quantity" yaml:"quantity"`

	R *stockR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L stockL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Stock is an object representing the database table.

func FindStock

func FindStock(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Stock, error)

FindStock retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Stock) Delete

func (o *Stock) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Stock record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Stock) Insert

func (o *Stock) 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 (*Stock) Item

func (o *Stock) Item(mods ...qm.QueryMod) itemQuery

Item pointed to by the foreign key.

func (*Stock) Reload

func (o *Stock) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Stock) SetItem

func (o *Stock) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error

SetItem of the stock to the related item. Sets o.R.Item to related. Adds o to related.R.Stocks.

func (*Stock) SetUnit

func (o *Stock) SetUnit(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Unit) error

SetUnit of the stock to the related item. Sets o.R.Unit to related. Adds o to related.R.Stocks.

func (*Stock) Unit

func (o *Stock) Unit(mods ...qm.QueryMod) unitQuery

Unit pointed to by the foreign key.

func (*Stock) Update

func (o *Stock) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Stock. 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 (*Stock) Upsert

func (o *Stock) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 StockHook

type StockHook func(context.Context, boil.ContextExecutor, *Stock) error

StockHook is the signature for custom Stock hook methods

type StockSlice

type StockSlice []*Stock

StockSlice is an alias for a slice of pointers to Stock. This should generally be used opposed to []Stock.

func (StockSlice) DeleteAll

func (o StockSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*StockSlice) ReloadAll

func (o *StockSlice) 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 (StockSlice) UpdateAll

func (o StockSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Unit

type Unit struct {
	ID   string `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name string `boil:"name" json:"name" toml:"name" yaml:"name"`

	R *unitR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L unitL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Unit is an object representing the database table.

func FindUnit

func FindUnit(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Unit, error)

FindUnit retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Unit) AddAllocationItems

func (o *Unit) AddAllocationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AllocationItem) error

AddAllocationItems adds the given related objects to the existing relationships of the unit, optionally inserting them as new records. Appends related to o.R.AllocationItems. Sets related.R.Unit appropriately.

func (*Unit) AddDonationItems

func (o *Unit) AddDonationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DonationItem) error

AddDonationItems adds the given related objects to the existing relationships of the unit, optionally inserting them as new records. Appends related to o.R.DonationItems. Sets related.R.Unit appropriately.

func (*Unit) AddRequestItems

func (o *Unit) AddRequestItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RequestItem) error

AddRequestItems adds the given related objects to the existing relationships of the unit, optionally inserting them as new records. Appends related to o.R.RequestItems. Sets related.R.Unit appropriately.

func (*Unit) AddStocks

func (o *Unit) AddStocks(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Stock) error

AddStocks adds the given related objects to the existing relationships of the unit, optionally inserting them as new records. Appends related to o.R.Stocks. Sets related.R.Unit appropriately.

func (*Unit) AllocationItems

func (o *Unit) AllocationItems(mods ...qm.QueryMod) allocationItemQuery

AllocationItems retrieves all the allocation_item's AllocationItems with an executor.

func (*Unit) Delete

func (o *Unit) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Unit record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Unit) DonationItems

func (o *Unit) DonationItems(mods ...qm.QueryMod) donationItemQuery

DonationItems retrieves all the donation_item's DonationItems with an executor.

func (*Unit) Insert

func (o *Unit) 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 (*Unit) Reload

func (o *Unit) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Unit) RequestItems

func (o *Unit) RequestItems(mods ...qm.QueryMod) requestItemQuery

RequestItems retrieves all the request_item's RequestItems with an executor.

func (*Unit) Stocks

func (o *Unit) Stocks(mods ...qm.QueryMod) stockQuery

Stocks retrieves all the stock's Stocks with an executor.

func (*Unit) Update

func (o *Unit) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Unit. 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 (*Unit) Upsert

func (o *Unit) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 UnitHook

type UnitHook func(context.Context, boil.ContextExecutor, *Unit) error

UnitHook is the signature for custom Unit hook methods

type UnitSlice

type UnitSlice []*Unit

UnitSlice is an alias for a slice of pointers to Unit. This should generally be used opposed to []Unit.

func (UnitSlice) DeleteAll

func (o UnitSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*UnitSlice) ReloadAll

func (o *UnitSlice) 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 (UnitSlice) UpdateAll

func (o UnitSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type User

type User struct {
	ID            string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Email         string      `boil:"email" json:"email" toml:"email" yaml:"email"`
	Password      string      `boil:"password" json:"password,omitempty" toml:"password" yaml:"password"`
	Name          string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	ContactPerson null.String `boil:"contact_person" json:"contact_person,omitempty" toml:"contact_person" yaml:"contact_person,omitempty"`
	ContactNumber null.String `boil:"contact_number" json:"contact_number,omitempty" toml:"contact_number" yaml:"contact_number,omitempty"`
	Role          string      `boil:"role" json:"role" toml:"role" yaml:"role"`

	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) AddAllocatorAllocations

func (o *User) AddAllocatorAllocations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Allocation) error

AddAllocatorAllocations adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.AllocatorAllocations. Sets related.R.Allocator appropriately.

func (*User) AddDonationApplicantRequests

func (o *User) AddDonationApplicantRequests(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Request) error

AddDonationApplicantRequests adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.DonationApplicantRequests. Sets related.R.DonationApplicant appropriately.

func (*User) AddDonatorDonations

func (o *User) AddDonatorDonations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Donation) error

AddDonatorDonations adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.DonatorDonations. Sets related.R.Donator appropriately.

func (*User) AddPasswordResetRequests

func (o *User) AddPasswordResetRequests(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PasswordResetRequest) error

AddPasswordResetRequests adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.PasswordResetRequests. Sets related.R.User appropriately.

func (*User) AllocatorAllocations

func (o *User) AllocatorAllocations(mods ...qm.QueryMod) allocationQuery

AllocatorAllocations retrieves all the allocation's Allocations with an executor via allocator_id column.

func (*User) Delete

func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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) DonationApplicantRequests

func (o *User) DonationApplicantRequests(mods ...qm.QueryMod) requestQuery

DonationApplicantRequests retrieves all the request's Requests with an executor via donation_applicant_id column.

func (*User) DonatorDonations

func (o *User) DonatorDonations(mods ...qm.QueryMod) donationQuery

DonatorDonations retrieves all the donation's Donations with an executor via donator_id column.

func (*User) Insert

func (o *User) 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 (*User) PasswordResetRequests

func (o *User) PasswordResetRequests(mods ...qm.QueryMod) passwordResetRequestQuery

PasswordResetRequests retrieves all the password_reset_request's PasswordResetRequests with an executor.

func (*User) Reload

func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error

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) 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 UserHook

type UserHook func(context.Context, boil.ContextExecutor, *User) error

UserHook is the signature for custom User hook methods

type UserSlice

type UserSlice []*User

UserSlice is an alias for a slice of pointers to User. This should generally be used opposed to []User.

func (UserSlice) DeleteAll

func (o UserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*UserSlice) ReloadAll

func (o *UserSlice) 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 (UserSlice) UpdateAll

func (o UserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL