func AddVoteHook(hookPoint boil.HookPoint, voteHook VoteHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		voteBeforeInsertHooks = append(voteBeforeInsertHooks, voteHook)
	case boil.BeforeUpdateHook:
		voteBeforeUpdateHooks = append(voteBeforeUpdateHooks, voteHook)
	case boil.BeforeDeleteHook:
		voteBeforeDeleteHooks = append(voteBeforeDeleteHooks, voteHook)
	case boil.BeforeUpsertHook:
		voteBeforeUpsertHooks = append(voteBeforeUpsertHooks, voteHook)
	case boil.AfterInsertHook:
		voteAfterInsertHooks = append(voteAfterInsertHooks, voteHook)
	case boil.AfterSelectHook:
		voteAfterSelectHooks = append(voteAfterSelectHooks, voteHook)
	case boil.AfterUpdateHook:
		voteAfterUpdateHooks = append(voteAfterUpdateHooks, voteHook)
	case boil.AfterDeleteHook:
		voteAfterDeleteHooks = append(voteAfterDeleteHooks, voteHook)
	case boil.AfterUpsertHook:
		voteAfterUpsertHooks = append(voteAfterUpsertHooks, voteHook)
	}
}
// AddVoteHook registers your hook function for all future operations.
AddVoteHook registers your hook function for all future operations.
// AddVoteHook registers your hook function for all future operations .
func AddVoteHook(hookPoint boil.HookPoint, voteHook VoteHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		voteBeforeInsertHooks = append(voteBeforeInsertHooks, voteHook)
	case boil.BeforeUpdateHook:
		voteBeforeUpdateHooks = append(voteBeforeUpdateHooks, voteHook)
	case boil.BeforeDeleteHook:
		voteBeforeDeleteHooks = append(voteBeforeDeleteHooks, voteHook)
	case boil.BeforeUpsertHook:
		voteBeforeUpsertHooks = append(voteBeforeUpsertHooks, voteHook)
	case boil.AfterInsertHook:
		voteAfterInsertHooks = append(voteAfterInsertHooks, voteHook)
	case boil.AfterSelectHook:
		voteAfterSelectHooks = append(voteAfterSelectHooks, voteHook)
	case boil.AfterUpdateHook:
		voteAfterUpdateHooks = append(voteAfterUpdateHooks, voteHook)
	case boil.AfterDeleteHook:
		voteAfterDeleteHooks = append(voteAfterDeleteHooks, voteHook)
	case boil.AfterUpsertHook:
		voteAfterUpsertHooks = append(voteAfterUpsertHooks, voteHook)
	}
}
func AddVoteHook ( hookPoint boil . HookPoint , voteHook VoteHook ) { switch hookPoint { case boil . BeforeInsertHook : voteBeforeInsertHooks = append ( voteBeforeInsertHooks , voteHook ) case boil . BeforeUpdateHook : voteBeforeUpdateHooks = append ( voteBeforeUpdateHooks , voteHook ) case boil . BeforeDeleteHook : voteBeforeDeleteHooks = append ( voteBeforeDeleteHooks , voteHook ) case boil . BeforeUpsertHook : voteBeforeUpsertHooks = append ( voteBeforeUpsertHooks , voteHook ) case boil . AfterInsertHook : voteAfterInsertHooks = append ( voteAfterInsertHooks , voteHook ) case boil . AfterSelectHook : voteAfterSelectHooks = append ( voteAfterSelectHooks , voteHook ) case boil . AfterUpdateHook : voteAfterUpdateHooks = append ( voteAfterUpdateHooks , voteHook ) case boil . AfterDeleteHook : voteAfterDeleteHooks = append ( voteAfterDeleteHooks , voteHook ) case boil . AfterUpsertHook : voteAfterUpsertHooks = append ( voteAfterUpsertHooks , voteHook ) } }
AddVoteHook registers your hook function for all future operations.
AddVoteHook registers your hook function for all future operations .