# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-02 07:23
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='ParentalRel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('username', models.CharField(max_length=32, unique=True)),
                ('password', models.CharField(max_length=32)),
                ('acctype', models.BooleanField(default=False)),
            ],
        ),
        migrations.AddField(
            model_name='parentalrel',
            name='child',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='child', to='api.User'),
        ),
        migrations.AddField(
            model_name='parentalrel',
            name='parent',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parent', to='api.User'),
        ),
        migrations.AlterUniqueTogether(
            name='parentalrel',
            unique_together=set([('child', 'parent')]),
        ),
    ]
