Product-Manager/product-manager-backend/products/migrations/0001_initial.py

30 lines
835 B
Python
Raw Normal View History

2022-04-25 12:07:08 +00:00
# Generated by Django 3.1.3 on 2022-04-04 05:45
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('image', models.CharField(max_length=200)),
('likes', models.PositiveIntegerField(default=0)),
],
),
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
],
),
]