27 lines
870 B
Python
27 lines
870 B
Python
# Generated by Django 5.2.7 on 2026-01-18 11:36
|
|
|
|
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=200)),
|
|
('category', models.CharField(blank=True, max_length=100, null=True)),
|
|
('sku', models.CharField(max_length=100, unique=True)),
|
|
('price', models.DecimalField(decimal_places=2, max_digits=10)),
|
|
('stock', models.PositiveIntegerField()),
|
|
('minimum_stock_level', models.PositiveIntegerField(default=10)),
|
|
],
|
|
),
|
|
]
|