order payment model qoshildi va plan serializer error togirlandi

This commit is contained in:
behruz-dev
2025-12-01 16:10:01 +05:00
parent bbb0e8cf16
commit abc1ab5850
5 changed files with 51 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
# Generated by Django 5.2 on 2025-12-01 11:07
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0004_order_file'),
]
operations = [
migrations.CreateModel(
name='Payment',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('price', models.DecimalField(decimal_places=2, max_digits=15)),
('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='payments', to='orders.order')),
],
options={
'abstract': False,
},
),
]