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)
[((251, 301), 'cassandra.cqlengine.columns.UUID', 'columns.UUID', ([], {'primary_key': '(True)', 'default': 'uuid.uuid4'}), '(primary_key=True, default=uuid.uuid4)\n', (263, 301), False, 'from cassandra.cqlengine import columns\n'), ((314, 341), 'cassandra.cqlengine.columns.Text', 'columns.Text', ([], {'required': '(True)'}), '(required=True)\n', (326, 341), False, 'from cassandra.cqlengine import columns\n'), ((353, 380), 'cassandra.cqlengine.columns.Text', 'columns.Text', ([], {'required': '(True)'}), '(required=True)\n', (365, 380), False, 'from cassandra.cqlengine import columns\n'), ((398, 436), 'cassandra.cqlengine.columns.DateTime', 'columns.DateTime', ([], {'default': 'datetime.now'}), '(default=datetime.now)\n', (414, 436), False, 'from cassandra.cqlengine import columns\n')]