Models for the card part of the database