Ivy-Backend/ivy/products/migrations/0001_initial.py
2023-03-05 21:56:48 +08:00

24 lines
709 B
Python

# Generated by Django 4.1.7 on 2023-03-05 13:54
from django.db import migrations, models
import django.utils.timezone
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=20)),
('quantity', models.IntegerField(default=0)),
('date_added', models.DateTimeField(default=django.utils.timezone.now, editable=False)),
],
),
]