# Generated by Django 4.2.5 on 2024-08-02 19:36

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


class Migration(migrations.Migration):

    dependencies = [
        ('osichat', '0017_chatroom_date_terminated_chatroom_terminated_by'),
    ]

    operations = [
        migrations.CreateModel(
            name='VisitorLog',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('url', models.URLField()),
                ('referrer', models.URLField(blank=True, null=True)),
                ('visit_date', models.DateTimeField(null=True)),
                ('left_date', models.DateTimeField(null=True)),
            ],
        ),
        migrations.RemoveField(
            model_name='chatroomguest',
            name='mobile_number',
        ),
        migrations.RemoveField(
            model_name='chatroomguest',
            name='name',
        ),
        migrations.RemoveField(
            model_name='chatroomguest',
            name='session_id',
        ),
        migrations.RemoveField(
            model_name='visitor',
            name='left_date',
        ),
        migrations.RemoveField(
            model_name='visitor',
            name='referrer',
        ),
        migrations.RemoveField(
            model_name='visitor',
            name='url',
        ),
        migrations.RemoveField(
            model_name='visitor',
            name='visit_date',
        ),
        migrations.AddField(
            model_name='chatroomguest',
            name='visitor',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='osichat.visitor'),
        ),
        migrations.AddField(
            model_name='visitor',
            name='email',
            field=models.CharField(blank=True, max_length=100, null=True),
        ),
        migrations.AddField(
            model_name='visitor',
            name='mobile_number',
            field=models.CharField(blank=True, max_length=10, null=True),
        ),
        migrations.AddField(
            model_name='visitor',
            name='name',
            field=models.CharField(blank=True, max_length=200, null=True),
        ),
    ]
