Generator-based Models for rethinkdb.