# Generated by Django 3.2 on 2021-05-01 03:00

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='Counter',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Counter_Title', models.CharField(max_length=50)),
                ('Counter_Duty', models.CharField(max_length=100)),
                ('Counter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, to_field='username')),
            ],
        ),
        migrations.CreateModel(
            name='Query',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('query', models.TextField()),
                ('DOC', models.DateTimeField()),
                ('Counter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Form',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Name', models.CharField(max_length=50)),
                ('DOC', models.DateTimeField()),
                ('htmlForm', models.TextField()),
                ('LastEdit', models.DateTimeField()),
                ('Background', models.ImageField(upload_to='test0/forms/')),
                ('inputs', models.IntegerField()),
                ('Creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ServerApp.counter')),
            ],
        ),
    ]
