Ejemplo n.º 1
0
class TestIfNotExistsWithCounterModel(Model):

    id = columns.UUID(primary_key=True, default=lambda: uuid4())
    likes = columns.Counter()
 class model(Model):
     partition = columns.UUID(primary_key=True, default=uuid4)
     counter = columns.Counter()
     text = columns.Text()
 class model(Model):
     partition = columns.UUID(primary_key=True, default=uuid4)
     cluster = columns.Counter()
     cluster.primary_key = True
     counter = columns.Counter()
Ejemplo n.º 4
0
class VideoPlaybackStatsModel(Model):
    """Model class that maps to the video_playback_stats table"""
    __table_name__ = 'video_playback_stats'
    video_id = columns.UUID(primary_key=True, db_field='videoid')
    views = columns.Counter()