Skip to content

Commit 3f3b149

Browse files
committed
Add migrations
1 parent f33a62f commit 3f3b149

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Generated by Django 5.1.4 on 2025-03-20 15:39
2+
3+
import django.contrib.postgres.fields
4+
import django.db.models.deletion
5+
from django.db import migrations, models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('participant', '0004_alter_participationattachment_attachment'),
12+
('payment', '0003_alter_paymentdiscount_percentage'),
13+
]
14+
15+
operations = [
16+
migrations.CreateModel(
17+
name='GroupPaymentRequest',
18+
fields=[
19+
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
20+
('participant_numbers', models.IntegerField(default=1)),
21+
('timestamp', models.DateTimeField(auto_now_add=True)),
22+
('paid', models.BooleanField(default=False)),
23+
('order_id', models.CharField(blank=True, max_length=100)),
24+
('group_discount_percentage', models.DecimalField(decimal_places=2, default=0.0, max_digits=5)),
25+
('participant_emails', django.contrib.postgres.fields.ArrayField(base_field=models.EmailField(max_length=254), blank=True, default=list, size=None)),
26+
('discount', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='payment.paymentdiscount')),
27+
('participant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='participant.participant')),
28+
('plan', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='participant.participationplan')),
29+
],
30+
),
31+
]

0 commit comments

Comments
 (0)