Enums can be used with databases, but you'll likely need to convert them to their primitive types for storage and convert them back when retrieving the data.