# Generated by Django 3.2.6 on 2021-08-26 10:15

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Categoria',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nome', models.CharField(db_index=True, max_length=150)),
                ('slug', models.SlugField(max_length=150, unique=True)),
                ('data_criacao', models.DateTimeField(auto_now_add=True)),
                ('data_ultima_alteracao', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Produto',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nome', models.CharField(db_index=True, max_length=100)),
                ('slug', models.CharField(db_index=True, max_length=100)),
                ('descricao', models.TextField(blank=True)),
                ('preco', models.DecimalField(decimal_places=2, max_digits=10)),
                ('disponivel', models.BooleanField(default=True)),
                ('estoque', models.PositiveIntegerField()),
                ('data_criacao', models.DateTimeField(auto_now_add=True)),
                ('data_ultima_alteracao', models.DateTimeField(auto_now=True)),
                ('imagem', models.ImageField(blank=True, upload_to='imagens-produtos')),
                ('categoria', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='produtos', to='main.categoria')),
            ],
        ),
    ]

a1062f35ad593cddb73717605c5c3fd332358c63
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = []
    operations = [migrations.CreateModel(name='Categoria', fields=[('id',
        models.BigAutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('nome', models.CharField(db_index=True,
        max_length=150)), ('slug', models.SlugField(max_length=150, unique=
        True)), ('data_criacao', models.DateTimeField(auto_now_add=True)),
        ('data_ultima_alteracao', models.DateTimeField(auto_now=True))]),
        migrations.CreateModel(name='Produto', fields=[('id', models.
        BigAutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('nome', models.CharField(db_index=True,
        max_length=100)), ('slug', models.CharField(db_index=True,
        max_length=100)), ('descricao', models.TextField(blank=True)), (
        'preco', models.DecimalField(decimal_places=2, max_digits=10)), (
        'disponivel', models.BooleanField(default=True)), ('estoque',
        models.PositiveIntegerField()), ('data_criacao', models.
        DateTimeField(auto_now_add=True)), ('data_ultima_alteracao', models
        .DateTimeField(auto_now=True)), ('imagem', models.ImageField(blank=
        True, upload_to='imagens-produtos')), ('categoria', models.
        ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE,
        related_name='produtos', to='main.categoria'))])]

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
    initial = True
    dependencies = []
    operations = [migrations.CreateModel(name='Categoria', fields=[('id',
        models.BigAutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('nome', models.CharField(db_index=True,
        max_length=150)), ('slug', models.SlugField(max_length=150, unique=
        True)), ('data_criacao', models.DateTimeField(auto_now_add=True)),
        ('data_ultima_alteracao', models.DateTimeField(auto_now=True))]),
        migrations.CreateModel(name='Produto', fields=[('id', models.
        BigAutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('nome', models.CharField(db_index=True,
        max_length=100)), ('slug', models.CharField(db_index=True,
        max_length=100)), ('descricao', models.TextField(blank=True)), (
        'preco', models.DecimalField(decimal_places=2, max_digits=10)), (
        'disponivel', models.BooleanField(default=True)), ('estoque',
        models.PositiveIntegerField()), ('data_criacao', models.
        DateTimeField(auto_now_add=True)), ('data_ultima_alteracao', models
        .DateTimeField(auto_now=True)), ('imagem', models.ImageField(blank=
        True, upload_to='imagens-produtos')), ('categoria', models.
        ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE,
        related_name='produtos', to='main.categoria'))])]

# Generated by Django 3.2.6 on 2021-08-26 10:15

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Categoria',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nome', models.CharField(db_index=True, max_length=150)),
                ('slug', models.SlugField(max_length=150, unique=True)),
                ('data_criacao', models.DateTimeField(auto_now_add=True)),
                ('data_ultima_alteracao', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Produto',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nome', models.CharField(db_index=True, max_length=100)),
                ('slug', models.CharField(db_index=True, max_length=100)),
                ('descricao', models.TextField(blank=True)),
                ('preco', models.DecimalField(decimal_places=2, max_digits=10)),
                ('disponivel', models.BooleanField(default=True)),
                ('estoque', models.PositiveIntegerField()),
                ('data_criacao', models.DateTimeField(auto_now_add=True)),
                ('data_ultima_alteracao', models.DateTimeField(auto_now=True)),
                ('imagem', models.ImageField(blank=True, upload_to='imagens-produtos')),
                ('categoria', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='produtos', to='main.categoria')),
            ],
        ),
    ]
