class RenamedTest(cqlengine.Model): __keyspace__ = 'whatever' __table_name__ = 'manual_name' id = cqlengine.UUID(primary_key=True) data = cqlengine.Text()
class ModelWithPartitionKeys(cqlengine.Model): id = columns.UUID(primary_key=True, default=lambda: uuid4()) c1 = cqlengine.Text(primary_key=True) p1 = cqlengine.Text(partition_key=True) p2 = cqlengine.Text(partition_key=True)