text: # Generated by Django 3.1.5 on 2021-01-20 09:31
  
  import django.core.validators
  from django.db import migrations, models
  import django.db.models.deletion
  import uuid
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('product', '0001_initial'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Category',
              fields=[
                  ('id', models.BigAutoField(primary_key=True, serialize=False)),
                  ('name', models.CharField(max_length=50, unique=True, verbose_name='Category Name')),
                  ('description', models.TextField(max_length=500, verbose_name='Description')),
              ],
          ),
          migrations.CreateModel(
              name='Product',
              fields=[
                  ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                  ('name', models.CharField(max_length=100, unique=True, verbose_name='Product Name')),
                  ('description', models.TextField(max_length=500, verbose_name='Description')),
                  ('stock', models.IntegerField(validators=[django.core.validators.MinValueValidator(10), django.core.validators.MaxValueValidator(10000)], verbose_name='Stock')),
                  ('price', models.FloatField(default=0, validators=[django.core.validators.MinValueValidator(10), django.core.validators.MaxValueValidator(10000)], verbose_name='Stock')),
                  ('image', models.ImageField(upload_to='product/images/', verbose_name='Product Image')),
                  ('brand', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='product.brand')),
                  ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='product.category')),
              ],
          ),
      ]
  