added migrations for objects
rebuild requirements.txt
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
# 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"),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user