chore [P-01]: 1.0.2 дебаггервв
This commit is contained in:
1 parent
b9d398249b
commit
56838d32a1
47 files changed
+2302
-1
No files matched your search
@@ -0,0 +1,90 @@
|
||||
# Generated by Django 5.2.1 on 2025-05-16 12:18
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
("auth", "0012_alter_user_first_name_max_length"),
|
||||
("userauth", "0002_employeedepartment"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="User",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.BigAutoField(
|
||||
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
|
||||
),
|
||||
),
|
||||
(
|
||||
"last_login",
|
||||
models.DateTimeField(blank=True, null=True, verbose_name="last login"),
|
||||
),
|
||||
(
|
||||
"is_superuser",
|
||||
models.BooleanField(
|
||||
default=False,
|
||||
help_text="Designates that this user has all permissions without explicitly assigning them.",
|
||||
verbose_name="superuser status",
|
||||
),
|
||||
),
|
||||
(
|
||||
"password",
|
||||
models.CharField(blank=True, max_length=128, null=True, verbose_name="Пароль"),
|
||||
),
|
||||
(
|
||||
"username",
|
||||
models.CharField(
|
||||
db_index=True, max_length=255, unique=True, verbose_name="Логин"
|
||||
),
|
||||
),
|
||||
("is_active", models.BooleanField(default=True, verbose_name="Активность")),
|
||||
("is_staff", models.BooleanField(default=False, verbose_name="Доступ в Админку")),
|
||||
("created_at", models.DateTimeField(auto_now_add=True)),
|
||||
("updated_at", models.DateTimeField(auto_now=True)),
|
||||
(
|
||||
"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",
|
||||
related_query_name="user",
|
||||
to="auth.group",
|
||||
verbose_name="groups",
|
||||
),
|
||||
),
|
||||
(
|
||||
"user",
|
||||
models.ForeignKey(
|
||||
blank=True,
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.PROTECT,
|
||||
to="userauth.dictemployee",
|
||||
verbose_name="Сотрудник",
|
||||
),
|
||||
),
|
||||
(
|
||||
"user_permissions",
|
||||
models.ManyToManyField(
|
||||
blank=True,
|
||||
help_text="Specific permissions for this user.",
|
||||
related_name="user_set",
|
||||
related_query_name="user",
|
||||
to="auth.permission",
|
||||
verbose_name="user permissions",
|
||||
),
|
||||
),
|
||||
],
|
||||
options={
|
||||
"verbose_name": "Зарегистрированный участник",
|
||||
"verbose_name_plural": "Зарегистрированные участники",
|
||||
},
|
||||
),
|
||||
]
|
||||
Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user