Selah/backend/users_app/migrations/0001_initial.py

39 lines
2.1 KiB
Python
Raw Normal View History

# Generated by Django 4.2.2 on 2023-06-14 10:26
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
name='Users',
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(db_index=True, max_length=100, unique=True)),
('username', models.CharField(db_index=True, max_length=64, unique=True)),
('user_first_name', models.CharField(blank=True, max_length=50, null=True)),
('user_last_name', models.CharField(blank=True, max_length=50, null=True)),
('user_profile_pic', models.ImageField(blank=True, null=True, upload_to='user_pfps')),
('user_favorite_bible_verse', models.CharField(blank=True, max_length=20, null=True)),
('date_user_added', models.DateTimeField(auto_now_add=True)),
('is_staff', models.BooleanField(default=False)),
('is_active', models.BooleanField(default=True)),
('is_superuser', models.BooleanField(default=False)),
('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set_custom', related_query_name='user_custom', to='auth.group', verbose_name='groups')),
('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set_custom', related_query_name='user_custom', to='auth.permission', verbose_name='user permissions')),
],
options={
'db_table': 'users',
},
),
]