# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-11-27 06:32
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('contenttypes', '0002_remove_content_type_name'),
    ]

    operations = [
        migrations.CreateModel(
            name='DataColumn',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('object_id', models.PositiveIntegerField()),
                ('ref_column', models.CharField(max_length=100, verbose_name='Reference Column')),
                ('position', models.SmallIntegerField(blank=True, null=True, verbose_name='Position')),
                ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
                ('ref_model', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='base_datacolumns', to='contenttypes.ContentType')),
            ],
            options={
                'verbose_name': 'Data Column',
                'verbose_name_plural': 'Data Columns',
            },
        ),
        migrations.AlterUniqueTogether(
            name='datacolumn',
            unique_together=set([('content_type', 'object_id', 'position'), ('content_type', 'object_id', 'ref_model', 'ref_column')]),
        ),
    ]
