# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'Badgets'
        db.create_table(u'users_badgets', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('medal_name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('medal_icon', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
        ))
        db.send_create_signal(u'users', ['Badgets'])

        # Adding model 'User'
        db.create_table(u'users_user', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('password', self.gf('django.db.models.fields.CharField')(max_length=128)),
            ('last_login', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
            ('first_name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('last_name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('birthday', self.gf('django.db.models.fields.DateField')()),
            ('username', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
            ('email', self.gf('django.db.models.fields.EmailField')(max_length=75)),
            ('photo', self.gf('django.db.models.fields.files.ImageField')(max_length=100, blank=True)),
            ('cover', self.gf('django.db.models.fields.files.ImageField')(max_length=100, blank=True)),
            ('city', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['geographics.City'])),
            ('rating', self.gf('django.db.models.fields.DecimalField')(default=0.0, max_digits=2, decimal_places=1)),
            ('is_active', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('is_admin', self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal(u'users', ['User'])

        # Adding M2M table for field medals on 'User'
        m2m_table_name = db.shorten_name(u'users_user_medals')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('user', models.ForeignKey(orm[u'users.user'], null=False)),
            ('badgets', models.ForeignKey(orm[u'users.badgets'], null=False))
        ))
        db.create_unique(m2m_table_name, ['user_id', 'badgets_id'])

        # Adding M2M table for field following on 'User'
        m2m_table_name = db.shorten_name(u'users_user_following')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('from_user', models.ForeignKey(orm[u'users.user'], null=False)),
            ('to_user', models.ForeignKey(orm[u'users.user'], null=False))
        ))
        db.create_unique(m2m_table_name, ['from_user_id', 'to_user_id'])

        # Adding model 'Contact'
        db.create_table(u'users_contact', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['users.User'], unique=True)),
            ('email', self.gf('django.db.models.fields.EmailField')(max_length=75)),
            ('mobile_phone', self.gf('django.db.models.fields.BigIntegerField')()),
        ))
        db.send_create_signal(u'users', ['Contact'])


    def backwards(self, orm):
        # Deleting model 'Badgets'
        db.delete_table(u'users_badgets')

        # Deleting model 'User'
        db.delete_table(u'users_user')

        # Removing M2M table for field medals on 'User'
        db.delete_table(db.shorten_name(u'users_user_medals'))

        # Removing M2M table for field following on 'User'
        db.delete_table(db.shorten_name(u'users_user_following'))

        # Deleting model 'Contact'
        db.delete_table(u'users_contact')


    models = {
        u'geographics.city': {
            'Meta': {'object_name': 'City'},
            'city_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'province': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['geographics.Province']"})
        },
        u'geographics.province': {
            'Meta': {'object_name': 'Province'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'province_name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        },
        u'users.badgets': {
            'Meta': {'object_name': 'Badgets'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'medal_icon': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
            'medal_name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        },
        u'users.contact': {
            'Meta': {'object_name': 'Contact'},
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'mobile_phone': ('django.db.models.fields.BigIntegerField', [], {}),
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['users.User']", 'unique': 'True'})
        },
        u'users.user': {
            'Meta': {'object_name': 'User'},
            'birthday': ('django.db.models.fields.DateField', [], {}),
            'city': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['geographics.City']"}),
            'cover': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'following': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'follows'", 'blank': 'True', 'to': u"orm['users.User']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_admin': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'medals': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'medals'", 'blank': 'True', 'to': u"orm['users.Badgets']"}),
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'photo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'}),
            'rating': ('django.db.models.fields.DecimalField', [], {'default': '0.0', 'max_digits': '2', 'decimal_places': '1'}),
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
        }
    }

    complete_apps = ['users']
612460397615ac84a6da122820404f0d33d42737
<mask token>


class Migration(SchemaMigration):
    <mask token>

    def backwards(self, orm):
        db.delete_table(u'users_badgets')
        db.delete_table(u'users_user')
        db.delete_table(db.shorten_name(u'users_user_medals'))
        db.delete_table(db.shorten_name(u'users_user_following'))
        db.delete_table(u'users_contact')
    <mask token>
    <mask token>

<mask token>


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.create_table(u'users_badgets', ((u'id', self.gf(
            'django.db.models.fields.AutoField')(primary_key=True)), (
            'medal_name', self.gf('django.db.models.fields.CharField')(
            max_length=255)), ('medal_icon', self.gf(
            'django.db.models.fields.files.ImageField')(max_length=100))))
        db.send_create_signal(u'users', ['Badgets'])
        db.create_table(u'users_user', ((u'id', self.gf(
            'django.db.models.fields.AutoField')(primary_key=True)), (
            'password', self.gf('django.db.models.fields.CharField')(
            max_length=128)), ('last_login', self.gf(
            'django.db.models.fields.DateTimeField')(default=datetime.
            datetime.now)), ('first_name', self.gf(
            'django.db.models.fields.CharField')(max_length=255)), (
            'last_name', self.gf('django.db.models.fields.CharField')(
            max_length=255)), ('birthday', self.gf(
            'django.db.models.fields.DateField')()), ('username', self.gf(
            'django.db.models.fields.CharField')(unique=True, max_length=
            255)), ('email', self.gf('django.db.models.fields.EmailField')(
            max_length=75)), ('photo', self.gf(
            'django.db.models.fields.files.ImageField')(max_length=100,
            blank=True)), ('cover', self.gf(
            'django.db.models.fields.files.ImageField')(max_length=100,
            blank=True)), ('city', self.gf(
            'django.db.models.fields.related.ForeignKey')(default=1, to=orm
            ['geographics.City'])), ('rating', self.gf(
            'django.db.models.fields.DecimalField')(default=0.0, max_digits
            =2, decimal_places=1)), ('is_active', self.gf(
            'django.db.models.fields.BooleanField')(default=False)), (
            'is_admin', self.gf('django.db.models.fields.BooleanField')(
            default=False))))
        db.send_create_signal(u'users', ['User'])
        m2m_table_name = db.shorten_name(u'users_user_medals')
        db.create_table(m2m_table_name, (('id', models.AutoField(
            verbose_name='ID', primary_key=True, auto_created=True)), (
            'user', models.ForeignKey(orm[u'users.user'], null=False)), (
            'badgets', models.ForeignKey(orm[u'users.badgets'], null=False))))
        db.create_unique(m2m_table_name, ['user_id', 'badgets_id'])
        m2m_table_name = db.shorten_name(u'users_user_following')
        db.create_table(m2m_table_name, (('id', models.AutoField(
            verbose_name='ID', primary_key=True, auto_created=True)), (
            'from_user', models.ForeignKey(orm[u'users.user'], null=False)),
            ('to_user', models.ForeignKey(orm[u'users.user'], null=False))))
        db.create_unique(m2m_table_name, ['from_user_id', 'to_user_id'])
        db.create_table(u'users_contact', ((u'id', self.gf(
            'django.db.models.fields.AutoField')(primary_key=True)), (
            'user', self.gf('django.db.models.fields.related.OneToOneField'
            )(to=orm['users.User'], unique=True)), ('email', self.gf(
            'django.db.models.fields.EmailField')(max_length=75)), (
            'mobile_phone', self.gf(
            'django.db.models.fields.BigIntegerField')())))
        db.send_create_signal(u'users', ['Contact'])

    def backwards(self, orm):
        db.delete_table(u'users_badgets')
        db.delete_table(u'users_user')
        db.delete_table(db.shorten_name(u'users_user_medals'))
        db.delete_table(db.shorten_name(u'users_user_following'))
        db.delete_table(u'users_contact')
    <mask token>
    <mask token>

<mask token>


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.create_table(u'users_badgets', ((u'id', self.gf(
            'django.db.models.fields.AutoField')(primary_key=True)), (
            'medal_name', self.gf('django.db.models.fields.CharField')(
            max_length=255)), ('medal_icon', self.gf(
            'django.db.models.fields.files.ImageField')(max_length=100))))
        db.send_create_signal(u'users', ['Badgets'])
        db.create_table(u'users_user', ((u'id', self.gf(
            'django.db.models.fields.AutoField')(primary_key=True)), (
            'password', self.gf('django.db.models.fields.CharField')(
            max_length=128)), ('last_login', self.gf(
            'django.db.models.fields.DateTimeField')(default=datetime.
            datetime.now)), ('first_name', self.gf(
            'django.db.models.fields.CharField')(max_length=255)), (
            'last_name', self.gf('django.db.models.fields.CharField')(
            max_length=255)), ('birthday', self.gf(
            'django.db.models.fields.DateField')()), ('username', self.gf(
            'django.db.models.fields.CharField')(unique=True, max_length=
            255)), ('email', self.gf('django.db.models.fields.EmailField')(
            max_length=75)), ('photo', self.gf(
            'django.db.models.fields.files.ImageField')(max_length=100,
            blank=True)), ('cover', self.gf(
            'django.db.models.fields.files.ImageField')(max_length=100,
            blank=True)), ('city', self.gf(
            'django.db.models.fields.related.ForeignKey')(default=1, to=orm
            ['geographics.City'])), ('rating', self.gf(
            'django.db.models.fields.DecimalField')(default=0.0, max_digits
            =2, decimal_places=1)), ('is_active', self.gf(
            'django.db.models.fields.BooleanField')(default=False)), (
            'is_admin', self.gf('django.db.models.fields.BooleanField')(
            default=False))))
        db.send_create_signal(u'users', ['User'])
        m2m_table_name = db.shorten_name(u'users_user_medals')
        db.create_table(m2m_table_name, (('id', models.AutoField(
            verbose_name='ID', primary_key=True, auto_created=True)), (
            'user', models.ForeignKey(orm[u'users.user'], null=False)), (
            'badgets', models.ForeignKey(orm[u'users.badgets'], null=False))))
        db.create_unique(m2m_table_name, ['user_id', 'badgets_id'])
        m2m_table_name = db.shorten_name(u'users_user_following')
        db.create_table(m2m_table_name, (('id', models.AutoField(
            verbose_name='ID', primary_key=True, auto_created=True)), (
            'from_user', models.ForeignKey(orm[u'users.user'], null=False)),
            ('to_user', models.ForeignKey(orm[u'users.user'], null=False))))
        db.create_unique(m2m_table_name, ['from_user_id', 'to_user_id'])
        db.create_table(u'users_contact', ((u'id', self.gf(
            'django.db.models.fields.AutoField')(primary_key=True)), (
            'user', self.gf('django.db.models.fields.related.OneToOneField'
            )(to=orm['users.User'], unique=True)), ('email', self.gf(
            'django.db.models.fields.EmailField')(max_length=75)), (
            'mobile_phone', self.gf(
            'django.db.models.fields.BigIntegerField')())))
        db.send_create_signal(u'users', ['Contact'])

    def backwards(self, orm):
        db.delete_table(u'users_badgets')
        db.delete_table(u'users_user')
        db.delete_table(db.shorten_name(u'users_user_medals'))
        db.delete_table(db.shorten_name(u'users_user_following'))
        db.delete_table(u'users_contact')
    models = {u'geographics.city': {'Meta': {'object_name': 'City'},
        'city_name': ('django.db.models.fields.CharField', [], {
        'max_length': '255'}), u'id': ('django.db.models.fields.AutoField',
        [], {'primary_key': 'True'}), 'province': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['geographics.Province']"})}, u'geographics.province': {'Meta':
        {'object_name': 'Province'}, u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'province_name': ('django.db.models.fields.CharField', [], {
        'max_length': '255'})}, u'users.badgets': {'Meta': {'object_name':
        'Badgets'}, u'id': ('django.db.models.fields.AutoField', [], {
        'primary_key': 'True'}), 'medal_icon': (
        'django.db.models.fields.files.ImageField', [], {'max_length':
        '100'}), 'medal_name': ('django.db.models.fields.CharField', [], {
        'max_length': '255'})}, u'users.contact': {'Meta': {'object_name':
        'Contact'}, 'email': ('django.db.models.fields.EmailField', [], {
        'max_length': '75'}), u'id': ('django.db.models.fields.AutoField',
        [], {'primary_key': 'True'}), 'mobile_phone': (
        'django.db.models.fields.BigIntegerField', [], {}), 'user': (
        'django.db.models.fields.related.OneToOneField', [], {'to':
        u"orm['users.User']", 'unique': 'True'})}, u'users.user': {'Meta':
        {'object_name': 'User'}, 'birthday': (
        'django.db.models.fields.DateField', [], {}), 'city': (
        'django.db.models.fields.related.ForeignKey', [], {'default': '1',
        'to': u"orm['geographics.City']"}), 'cover': (
        'django.db.models.fields.files.ImageField', [], {'max_length':
        '100', 'blank': 'True'}), 'email': (
        'django.db.models.fields.EmailField', [], {'max_length': '75'}),
        'first_name': ('django.db.models.fields.CharField', [], {
        'max_length': '255'}), 'following': (
        'django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'related_name': "'follows'", 'blank':
        'True', 'to': u"orm['users.User']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'is_active': ('django.db.models.fields.BooleanField', [], {
        'default': 'False'}), 'is_admin': (
        'django.db.models.fields.BooleanField', [], {'default': 'False'}),
        'last_login': ('django.db.models.fields.DateTimeField', [], {
        'default': 'datetime.datetime.now'}), 'last_name': (
        'django.db.models.fields.CharField', [], {'max_length': '255'}),
        'medals': ('django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'related_name': "'medals'", 'blank': 'True',
        'to': u"orm['users.Badgets']"}), 'password': (
        'django.db.models.fields.CharField', [], {'max_length': '128'}),
        'photo': ('django.db.models.fields.files.ImageField', [], {
        'max_length': '100', 'blank': 'True'}), 'rating': (
        'django.db.models.fields.DecimalField', [], {'default': '0.0',
        'max_digits': '2', 'decimal_places': '1'}), 'username': (
        'django.db.models.fields.CharField', [], {'unique': 'True',
        'max_length': '255'})}}
    complete_apps = ['users']

from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.create_table(u'users_badgets', ((u'id', self.gf(
            'django.db.models.fields.AutoField')(primary_key=True)), (
            'medal_name', self.gf('django.db.models.fields.CharField')(
            max_length=255)), ('medal_icon', self.gf(
            'django.db.models.fields.files.ImageField')(max_length=100))))
        db.send_create_signal(u'users', ['Badgets'])
        db.create_table(u'users_user', ((u'id', self.gf(
            'django.db.models.fields.AutoField')(primary_key=True)), (
            'password', self.gf('django.db.models.fields.CharField')(
            max_length=128)), ('last_login', self.gf(
            'django.db.models.fields.DateTimeField')(default=datetime.
            datetime.now)), ('first_name', self.gf(
            'django.db.models.fields.CharField')(max_length=255)), (
            'last_name', self.gf('django.db.models.fields.CharField')(
            max_length=255)), ('birthday', self.gf(
            'django.db.models.fields.DateField')()), ('username', self.gf(
            'django.db.models.fields.CharField')(unique=True, max_length=
            255)), ('email', self.gf('django.db.models.fields.EmailField')(
            max_length=75)), ('photo', self.gf(
            'django.db.models.fields.files.ImageField')(max_length=100,
            blank=True)), ('cover', self.gf(
            'django.db.models.fields.files.ImageField')(max_length=100,
            blank=True)), ('city', self.gf(
            'django.db.models.fields.related.ForeignKey')(default=1, to=orm
            ['geographics.City'])), ('rating', self.gf(
            'django.db.models.fields.DecimalField')(default=0.0, max_digits
            =2, decimal_places=1)), ('is_active', self.gf(
            'django.db.models.fields.BooleanField')(default=False)), (
            'is_admin', self.gf('django.db.models.fields.BooleanField')(
            default=False))))
        db.send_create_signal(u'users', ['User'])
        m2m_table_name = db.shorten_name(u'users_user_medals')
        db.create_table(m2m_table_name, (('id', models.AutoField(
            verbose_name='ID', primary_key=True, auto_created=True)), (
            'user', models.ForeignKey(orm[u'users.user'], null=False)), (
            'badgets', models.ForeignKey(orm[u'users.badgets'], null=False))))
        db.create_unique(m2m_table_name, ['user_id', 'badgets_id'])
        m2m_table_name = db.shorten_name(u'users_user_following')
        db.create_table(m2m_table_name, (('id', models.AutoField(
            verbose_name='ID', primary_key=True, auto_created=True)), (
            'from_user', models.ForeignKey(orm[u'users.user'], null=False)),
            ('to_user', models.ForeignKey(orm[u'users.user'], null=False))))
        db.create_unique(m2m_table_name, ['from_user_id', 'to_user_id'])
        db.create_table(u'users_contact', ((u'id', self.gf(
            'django.db.models.fields.AutoField')(primary_key=True)), (
            'user', self.gf('django.db.models.fields.related.OneToOneField'
            )(to=orm['users.User'], unique=True)), ('email', self.gf(
            'django.db.models.fields.EmailField')(max_length=75)), (
            'mobile_phone', self.gf(
            'django.db.models.fields.BigIntegerField')())))
        db.send_create_signal(u'users', ['Contact'])

    def backwards(self, orm):
        db.delete_table(u'users_badgets')
        db.delete_table(u'users_user')
        db.delete_table(db.shorten_name(u'users_user_medals'))
        db.delete_table(db.shorten_name(u'users_user_following'))
        db.delete_table(u'users_contact')
    models = {u'geographics.city': {'Meta': {'object_name': 'City'},
        'city_name': ('django.db.models.fields.CharField', [], {
        'max_length': '255'}), u'id': ('django.db.models.fields.AutoField',
        [], {'primary_key': 'True'}), 'province': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['geographics.Province']"})}, u'geographics.province': {'Meta':
        {'object_name': 'Province'}, u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'province_name': ('django.db.models.fields.CharField', [], {
        'max_length': '255'})}, u'users.badgets': {'Meta': {'object_name':
        'Badgets'}, u'id': ('django.db.models.fields.AutoField', [], {
        'primary_key': 'True'}), 'medal_icon': (
        'django.db.models.fields.files.ImageField', [], {'max_length':
        '100'}), 'medal_name': ('django.db.models.fields.CharField', [], {
        'max_length': '255'})}, u'users.contact': {'Meta': {'object_name':
        'Contact'}, 'email': ('django.db.models.fields.EmailField', [], {
        'max_length': '75'}), u'id': ('django.db.models.fields.AutoField',
        [], {'primary_key': 'True'}), 'mobile_phone': (
        'django.db.models.fields.BigIntegerField', [], {}), 'user': (
        'django.db.models.fields.related.OneToOneField', [], {'to':
        u"orm['users.User']", 'unique': 'True'})}, u'users.user': {'Meta':
        {'object_name': 'User'}, 'birthday': (
        'django.db.models.fields.DateField', [], {}), 'city': (
        'django.db.models.fields.related.ForeignKey', [], {'default': '1',
        'to': u"orm['geographics.City']"}), 'cover': (
        'django.db.models.fields.files.ImageField', [], {'max_length':
        '100', 'blank': 'True'}), 'email': (
        'django.db.models.fields.EmailField', [], {'max_length': '75'}),
        'first_name': ('django.db.models.fields.CharField', [], {
        'max_length': '255'}), 'following': (
        'django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'related_name': "'follows'", 'blank':
        'True', 'to': u"orm['users.User']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'is_active': ('django.db.models.fields.BooleanField', [], {
        'default': 'False'}), 'is_admin': (
        'django.db.models.fields.BooleanField', [], {'default': 'False'}),
        'last_login': ('django.db.models.fields.DateTimeField', [], {
        'default': 'datetime.datetime.now'}), 'last_name': (
        'django.db.models.fields.CharField', [], {'max_length': '255'}),
        'medals': ('django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'related_name': "'medals'", 'blank': 'True',
        'to': u"orm['users.Badgets']"}), 'password': (
        'django.db.models.fields.CharField', [], {'max_length': '128'}),
        'photo': ('django.db.models.fields.files.ImageField', [], {
        'max_length': '100', 'blank': 'True'}), 'rating': (
        'django.db.models.fields.DecimalField', [], {'default': '0.0',
        'max_digits': '2', 'decimal_places': '1'}), 'username': (
        'django.db.models.fields.CharField', [], {'unique': 'True',
        'max_length': '255'})}}
    complete_apps = ['users']

# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'Badgets'
        db.create_table(u'users_badgets', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('medal_name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('medal_icon', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
        ))
        db.send_create_signal(u'users', ['Badgets'])

        # Adding model 'User'
        db.create_table(u'users_user', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('password', self.gf('django.db.models.fields.CharField')(max_length=128)),
            ('last_login', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
            ('first_name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('last_name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('birthday', self.gf('django.db.models.fields.DateField')()),
            ('username', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
            ('email', self.gf('django.db.models.fields.EmailField')(max_length=75)),
            ('photo', self.gf('django.db.models.fields.files.ImageField')(max_length=100, blank=True)),
            ('cover', self.gf('django.db.models.fields.files.ImageField')(max_length=100, blank=True)),
            ('city', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['geographics.City'])),
            ('rating', self.gf('django.db.models.fields.DecimalField')(default=0.0, max_digits=2, decimal_places=1)),
            ('is_active', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('is_admin', self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal(u'users', ['User'])

        # Adding M2M table for field medals on 'User'
        m2m_table_name = db.shorten_name(u'users_user_medals')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('user', models.ForeignKey(orm[u'users.user'], null=False)),
            ('badgets', models.ForeignKey(orm[u'users.badgets'], null=False))
        ))
        db.create_unique(m2m_table_name, ['user_id', 'badgets_id'])

        # Adding M2M table for field following on 'User'
        m2m_table_name = db.shorten_name(u'users_user_following')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('from_user', models.ForeignKey(orm[u'users.user'], null=False)),
            ('to_user', models.ForeignKey(orm[u'users.user'], null=False))
        ))
        db.create_unique(m2m_table_name, ['from_user_id', 'to_user_id'])

        # Adding model 'Contact'
        db.create_table(u'users_contact', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['users.User'], unique=True)),
            ('email', self.gf('django.db.models.fields.EmailField')(max_length=75)),
            ('mobile_phone', self.gf('django.db.models.fields.BigIntegerField')()),
        ))
        db.send_create_signal(u'users', ['Contact'])


    def backwards(self, orm):
        # Deleting model 'Badgets'
        db.delete_table(u'users_badgets')

        # Deleting model 'User'
        db.delete_table(u'users_user')

        # Removing M2M table for field medals on 'User'
        db.delete_table(db.shorten_name(u'users_user_medals'))

        # Removing M2M table for field following on 'User'
        db.delete_table(db.shorten_name(u'users_user_following'))

        # Deleting model 'Contact'
        db.delete_table(u'users_contact')


    models = {
        u'geographics.city': {
            'Meta': {'object_name': 'City'},
            'city_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'province': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['geographics.Province']"})
        },
        u'geographics.province': {
            'Meta': {'object_name': 'Province'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'province_name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        },
        u'users.badgets': {
            'Meta': {'object_name': 'Badgets'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'medal_icon': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
            'medal_name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        },
        u'users.contact': {
            'Meta': {'object_name': 'Contact'},
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'mobile_phone': ('django.db.models.fields.BigIntegerField', [], {}),
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['users.User']", 'unique': 'True'})
        },
        u'users.user': {
            'Meta': {'object_name': 'User'},
            'birthday': ('django.db.models.fields.DateField', [], {}),
            'city': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['geographics.City']"}),
            'cover': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'following': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'follows'", 'blank': 'True', 'to': u"orm['users.User']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_admin': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'medals': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'medals'", 'blank': 'True', 'to': u"orm['users.Badgets']"}),
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'photo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'}),
            'rating': ('django.db.models.fields.DecimalField', [], {'default': '0.0', 'max_digits': '2', 'decimal_places': '1'}),
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
        }
    }

    complete_apps = ['users']