# Generated by Django 2.2.17 on 2021-02-01 15:27

from django.conf import settings
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0011_update_proxy_permissions'),
    ]

    operations = [
        migrations.CreateModel(
            name='Ad',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=50, verbose_name='Ad Title')),
                ('image', models.CharField(max_length=2000, verbose_name='Image Address')),
                ('link', models.CharField(max_length=2000, verbose_name='Link')),
                ('approve', models.BooleanField(default=False, verbose_name='Approved')),
            ],
        ),
        migrations.CreateModel(
            name='Advertiser',
            fields=[
                ('user_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)),
                ('name', models.CharField(max_length=70, verbose_name='Advertiser Name')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'abstract': False,
            },
            bases=('auth.user',),
            managers=[
                ('objects', django.contrib.auth.models.UserManager()),
            ],
        ),
        migrations.CreateModel(
            name='View',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('time', models.DateTimeField(verbose_name='Time')),
                ('user_ip', models.GenericIPAddressField(verbose_name='User IP')),
                ('ad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='views', to='advertiser_management.Ad', verbose_name='Viewed Ad')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Click',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('time', models.DateTimeField(verbose_name='Time')),
                ('user_ip', models.GenericIPAddressField(verbose_name='User IP')),
                ('ad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='clicks', to='advertiser_management.Ad', verbose_name='Clicked Ad')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='ad',
            name='advertiser',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ads', to='advertiser_management.Advertiser', verbose_name='Advertiser'),
        ),
    ]

dbdc03651101b7b437ecdf1ce5368b00c682e056
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [('auth', '0011_update_proxy_permissions')]
    operations = [migrations.CreateModel(name='Ad', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('title', models.CharField(max_length=50,
        verbose_name='Ad Title')), ('image', models.CharField(max_length=
        2000, verbose_name='Image Address')), ('link', models.CharField(
        max_length=2000, verbose_name='Link')), ('approve', models.
        BooleanField(default=False, verbose_name='Approved'))]), migrations
        .CreateModel(name='Advertiser', fields=[('user_ptr', models.
        OneToOneField(auto_created=True, on_delete=django.db.models.
        deletion.CASCADE, parent_link=True, primary_key=True, serialize=
        False, to=settings.AUTH_USER_MODEL)), ('name', models.CharField(
        max_length=70, verbose_name='Advertiser Name'))], options={
        'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract':
        False}, bases=('auth.user',), managers=[('objects', django.contrib.
        auth.models.UserManager())]), migrations.CreateModel(name='View',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('time', models.DateTimeField
        (verbose_name='Time')), ('user_ip', models.GenericIPAddressField(
        verbose_name='User IP')), ('ad', models.ForeignKey(on_delete=django
        .db.models.deletion.CASCADE, related_name='views', to=
        'advertiser_management.Ad', verbose_name='Viewed Ad'))], options={
        'abstract': False}), migrations.CreateModel(name='Click', fields=[(
        'id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('time', models.DateTimeField
        (verbose_name='Time')), ('user_ip', models.GenericIPAddressField(
        verbose_name='User IP')), ('ad', models.ForeignKey(on_delete=django
        .db.models.deletion.CASCADE, related_name='clicks', to=
        'advertiser_management.Ad', verbose_name='Clicked Ad'))], options={
        'abstract': False}), migrations.AddField(model_name='ad', name=
        'advertiser', field=models.ForeignKey(on_delete=django.db.models.
        deletion.CASCADE, related_name='ads', to=
        'advertiser_management.Advertiser', verbose_name='Advertiser'))]

from django.conf import settings
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
    initial = True
    dependencies = [('auth', '0011_update_proxy_permissions')]
    operations = [migrations.CreateModel(name='Ad', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('title', models.CharField(max_length=50,
        verbose_name='Ad Title')), ('image', models.CharField(max_length=
        2000, verbose_name='Image Address')), ('link', models.CharField(
        max_length=2000, verbose_name='Link')), ('approve', models.
        BooleanField(default=False, verbose_name='Approved'))]), migrations
        .CreateModel(name='Advertiser', fields=[('user_ptr', models.
        OneToOneField(auto_created=True, on_delete=django.db.models.
        deletion.CASCADE, parent_link=True, primary_key=True, serialize=
        False, to=settings.AUTH_USER_MODEL)), ('name', models.CharField(
        max_length=70, verbose_name='Advertiser Name'))], options={
        'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract':
        False}, bases=('auth.user',), managers=[('objects', django.contrib.
        auth.models.UserManager())]), migrations.CreateModel(name='View',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('time', models.DateTimeField
        (verbose_name='Time')), ('user_ip', models.GenericIPAddressField(
        verbose_name='User IP')), ('ad', models.ForeignKey(on_delete=django
        .db.models.deletion.CASCADE, related_name='views', to=
        'advertiser_management.Ad', verbose_name='Viewed Ad'))], options={
        'abstract': False}), migrations.CreateModel(name='Click', fields=[(
        'id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('time', models.DateTimeField
        (verbose_name='Time')), ('user_ip', models.GenericIPAddressField(
        verbose_name='User IP')), ('ad', models.ForeignKey(on_delete=django
        .db.models.deletion.CASCADE, related_name='clicks', to=
        'advertiser_management.Ad', verbose_name='Clicked Ad'))], options={
        'abstract': False}), migrations.AddField(model_name='ad', name=
        'advertiser', field=models.ForeignKey(on_delete=django.db.models.
        deletion.CASCADE, related_name='ads', to=
        'advertiser_management.Advertiser', verbose_name='Advertiser'))]

# Generated by Django 2.2.17 on 2021-02-01 15:27

from django.conf import settings
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0011_update_proxy_permissions'),
    ]

    operations = [
        migrations.CreateModel(
            name='Ad',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=50, verbose_name='Ad Title')),
                ('image', models.CharField(max_length=2000, verbose_name='Image Address')),
                ('link', models.CharField(max_length=2000, verbose_name='Link')),
                ('approve', models.BooleanField(default=False, verbose_name='Approved')),
            ],
        ),
        migrations.CreateModel(
            name='Advertiser',
            fields=[
                ('user_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)),
                ('name', models.CharField(max_length=70, verbose_name='Advertiser Name')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'abstract': False,
            },
            bases=('auth.user',),
            managers=[
                ('objects', django.contrib.auth.models.UserManager()),
            ],
        ),
        migrations.CreateModel(
            name='View',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('time', models.DateTimeField(verbose_name='Time')),
                ('user_ip', models.GenericIPAddressField(verbose_name='User IP')),
                ('ad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='views', to='advertiser_management.Ad', verbose_name='Viewed Ad')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Click',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('time', models.DateTimeField(verbose_name='Time')),
                ('user_ip', models.GenericIPAddressField(verbose_name='User IP')),
                ('ad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='clicks', to='advertiser_management.Ad', verbose_name='Clicked Ad')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='ad',
            name='advertiser',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ads', to='advertiser_management.Advertiser', verbose_name='Advertiser'),
        ),
    ]
