feat: add Products form to admin

This commit is contained in:
2026-05-18 17:07:15 +02:00
parent 3b46a18b29
commit 6471b98ec2
9 changed files with 407 additions and 3 deletions

View File

@@ -0,0 +1,26 @@
# Generated by Django 6.0.4 on 2026-05-18 14:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('purchase', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='PurchasableProduct',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('description', models.TextField(blank=True)),
('price_cents', models.PositiveIntegerField(help_text='Price in cents')),
('currency', models.CharField(default='usd', max_length=10)),
('stripe_product_id', models.CharField(blank=True, max_length=255, null=True)),
('stripe_price_id', models.CharField(blank=True, max_length=255, null=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
],
),
]