IdHub/idhub_auth/migrations/0001_initial.py

57 lines
1.7 KiB
Python
Raw Normal View History

2024-01-10 12:53:43 +00:00
# Generated by Django 4.2.5 on 2024-01-10 11:52
2023-10-25 15:49:17 +00:00
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name='User',
fields=[
(
'id',
models.BigAutoField(
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(
2024-01-10 12:53:43 +00:00
max_length=255, unique=True, verbose_name='Email address'
2023-10-25 15:49:17 +00:00
),
),
('is_active', models.BooleanField(default=True)),
('is_admin', models.BooleanField(default=False)),
2024-01-10 12:53:43 +00:00
(
'first_name',
models.CharField(
blank=True, max_length=255, null=True, verbose_name='First name'
),
),
(
'last_name',
models.CharField(
blank=True, max_length=255, null=True, verbose_name='Last name'
),
),
2023-10-25 15:49:17 +00:00
],
options={
'abstract': False,
},
),
]