# Generated by Django 2.1 on 2018-08-07 07:49

from django.conf import settings
from django.db import migrations, models
import django.utils.timezone


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Member',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('email', models.EmailField(max_length=255, unique=True, verbose_name='邮箱')),
                ('username', models.CharField(max_length=16, unique=True, verbose_name='用户名')),
                ('weibo_id', models.CharField(blank=True, max_length=30, verbose_name='新浪微博')),
                ('blog', models.CharField(blank=True, max_length=200, verbose_name='个人网站')),
                ('location', models.CharField(blank=True, max_length=10, verbose_name='城市')),
                ('profile', models.CharField(blank=True, max_length=140, verbose_name='个人简介')),
                ('avatar', models.CharField(blank=True, max_length=128, verbose_name='头像')),
                ('au', models.IntegerField(default=0, verbose_name='活跃度')),
                ('last_ip', models.GenericIPAddressField(default='0.0.0.0', verbose_name='上次访问的IP')),
                ('email_verified', models.BooleanField(default=False, verbose_name='邮箱是否验证')),
                ('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='用户注册时间')),
                ('topic_num', models.IntegerField(default=0, verbose_name='帖子数')),
                ('comment_num', models.IntegerField(default=0, verbose_name='评论数')),
                ('is_active', models.BooleanField(default=True)),
                ('is_admin', models.BooleanField(default=False)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='EmailVerified',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('token', models.CharField(default=None, max_length=32, verbose_name='email验证token')),
                ('timestamp', models.DateTimeField(default=django.utils.timezone.now, verbose_name='令牌创建时间')),
                ('user', models.OneToOneField(on_delete=True, related_name='user', to=settings.AUTH_USER_MODEL, verbose_name='用户')),
            ],
        ),
        migrations.CreateModel(
            name='FindPwd',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('token', models.CharField(default=None, max_length=32, verbose_name='email验证token')),
                ('timestamp', models.DateTimeField(default=django.utils.timezone.now, verbose_name='令牌创建时间')),
                ('user', models.OneToOneField(on_delete=True, to=settings.AUTH_USER_MODEL, verbose_name='用户')),
            ],
        ),
        migrations.CreateModel(
            name='Follower',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('user_a', models.ForeignKey(on_delete=True, related_name='user_a', to=settings.AUTH_USER_MODEL, verbose_name='偶像')),
                ('user_b', models.ForeignKey(on_delete=True, related_name='user_b', to=settings.AUTH_USER_MODEL, verbose_name='粉丝')),
            ],
        ),
        migrations.AlterUniqueTogether(
            name='follower',
            unique_together={('user_a', 'user_b')},
        ),
    ]
