Stock is never edited in place: a stock level is the sum of movements, each one a receipt, a sale, a transfer or an adjustment with a reason. Variants carry the SKU, the barcode and the price; the product holds what the variants share. Purchase orders bring stock in from a supplier and are received line by line.
$ npx vela create my-app --schema inventoryCada colección, campo y relación de arriba se convierte en una migración de PocketBase en el nuevo proyecto. Cambia lo que quieras después con vela generate migration --ai, que abre este mismo diagrama como editor.