
            <a href="/docs/go-event-hooks">Record API and other related hooks</a>
            works only with the
            <code>models.Record</code> and you&#39;ll have to manually convert the <code>models.Record</code> to your
            custom struct if you want to use it inside the event hooks.
        </p>
        <p class="txt-bold">There are plans to improve this workflow in the future with codegeneration (see
            <a href="https://github.com/pocketbase/pocketbase/discussions/2697#discuss