added primary key to examples

This commit is contained in:
Jon Haddad
2014-08-12 16:10:32 -07:00
parent 9b2009830e
commit 40eb10ce2f

View File

@@ -23,6 +23,7 @@ This example defines a Person table, with the columns ``first_name`` and ``last_
from cqlengine.models import Model
class Person(Model):
id = columns.UUID(primary_key=True)
first_name = columns.Text()
last_name = columns.Text()
@@ -145,6 +146,7 @@ Model Methods
#using the person model from earlier:
class Person(Model):
id = columns.UUID(primary_key=True)
first_name = columns.Text()
last_name = columns.Text()