40

How a ticket system works
A ticket system - one you see at festivals - works like this: when a user pays for their ticket, a row is added to the database with a column named is_scanned, whose default value is set to false.
As soon as a guard at the festival scans the barcode (containing an ID, ...