// The executor is authz-free on purpose: the descriptor's `guards:` already // refused an unscoped caller before this ran. Tenant scoping is likewise // automatic — `notes` carries `tenant()`, so the runtime AND-merges // `eq('tenantId', subject.tenantId)` into the query. import type { AppContext } from '@voltro/runtime' import { database } from '../database/schema' const route = (_input: Record, _ctx: AppContext) => database.notes.orderBy('id', 'desc').limit(100) export default route