# Generated by Django 3.1.1 on 2020-11-14 18:22

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('hashtag', '__first__'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Post',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('image', models.ImageField(upload_to='post/', verbose_name='Image')),
                ('posted_time', models.DateTimeField(auto_now_add=True, verbose_name='Post_posted_time')),
                ('caption', models.CharField(blank=True, max_length=50, verbose_name='Caption')),
                ('location', models.CharField(blank=True, max_length=30, verbose_name='Location')),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='Owner', to=settings.AUTH_USER_MODEL)),
                ('hashtags', models.ManyToManyField(blank=True, related_name='Post_Hashags', to='hashtag.Hashtag')),
                ('likes', models.ManyToManyField(blank=True, related_name='Post_Likes', to=settings.AUTH_USER_MODEL)),
                ('saves', models.ManyToManyField(blank=True, related_name='Post_Saves', to=settings.AUTH_USER_MODEL)),
                ('usertags', models.ManyToManyField(blank=True, related_name='Post_Tags', to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
