29 lines
1023 B
Python
29 lines
1023 B
Python
# Generated by Django 6.0.5 on 2026-05-18 10:24
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('cart', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Coupon',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('code', models.CharField(max_length=32, unique=True)),
|
|
('discount_percent', models.DecimalField(decimal_places=2, max_digits=5)),
|
|
('min_purchase', models.DecimalField(decimal_places=2, default=0, max_digits=10)),
|
|
('active', models.BooleanField(default=True)),
|
|
('valid_from', models.DateTimeField(blank=True, null=True)),
|
|
('valid_to', models.DateTimeField(blank=True, null=True)),
|
|
],
|
|
options={
|
|
'ordering': ['code'],
|
|
},
|
|
),
|
|
]
|