from django.db import models
from django.contrib.auth.models import User
from django.conf import settings


    
class Profile(models.Model):
    
    user = models.OneToOneField(User)
    name = models.CharField(max_length=100, blank=True, verbose_name="name", db_index=True)
    headline = models.CharField(max_length=512, blank=True, verbose_name="name", db_index=True)

    secret = models.CharField(max_length=100, blank=True, verbose_name="secret_key", db_index=True)

    country = models.CharField(max_length=10, blank=True, verbose_name="country", db_index=True)
    language = models.CharField(max_length=10, blank=True, verbose_name="language", db_index=True)

    mobile = models.CharField(max_length=20, blank=True, verbose_name="mobile_number_1")
    picture = models.URLField(blank=True, verbose_name="picture")

    oauth_token = models.CharField(max_length=200, blank=True)
    oauth_secret = models.CharField(max_length=200, blank=True)
    
    street_address_1 = models.CharField(max_length=100, blank=True, verbose_name="street_address_1")
    street_address_2 = models.CharField(max_length=100, blank=True, verbose_name="street_address_2")
    street_address_3 = models.CharField(max_length=100, blank=True, verbose_name="street_address_3")

    initial_assessment = models.BooleanField(default=False)
    