26 lines
883 B
Python
26 lines
883 B
Python
# Generated by Django 5.2.7 on 2026-01-19 20:59
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Product',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=100)),
|
|
('price', models.DecimalField(decimal_places=2, max_digits=6)),
|
|
('category', models.CharField(choices=[('food', 'Food'), ('drink', 'Drink')], default='drink', max_length=20)),
|
|
('has_deposit', models.BooleanField(default=False)),
|
|
('image_url', models.URLField(blank=True, help_text='Optional URL for product image.', null=True)),
|
|
],
|
|
),
|
|
]
|