0003_friendrequest.py 895 B

123456789101112131415161718192021222324
  1. # Generated by Django 3.2.5 on 2021-07-09 09:41
  2. from django.conf import settings
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  8. ('friends', '0002_auto_20210709_1658'),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='FriendRequest',
  13. fields=[
  14. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  15. ('receiver', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='receiver', to=settings.AUTH_USER_MODEL)),
  16. ('requester', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='requester', to=settings.AUTH_USER_MODEL)),
  17. ],
  18. ),
  19. ]