0001_initial.py 911 B

12345678910111213141516171819202122232425262728
  1. # Generated by Django 3.2.7 on 2021-09-08 15:01
  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. initial = True
  7. dependencies = [
  8. ('folder', '0001_initial'),
  9. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  10. ]
  11. operations = [
  12. migrations.CreateModel(
  13. name='Group',
  14. fields=[
  15. ('group_id', models.AutoField(primary_key=True, serialize=False)),
  16. ('group_name', models.CharField(max_length=50)),
  17. ('creator', models.CharField(max_length=50)),
  18. ('folder', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='group_folder', to='folder.folder')),
  19. ('member', models.ManyToManyField(to=settings.AUTH_USER_MODEL)),
  20. ],
  21. ),
  22. ]