An event happens at a venue and sells several ticket types, each with a price, a quota and a sales window. An order is one purchase of possibly several ticket types; every seat sold becomes a ticket with its own code, so the door can check each person in once. Promo codes discount an order and count their uses.
$ npx vela create my-app --schema event-ticketingEvery collection, field and relation above becomes a PocketBase migration in the new project. Change any of it afterwards with vela generate migration --ai, which opens this same diagram as an editor.