Implementing single table inheritance