diff --git a/api/optimeet/groups/migrations/0001_initial.py b/api/optimeet/groups/migrations/0001_initial.py index 6d4de6b..65a04ab 100644 --- a/api/optimeet/groups/migrations/0001_initial.py +++ b/api/optimeet/groups/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.1.12 on 2023-11-03 18:33 +# Generated by Django 4.2.6 on 2023-11-07 19:21 from django.db import migrations, models @@ -14,10 +14,9 @@ class Migration(migrations.Migration): migrations.CreateModel( name='Group', fields=[ - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('group_id', models.CharField(default='10', max_length=5, unique=True)), - ('name', models.CharField(default='', max_length=30)), - ('host_id', models.CharField(default='', max_length=64)), + ('group_id', models.CharField(blank=True, max_length=10, primary_key=True, serialize=False)), + ('name', models.CharField(max_length=30)), + ('host_id', models.CharField(max_length=64)), ('max_capacity', models.IntegerField(default=5)), ('status', models.CharField(choices=[('A', 'Active'), ('F', 'Finished')], default='A', max_length=1)), ], diff --git a/api/optimeet/groups/migrations/0002_remove_group_id_alter_group_group_id.py b/api/optimeet/groups/migrations/0002_remove_group_id_alter_group_group_id.py deleted file mode 100644 index 32b1358..0000000 --- a/api/optimeet/groups/migrations/0002_remove_group_id_alter_group_group_id.py +++ /dev/null @@ -1,22 +0,0 @@ -# Generated by Django 4.1.12 on 2023-11-03 20:49 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('groups', '0001_initial'), - ] - - operations = [ - migrations.RemoveField( - model_name='group', - name='id', - ), - migrations.AlterField( - model_name='group', - name='group_id', - field=models.BigAutoField(default=4310021863, primary_key=True, serialize=False), - ), - ] diff --git a/api/optimeet/groups/migrations/0003_alter_group_group_id.py b/api/optimeet/groups/migrations/0003_alter_group_group_id.py deleted file mode 100644 index 95fb201..0000000 --- a/api/optimeet/groups/migrations/0003_alter_group_group_id.py +++ /dev/null @@ -1,19 +0,0 @@ -# Generated by Django 4.1.12 on 2023-11-03 21:18 - -import builtins -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('groups', '0002_remove_group_id_alter_group_group_id'), - ] - - operations = [ - migrations.AlterField( - model_name='group', - name='group_id', - field=models.CharField(default=builtins.id, max_length=10, primary_key=True, serialize=False), - ), - ] diff --git a/api/optimeet/groups/migrations/0004_alter_group_group_id_alter_group_host_id_and_more.py b/api/optimeet/groups/migrations/0004_alter_group_group_id_alter_group_host_id_and_more.py deleted file mode 100644 index 706da2a..0000000 --- a/api/optimeet/groups/migrations/0004_alter_group_group_id_alter_group_host_id_and_more.py +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by Django 4.1.12 on 2023-11-03 21:31 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('groups', '0003_alter_group_group_id'), - ] - - operations = [ - migrations.AlterField( - model_name='group', - name='group_id', - field=models.CharField(max_length=10, primary_key=True, serialize=False), - ), - migrations.AlterField( - model_name='group', - name='host_id', - field=models.CharField(max_length=64), - ), - migrations.AlterField( - model_name='group', - name='name', - field=models.CharField(max_length=30), - ), - ]