c3lf-system-3/core/tickets/migrations/0012_shippingcode.py

26 lines
882 B
Python
Raw Normal View History

2024-06-15 17:38:20 +00:00
# Generated by Django 4.2.7 on 2024-06-15 17:37
2024-06-15 16:05:20 +00:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tickets', '0011_issuethread_related_items'),
]
operations = [
migrations.CreateModel(
name='ShippingCode',
fields=[
('id', models.AutoField(primary_key=True, serialize=False)),
('code', models.CharField(max_length=255)),
2024-06-15 17:38:20 +00:00
('type', models.CharField(max_length=255)),
2024-06-15 16:05:20 +00:00
('timestamp', models.DateTimeField(auto_now_add=True)),
('used_at', models.DateTimeField(null=True)),
('issue_thread', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='shipping_codes', to='tickets.issuethread')),
],
),
]