# Generated by Django 2.1.2 on 2019-01-10 12:29

from decimal import Decimal
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('users', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Pago',
            fields=[
                ('id_pago', models.IntegerField(primary_key=True, serialize=False, unique=True)),
                ('periodo', models.CharField(max_length=7)),
                ('pesos', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=8)),
                ('pesos_char', models.CharField(max_length=45)),
                ('vencimiento_1', models.DateField()),
                ('vencimiento_2', models.DateField(blank=True, null=True)),
                ('cod_pago_mc', models.CharField(max_length=12)),
                ('cod_link', models.CharField(max_length=20)),
                ('tipo_pago', models.CharField(max_length=1)),
                ('cod_barras', models.CharField(max_length=45)),
            ],
        ),
        migrations.CreateModel(
            name='Profesional',
            fields=[
                ('codigo', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)),
                ('tipo_doc', models.CharField(blank=True, max_length=3, null=True)),
                ('nro_doc', models.CharField(blank=True, max_length=10, null=True)),
                ('dom_post', models.CharField(blank=True, max_length=30, null=True)),
                ('localidad_post', models.CharField(blank=True, max_length=30, null=True)),
                ('cp_post', models.CharField(max_length=10)),
                ('matricula', models.CharField(blank=True, max_length=10, null=True)),
                ('activo_col', models.BooleanField(default=1)),
                ('activo_seg', models.BooleanField(default=1)),
            ],
        ),
        migrations.AddField(
            model_name='pago',
            name='usuario_codigo',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='chequeras.Profesional'),
        ),
    ]
