import type { AppContext } from '@voltro/runtime' const execute = async ( input: { name: string; email: string; ssn: string }, ctx: AppContext, ) => { // ssn is encrypted on write by the store middleware — we just pass plaintext. const row = await ctx.store.insert('profiles', { name: input.name, email: input.email, ssn: input.ssn, }) // Don't echo the ssn back here — read it via profiles.get when you need it. return { id: row['id'] as string, name: row['name'] as string, email: row['email'] as string } } export default execute