2023-12-11 21:18:33 +00:00
|
|
|
# Generated by Django 4.2.7 on 2023-12-09 02:13
|
2023-11-23 22:17:20 +00:00
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='IssueThread',
|
|
|
|
fields=[
|
|
|
|
('is_deleted', models.BooleanField(default=False)),
|
|
|
|
('deleted_at', models.DateTimeField(blank=True, null=True)),
|
|
|
|
('id', models.AutoField(primary_key=True, serialize=False)),
|
2023-12-11 21:18:33 +00:00
|
|
|
('name', models.CharField(max_length=255)),
|
|
|
|
('state', models.CharField(default='new', max_length=255)),
|
|
|
|
('assigned_to', models.CharField(max_length=255, null=True)),
|
|
|
|
('last_activity', models.DateTimeField(auto_now=True)),
|
2023-11-23 22:17:20 +00:00
|
|
|
],
|
|
|
|
options={
|
2023-12-11 21:18:33 +00:00
|
|
|
'permissions': [('send_mail', 'Can send mail')],
|
2023-11-23 22:17:20 +00:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='StateChange',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(primary_key=True, serialize=False)),
|
|
|
|
('state', models.CharField(max_length=255)),
|
|
|
|
('timestamp', models.DateTimeField(auto_now_add=True)),
|
2023-12-11 21:18:33 +00:00
|
|
|
('issue_thread', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='state_changes', to='tickets.issuethread')),
|
2023-11-23 22:17:20 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Comment',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(primary_key=True, serialize=False)),
|
|
|
|
('comment', models.TextField()),
|
|
|
|
('timestamp', models.DateTimeField(auto_now_add=True)),
|
2023-12-11 21:18:33 +00:00
|
|
|
('issue_thread', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='tickets.issuethread')),
|
2023-11-23 22:17:20 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|