# Path: locksmith/common.py
# KEY_STATUSES = (
#     ('U', 'Unactivated'),
#     ('A', 'Active'),
#     ('S', 'Suspended')
# )


import datetime
from django.db import models
from locksmith.common import KEY_STATUSES

class ApiKey(models.Model):
    key = models.CharField(max_length=32, primary_key=True)
    email = models.EmailField('Email Address')

# Path: locksmith/common.py
# KEY_STATUSES = (
#     ('U', 'Unactivated'),
#     ('A', 'Active'),
#     ('S', 'Suspended')
# )


# Path: locksmith/auth/models.py
import datetime
from django.db import models
from locksmith.common import KEY_STATUSES


class ApiKey(models.Model):
    key = models.CharField(max_length=32, primary_key=True)
    email = models.EmailField('Email Address')

    status = models.CharField(max_length=1, choices=KEY_STATUSES, default='U')