SOITA/users/migrations/0001_initial.py

33 lines
1.2 KiB
Python
Raw Normal View History

2021-12-05 13:50:34 +01:00
# Generated by Django 3.1.1 on 2021-12-01 18:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
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')),
('first_name', models.CharField(max_length=100)),
('last_name', models.CharField(max_length=100)),
('email', models.EmailField(db_index=True, max_length=50, unique=True)),
('is_active', models.BooleanField(default=False)),
('confirmation_number', models.CharField(max_length=100)),
('reset_code', models.CharField(max_length=100)),
('avatar', models.ImageField(null=True, upload_to='avatars/')),
],
options={
'ordering': ('id',),
},
),
]