text: # Generated by Django 3.1.5 on 2021-01-13 15:48
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Product',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('productname', models.CharField(max_length=255)),
                  ('productprice', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                  ('productentrydate', models.DateField()),
                  ('producturl', models.URLField(blank=True, null=True)),
                  ('productdescription', models.TextField()),
              ],
              options={
                  'verbose_name_plural': 'products',
                  'db_table': 'product',
              },
          ),
          migrations.CreateModel(
              name='ProductType',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('typename', models.CharField(max_length=255)),
                  ('typedescription', models.CharField(blank=True, max_length=255, null=True)),
              ],
              options={
                  'verbose_name_plural': 'producttypes',
                  'db_table': 'producttype',
              },
          ),
          migrations.CreateModel(
              name='Review',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('reviewtitle', models.CharField(max_length=255)),
                  ('reviewdate', models.DateField()),
                  ('reviewrating', models.SmallIntegerField()),
                  ('reviewtext', models.TextField()),
                  ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='board_app.product')),
                  ('user', models.ManyToManyField(to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'verbose_name_plural': 'reviews',
                  'db_table': 'review',
              },
          ),
          migrations.AddField(
              model_name='product',
              name='producttype',
              field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='board_app.producttype'),
          ),
          migrations.AddField(
              model_name='product',
              name='user',
              field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL),
          ),
      ]
  