2024-05-11 03:22:01 +00:00
|
|
|
# Generated by Django 4.1.13 on 2024-05-09 03:16
|
2020-07-09 07:41:02 +00:00
|
|
|
|
2024-05-11 03:22:01 +00:00
|
|
|
from django.conf import settings
|
2020-07-09 07:41:02 +00:00
|
|
|
from django.db import migrations, models
|
2024-05-11 03:22:01 +00:00
|
|
|
import django.db.models.deletion
|
2020-07-09 07:41:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2024-05-11 03:22:01 +00:00
|
|
|
initial = True
|
|
|
|
|
2020-07-09 07:41:02 +00:00
|
|
|
dependencies = [
|
2024-05-11 03:22:01 +00:00
|
|
|
('acls', '0002_auto_20210926_1047'),
|
|
|
|
('terminal', '0002_auto_20171228_0025'),
|
2020-07-09 07:41:02 +00:00
|
|
|
('tickets', '0001_initial'),
|
2024-05-11 03:22:01 +00:00
|
|
|
('assets', '0002_auto_20180105_1807'),
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2020-07-09 07:41:02 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
2024-05-11 03:22:01 +00:00
|
|
|
migrations.AddField(
|
|
|
|
model_name='ticketassignee',
|
|
|
|
name='assignee',
|
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ticket_assignees', to=settings.AUTH_USER_MODEL, verbose_name='Assignee'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='ticketassignee',
|
|
|
|
name='step',
|
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ticket_assignees', to='tickets.ticketstep'),
|
2020-07-09 07:41:02 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='ticket',
|
2024-05-11 03:22:01 +00:00
|
|
|
name='applicant',
|
|
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='applied_tickets', to=settings.AUTH_USER_MODEL, verbose_name='Applicant'),
|
2020-07-09 07:41:02 +00:00
|
|
|
),
|
2024-05-11 03:22:01 +00:00
|
|
|
migrations.AddField(
|
2020-07-09 07:41:02 +00:00
|
|
|
model_name='ticket',
|
2024-05-11 03:22:01 +00:00
|
|
|
name='flow',
|
|
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tickets', to='tickets.ticketflow', verbose_name='TicketFlow'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='comment',
|
|
|
|
name='ticket',
|
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='tickets.ticket'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='comment',
|
|
|
|
name='user',
|
|
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='comments', to=settings.AUTH_USER_MODEL, verbose_name='User'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='approvalrule',
|
|
|
|
name='assignees',
|
|
|
|
field=models.ManyToManyField(related_name='assigned_ticket_flow_approval_rule', to=settings.AUTH_USER_MODEL, verbose_name='Assignees'),
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='SuperTicket',
|
|
|
|
fields=[
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'verbose_name': 'Super ticket',
|
|
|
|
'proxy': True,
|
|
|
|
'indexes': [],
|
|
|
|
'constraints': [],
|
|
|
|
},
|
|
|
|
bases=('tickets.ticket',),
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
|
|
|
name='ticket',
|
|
|
|
unique_together={('serial_num',)},
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='applyloginassetticket',
|
|
|
|
name='apply_login_asset',
|
|
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='assets.asset', verbose_name='Login asset'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='applyloginassetticket',
|
|
|
|
name='apply_login_user',
|
|
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='Login user'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='applycommandticket',
|
|
|
|
name='apply_from_cmd_filter_acl',
|
|
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='acls.commandfilteracl', verbose_name='Command filter acl'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='applycommandticket',
|
|
|
|
name='apply_from_session',
|
|
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='terminal.session', verbose_name='Session'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='applycommandticket',
|
|
|
|
name='apply_run_user',
|
|
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='Run user'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='applyassetticket',
|
|
|
|
name='apply_assets',
|
|
|
|
field=models.ManyToManyField(to='assets.asset', verbose_name='Asset'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='applyassetticket',
|
|
|
|
name='apply_nodes',
|
|
|
|
field=models.ManyToManyField(to='assets.node', verbose_name='Node'),
|
2020-07-09 07:41:02 +00:00
|
|
|
),
|
|
|
|
]
|