from django.db import models
import uuid
from datetime import datetime
from cassandra.cqlengine import columns
from django_cassandra_engine.models import DjangoCassandraModel

# Create your models here.
class PostModel(DjangoCassandraModel):
    id = columns.UUID(primary_key=True, default=uuid.uuid4)
    title = columns.Text(required=True)
    body = columns.Text(required=True)
    created_at = columns.DateTime(default=datetime.now)
[((9, 9, 9, 59), 'cassandra.cqlengine.columns.UUID', 'columns.UUID', (), '', False, 'from cassandra.cqlengine import columns\n'), ((10, 12, 10, 39), 'cassandra.cqlengine.columns.Text', 'columns.Text', (), '', False, 'from cassandra.cqlengine import columns\n'), ((11, 11, 11, 38), 'cassandra.cqlengine.columns.Text', 'columns.Text', (), '', False, 'from cassandra.cqlengine import columns\n'), ((12, 17, 12, 55), 'cassandra.cqlengine.columns.DateTime', 'columns.DateTime', (), '', False, 'from cassandra.cqlengine import columns\n')]