# Generated by Django 3.2.10 on 2021-12-30 04:43

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='UserProfile',
            fields=[
                ('id', models.IntegerField(primary_key=True, serialize=False)),
                ('name', models.CharField(help_text='取一个炫酷的博名吧！', max_length=8, verbose_name='用户名')),
                ('gender', models.CharField(choices=[('n', '未知'), ('male', '男生'), ('female', '女生')], default='n', help_text='小姐姐还是小哥哥？', max_length=6, verbose_name='性别')),
                ('birthday', models.DateField(blank=True, null=True, verbose_name='生日')),
                ('email', models.EmailField(blank=True, max_length=254, null=True, verbose_name='邮箱')),
                ('info', models.CharField(help_text='简要介绍一下自己，不要超过50字哦！', max_length=50, verbose_name='个人简介')),
                ('account', models.CharField(help_text='账号请在这里输入...', max_length=9, verbose_name='账号')),
                ('password', models.CharField(help_text='密码请在这里输入...', max_length=18, verbose_name='密码')),
                ('image', models.ImageField(default='images/default.png', upload_to='images/%Y/%m', verbose_name='用户头像')),
                ('owner', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='用户')),
            ],
        ),
    ]
