47 lines
1.8 KiB
Python
47 lines
1.8 KiB
Python
|
# Generated by Django 4.2.7 on 2023-12-09 02:13
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
('inventory', '0001_initial'),
|
||
|
('tickets', '0001_initial'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='EventAddress',
|
||
|
fields=[
|
||
|
('id', models.AutoField(primary_key=True, serialize=False)),
|
||
|
('address', models.CharField(max_length=255)),
|
||
|
('event', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='inventory.event')),
|
||
|
],
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Email',
|
||
|
fields=[
|
||
|
('is_deleted', models.BooleanField(default=False)),
|
||
|
('deleted_at', models.DateTimeField(blank=True, null=True)),
|
||
|
('id', models.AutoField(primary_key=True, serialize=False)),
|
||
|
('timestamp', models.DateTimeField(auto_now_add=True)),
|
||
|
('body', models.TextField()),
|
||
|
('subject', models.CharField(max_length=255)),
|
||
|
('sender', models.CharField(max_length=255)),
|
||
|
('recipient', models.CharField(max_length=255)),
|
||
|
('reference', models.CharField(max_length=255, null=True, unique=True)),
|
||
|
('in_reply_to', models.CharField(max_length=255, null=True)),
|
||
|
('raw', models.TextField()),
|
||
|
('event', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='inventory.event')),
|
||
|
('issue_thread', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='emails', to='tickets.issuethread')),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
),
|
||
|
]
|