# Generated by Django 5.1.1 on 2024-11-24 06:03

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


class Migration(migrations.Migration):

    dependencies = [
        ('events', '0007_alter_event_event_type_userthrottle_userscope'),
    ]

    operations = [
        migrations.CreateModel(
            name='Organization',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=64)),
                ('website', models.CharField(blank=True, max_length=128, null=True)),
                ('is_venue', models.BooleanField(default=False)),
                ('is_501c', models.BooleanField(default=False)),
                ('contact_name', models.CharField(blank=True, max_length=64, null=True)),
                ('contact_email', models.CharField(blank=True, max_length=64, null=True)),
                ('phone_number', models.CharField(blank=True, max_length=200, null=True)),
                ('address', models.CharField(blank=True, max_length=64, null=True)),
                ('city', models.CharField(blank=True, max_length=32, null=True)),
                ('state', models.CharField(blank=True, max_length=16, null=True)),
                ('zip_code', models.CharField(blank=True, max_length=16, null=True)),
            ],
            options={
                'verbose_name_plural': 'Organizations',
                'ordering': ['name'],
            },
        ),
        migrations.AlterField(
            model_name='event',
            name='venue',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.organization'),
        ),
        migrations.CreateModel(
            name='Promo',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=64)),
                ('promo_type', models.CharField(choices=[('Jo', 'Job Opening'), ('Re', 'Retail'), ('Fo', 'Food'), ('Ev', 'Event')], default='0', max_length=16)),
                ('image', models.ImageField(blank=True, null=True, upload_to='')),
                ('promo_text', models.TextField(blank=True, null=True)),
                ('target_link', models.URLField(blank=True, null=True)),
                ('notes', models.TextField(blank=True, null=True)),
                ('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.organization')),
            ],
            options={
                'verbose_name_plural': 'Promo',
            },
        ),
        migrations.DeleteModel(
            name='Venue',
        ),
    ]
