# Generated by Django 6.0.1 on 2026-11-07 16:23

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('basic', '0003_reminderrepeattype_reminderstatus_and_more'),
        ('user', '0003_child_isdonetryingtobepregnant_alter_child_genderid'),
    ]

    operations = [
        migrations.CreateModel(
            name='Community',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('keyName', models.TextField(blank=True, null=True)),
                ('createdDate', models.DateTimeField(blank=True, null=True)),
                ('updatedDate', models.DateTimeField(blank=True, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='CommunityCategory',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('keyName', models.TextField(blank=True, null=True)),
                ('createdDate', models.DateTimeField(blank=True, null=True)),
                ('updatedDate', models.DateTimeField(blank=True, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='CommunityCategoryLanguage',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.TextField(blank=True, null=True)),
                ('createdDate', models.DateTimeField(blank=True, null=True)),
                ('updatedDate', models.DateTimeField(blank=True, null=True)),
                ('communityCategoryId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='communitycategory_communitycategorylanguage', to='community.communitycategory')),
                ('languageId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='language_communitycategorylanguage', to='basic.language')),
            ],
        ),
        migrations.CreateModel(
            name='CommunityLanguage',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.TextField(blank=True, null=True)),
                ('createdDate', models.DateTimeField(blank=True, null=True)),
                ('updatedDate', models.DateTimeField(blank=True, null=True)),
                ('communityId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='community_communitylanguage', to='community.community')),
                ('languageId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='language_communitylanguage', to='basic.language')),
            ],
        ),
        migrations.CreateModel(
            name='Post',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('description', models.TextField()),
                ('createdDate', models.DateTimeField()),
                ('updatedDate', models.DateTimeField()),
                ('communityCategoryId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='communitycategory_post', to='community.communitycategory')),
                ('communityId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='community_post', to='community.community')),
            ],
        ),
        migrations.CreateModel(
            name='SocialAccountCommunity',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('isSelected', models.BooleanField(default=False)),
                ('createdDate', models.DateTimeField(blank=True, null=True)),
                ('updatedDate', models.DateTimeField(blank=True, null=True)),
                ('communityId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='community_socialaccountcommunity', to='community.community')),
                ('parentId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parent_socialaccountcommunity', to='user.parent')),
            ],
        ),
        migrations.CreateModel(
            name='PostSave',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('createdDate', models.DateTimeField()),
                ('updatedDate', models.DateTimeField()),
                ('postId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='post_postsave', to='community.post')),
                ('socialAccountCommunityId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='socialaccountcommunity_postsave', to='community.socialaccountcommunity')),
            ],
        ),
        migrations.CreateModel(
            name='PostLike',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('createdDate', models.DateTimeField()),
                ('updatedDate', models.DateTimeField()),
                ('postId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='post_postlike', to='community.post')),
                ('socialAccountCommunityId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='socialaccountcommunity_postlike', to='community.socialaccountcommunity')),
            ],
        ),
        migrations.AddField(
            model_name='post',
            name='socialAccountCommunityId',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='socialaccountcommunity_post', to='community.socialaccountcommunity'),
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('description', models.TextField()),
                ('createdDate', models.DateTimeField()),
                ('updatedDate', models.DateTimeField()),
                ('postId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='post_comment', to='community.post')),
                ('socialAccountCommunityId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='socialaccountcommunity_comment', to='community.socialaccountcommunity')),
            ],
        ),
    ]
