From 0bf28321da4dec87071be8388fdca49a7abf0f19 Mon Sep 17 00:00:00 2001 From: jedi Date: Sat, 15 Jun 2024 18:05:20 +0200 Subject: [PATCH] stash --- core/tickets/migrations/0012_shippingcode.py | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 core/tickets/migrations/0012_shippingcode.py diff --git a/core/tickets/migrations/0012_shippingcode.py b/core/tickets/migrations/0012_shippingcode.py new file mode 100644 index 0000000..02832f9 --- /dev/null +++ b/core/tickets/migrations/0012_shippingcode.py @@ -0,0 +1,24 @@ +# Generated by Django 4.2.7 on 2024-06-15 15:59 + +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)), + ('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')), + ], + ), + ]