# Generated by Django 4.2.28 on 2026-07-27 22:20

from django.db import migrations, models
import uuid


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Payment',
            fields=[
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('type', models.CharField(choices=[('booking_fee', 'Booking Fee'), ('order_checkout', 'Order Checkout')], max_length=20)),
                ('paystack_reference', models.CharField(max_length=200, unique=True)),
                ('amount', models.DecimalField(decimal_places=2, max_digits=10)),
                ('status', models.CharField(choices=[('initiated', 'Initiated'), ('verified', 'Verified'), ('failed', 'Failed')], default='initiated', max_length=20)),
                ('verified_at', models.DateTimeField(blank=True, null=True)),
                ('raw_webhook_payload', models.JSONField(blank=True, default=dict)),
                ('metadata', models.JSONField(blank=True, default=dict, help_text='Additional context passed to/from Paystack (e.g., booking details, order ID).')),
            ],
            options={
                'ordering': ['-created_at'],
            },
        ),
    ]
