text: # -*- coding: utf-8 -*-
  # Generated by Django 1.9.6 on 2016-06-23 07:12
  from __future__ import unicode_literals
  
  import django.contrib.postgres.fields.jsonb
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('products', '0009_auto_20160623_0658'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='ProductVariant',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('sku', models.CharField(max_length=32, unique=True)),
                  ('name', models.CharField(blank=True, max_length=100)),
                  ('price_override', models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True)),
                  ('attributes', django.contrib.postgres.fields.jsonb.JSONField(default={})),
                  ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='variants', to='products.Product')),
              ],
          ),
          migrations.AlterField(
              model_name='productimage',
              name='product',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='images', to='products.ProductVariant'),
          ),
      ]
  