# Path: wham/fields.py
# class WhamTextField(WhamFieldMixin, models.TextField):
# 
#     @property
#     def type_repr(self):
#         return 'text'
# 
# class WhamCharField(WhamFieldMixin, models.TextField):
# 
#     @property
#     def type_repr(self):
#         return 'char'
# 
# Path: wham/models.py
# class WhamModel(models.Model):
# 
#     objects = WhamManager()
# 
#     class Meta():
#         abstract = True


from django.db import models
from wham.fields import WhamTextField, WhamCharField
from wham.models import WhamModel

# Create your models here.


class FreebaseMeta:
    base_url = 'https://www.googleapis.com/freebase/v1/'


class Person(WhamModel):

    id = models.CharField(max_length=255, primary_key=True)
    name = WhamTextField()

    class WhamMeta(FreebaseMeta):
        endpoint = 'topic'


class ProgrammingLanguage(WhamModel):


# Path: wham/fields.py
# class WhamTextField(WhamFieldMixin, models.TextField):
# 
#     @property
#     def type_repr(self):
#         return 'text'
# 
# class WhamCharField(WhamFieldMixin, models.TextField):
# 
#     @property
#     def type_repr(self):
#         return 'char'
# 
# Path: wham/models.py
# class WhamModel(models.Model):
# 
#     objects = WhamManager()
# 
#     class Meta():
#         abstract = True


# Path: wham/apis/freebase/models.py
from django.db import models
from wham.fields import WhamTextField, WhamCharField
from wham.models import WhamModel


# Create your models here.


class FreebaseMeta:
    base_url = 'https://www.googleapis.com/freebase/v1/'


class Person(WhamModel):

    id = models.CharField(max_length=255, primary_key=True)
    name = WhamTextField()

    class WhamMeta(FreebaseMeta):
        endpoint = 'topic'


class ProgrammingLanguage(WhamModel):


    id = WhamCharField(max_length=255, primary_key=True)