# Path: apps/base/models.py
# class Timestampable(models.Model):
#     created_date = models.DateTimeField(auto_now_add=True)
#     modified_date = models.DateTimeField(auto_now=True)
# 
#     class Meta:
#         abstract = True


from django.db import models
from apps.base.models import Timestampable


class Transaction(Timestampable):
    address = models.CharField(max_length=255)
    vhost = models.CharField(max_length=255, default='default')
    agent_ping_time = models.DateTimeField(blank=True)
    time_avg = models.FloatField(default=999, blank=True)

    class Meta:

# Path: apps/base/models.py
# class Timestampable(models.Model):
#     created_date = models.DateTimeField(auto_now_add=True)
#     modified_date = models.DateTimeField(auto_now=True)
# 
#     class Meta:
#         abstract = True


# Path: apps/transaction/models.py
from django.db import models
from apps.base.models import Timestampable



class Transaction(Timestampable):
    address = models.CharField(max_length=255)
    vhost = models.CharField(max_length=255, default='default')
    agent_ping_time = models.DateTimeField(blank=True)
    time_avg = models.FloatField(default=999, blank=True)

    class Meta:

        db_table = 'transactions'