You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.4 KiB
Python
44 lines
1.4 KiB
Python
# Generated by Django 5.2.3 on 2025-07-03 08:11
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("accounts", "0003_remove_depotuser_is_company_admin_and_more"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="EmployeePermission",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codename", models.CharField(default="", max_length=100)),
|
|
("name", models.CharField(default="", max_length=255)),
|
|
],
|
|
options={
|
|
"permissions": (
|
|
("can_manage_containers", "Can manage containers"),
|
|
("can_view_reports", "Can view reports"),
|
|
("can_handle_operations", "Can handle operations"),
|
|
),
|
|
"managed": True,
|
|
"default_permissions": (),
|
|
},
|
|
),
|
|
migrations.AddField(
|
|
model_name="depotuser",
|
|
name="employee_permissions",
|
|
field=models.ManyToManyField(blank=True, to="accounts.employeepermission"),
|
|
),
|
|
]
|