This repository has been archived on 2025-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
facturio/accounts/migrations/0001_initial.py

147 lines
5.1 KiB
Python
Raw Permalink Normal View History

2023-12-18 23:05:49 +01:00
# Generated by Django 5.0 on 2023-12-18 21:42
import django.contrib.auth.models
import django.contrib.auth.validators
import django.utils.timezone
2024-02-03 22:07:20 +01:00
from django.db import migrations
from django.db import models
2023-12-18 23:05:49 +01:00
class Migration(migrations.Migration):
initial = True
dependencies = [
2024-02-03 22:07:20 +01:00
('auth', '0012_alter_user_first_name_max_length'),
2023-12-18 23:05:49 +01:00
]
operations = [
migrations.CreateModel(
2024-02-03 22:07:20 +01:00
name='User',
2023-12-18 23:05:49 +01:00
fields=[
(
2024-02-03 22:07:20 +01:00
'id',
2023-12-18 23:05:49 +01:00
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
2024-02-03 22:07:20 +01:00
verbose_name='ID',
2023-12-18 23:05:49 +01:00
),
),
2024-08-16 22:12:49 +02:00
(
2025-03-03 21:52:20 +01:00
'password',
models.CharField(
max_length=128,
verbose_name='password',
2024-08-16 22:12:49 +02:00
),
),
2023-12-18 23:05:49 +01:00
(
2024-02-03 22:07:20 +01:00
'last_login',
2023-12-18 23:05:49 +01:00
models.DateTimeField(
2025-03-03 21:52:20 +01:00
blank=True,
null=True,
verbose_name='last login',
2023-12-18 23:05:49 +01:00
),
),
(
2024-02-03 22:07:20 +01:00
'is_superuser',
2023-12-18 23:05:49 +01:00
models.BooleanField(
default=False,
2024-02-03 22:07:20 +01:00
help_text='Designates that this user has all permissions without explicitly assigning them.',
verbose_name='superuser status',
2023-12-18 23:05:49 +01:00
),
),
(
2024-02-03 22:07:20 +01:00
'username',
2023-12-18 23:05:49 +01:00
models.CharField(
error_messages={
2024-08-16 22:12:49 +02:00
'unique': 'A user with that username already exists.',
2023-12-18 23:05:49 +01:00
},
2024-02-03 22:07:20 +01:00
help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.',
2023-12-18 23:05:49 +01:00
max_length=150,
unique=True,
validators=[
2024-08-16 22:12:49 +02:00
django.contrib.auth.validators.UnicodeUsernameValidator(),
2023-12-18 23:05:49 +01:00
],
2024-02-03 22:07:20 +01:00
verbose_name='username',
2023-12-18 23:05:49 +01:00
),
),
(
2024-02-03 22:07:20 +01:00
'first_name',
2023-12-18 23:05:49 +01:00
models.CharField(
2025-03-03 21:52:20 +01:00
blank=True,
max_length=150,
verbose_name='first name',
2023-12-18 23:05:49 +01:00
),
),
(
2024-02-03 22:07:20 +01:00
'last_name',
2023-12-18 23:05:49 +01:00
models.CharField(
2025-03-03 21:52:20 +01:00
blank=True,
max_length=150,
verbose_name='last name',
2023-12-18 23:05:49 +01:00
),
),
(
2024-02-03 22:07:20 +01:00
'email',
2023-12-18 23:05:49 +01:00
models.EmailField(
2025-03-03 21:52:20 +01:00
blank=True,
max_length=254,
verbose_name='email address',
2023-12-18 23:05:49 +01:00
),
),
(
2024-02-03 22:07:20 +01:00
'is_staff',
2023-12-18 23:05:49 +01:00
models.BooleanField(
default=False,
2024-02-03 22:07:20 +01:00
help_text='Designates whether the user can log into this admin site.',
verbose_name='staff status',
2023-12-18 23:05:49 +01:00
),
),
(
2024-02-03 22:07:20 +01:00
'is_active',
2023-12-18 23:05:49 +01:00
models.BooleanField(
default=True,
2024-02-03 22:07:20 +01:00
help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.',
verbose_name='active',
2023-12-18 23:05:49 +01:00
),
),
(
2024-02-03 22:07:20 +01:00
'date_joined',
2023-12-18 23:05:49 +01:00
models.DateTimeField(
2025-03-03 21:52:20 +01:00
default=django.utils.timezone.now,
verbose_name='date joined',
2023-12-18 23:05:49 +01:00
),
),
(
2024-02-03 22:07:20 +01:00
'groups',
2023-12-18 23:05:49 +01:00
models.ManyToManyField(
blank=True,
2024-02-03 22:07:20 +01:00
help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.',
related_name='user_set',
related_query_name='user',
to='auth.group',
verbose_name='groups',
2023-12-18 23:05:49 +01:00
),
),
(
2024-02-03 22:07:20 +01:00
'user_permissions',
2023-12-18 23:05:49 +01:00
models.ManyToManyField(
blank=True,
2024-02-03 22:07:20 +01:00
help_text='Specific permissions for this user.',
related_name='user_set',
related_query_name='user',
to='auth.permission',
verbose_name='user permissions',
2023-12-18 23:05:49 +01:00
),
),
],
options={
2024-02-03 22:07:20 +01:00
'verbose_name': 'user',
'verbose_name_plural': 'users',
'abstract': False,
2023-12-18 23:05:49 +01:00
},
managers=[
2024-02-03 22:07:20 +01:00
('objects', django.contrib.auth.models.UserManager()),
2023-12-18 23:05:49 +01:00
],
),
]