# Generated by Django 3.2 on 2022-05-10 10:11

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Libreria',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('denominazione', models.CharField(max_length=50)),
                ('contatto', models.CharField(blank=True, max_length=30, null=True)),
                ('telefono', models.CharField(blank=True, max_length=25, null=True)),
                ('email', models.EmailField(blank=True, max_length=254, null=True)),
                ('username', models.CharField(max_length=11)),
                ('password', models.CharField(max_length=12)),
            ],
            options={
                'db_table': 'libreria',
            },
        ),
        migrations.CreateModel(
            name='Scuola',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('nome', models.CharField(max_length=100)),
            ],
            options={
                'db_table': 'scuola',
            },
        ),
        migrations.CreateModel(
            name='Prenotazione',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('pr_data_richiesta', models.DateField(default=django.utils.timezone.now)),
                ('pr_codfiscale', models.CharField(max_length=16)),
                ('pr_classe', models.SmallIntegerField(blank=True, null=True)),
                ('pr_facoltativo', models.BooleanField(default=False)),
                ('pr_libreria', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.libreria')),
                ('pr_scuola', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.scuola')),
            ],
            options={
                'db_table': 'prenotazione',
            },
        ),
    ]
