27 lines
1.0 KiB
Python
27 lines
1.0 KiB
Python
# Generated by Django 5.2.7 on 2025-10-28 22:28
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Order',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('amount', models.DecimalField(decimal_places=2, max_digits=10)),
|
|
('currency', models.CharField(default='czk', max_length=10)),
|
|
('status', models.CharField(choices=[('pending', 'Pending'), ('paid', 'Paid'), ('failed', 'Failed'), ('cancelled', 'Cancelled')], default='pending', max_length=20)),
|
|
('stripe_session_id', models.CharField(blank=True, max_length=255, null=True)),
|
|
('stripe_payment_intent', models.CharField(blank=True, max_length=255, null=True)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
],
|
|
),
|
|
]
|