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, 'cassandra.cqlengine.columns.UUID', 'columns.UUID', False, 'from cassandra.cqlengine import columns\n'), (10, 'cassandra.cqlengine.columns.Text', 'columns.Text', False, 'from cassandra.cqlengine import columns\n'), (11, 'cassandra.cqlengine.columns.Text', 'columns.Text', False, 'from cassandra.cqlengine import columns\n'), (12, 'cassandra.cqlengine.columns.DateTime', 'columns.DateTime', False, 'from cassandra.cqlengine import columns\n')]