# Generated by Django 4.2.5 on 2023-09-08 17:33

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='Business',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
                ('email', models.EmailField(max_length=254, unique=True)),
                ('financial_number', models.CharField(max_length=50)),
                ('vat', models.BooleanField(default=False)),
                ('commercial_registration', models.CharField(max_length=50)),
                ('phone_number', models.CharField(max_length=50)),
                ('website', models.URLField(null=True)),
                ('business_type', models.CharField(choices=[('ASSOCIATIONS', 'ASSOCIATIONS'), ('HEALTHCARE', 'HEALTHCARE'), ('LUXURY', 'LUXURY'), ('MANUFACTURING', 'MANUFACTURING'), ('NON-PROFIT', 'NON-PROFIT'), ('EDUCATION', 'EDUCATION'), ('ENTERTAINMENT', 'ENTERTAINMENT'), ('LOGISTICS', 'LOGISTICS'), ('RETAIL', 'RETAIL'), ('AUTOMOTIVE', 'AUTOMOTIVE')], max_length=200)),
                ('logo', models.ImageField(upload_to='')),
            ],
        ),
        migrations.CreateModel(
            name='Reference',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
                ('date', models.DateField(blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='CustomerProfile',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_name', models.CharField(max_length=50)),
                ('last_name', models.CharField(max_length=50)),
                ('email', models.EmailField(max_length=254, unique=True)),
                ('mobile_number', models.CharField(max_length=50)),
                ('password', models.CharField(max_length=128)),
                ('personal_website', models.URLField(null=True)),
                ('status', models.CharField(choices=[('Active', 'Active'), ('Suspended', 'Suspended'), ('Terminated', 'Terminated')], max_length=200)),
                ('business', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='osinacore.business')),
                ('reference', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='osinacore.reference')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
