diff options
Diffstat (limited to 'web/migrations')
-rw-r--r-- | web/migrations/0001_initial.py | 46 | ||||
-rw-r--r-- | web/migrations/0002_alter_availability_user.py | 21 | ||||
-rw-r--r-- | web/migrations/__init__.py | 0 | ||||
-rw-r--r-- | web/migrations/__pycache__/0001_initial.cpython-312.pyc | bin | 0 -> 2163 bytes | |||
-rw-r--r-- | web/migrations/__pycache__/0002_alter_availability_user.cpython-312.pyc | bin | 0 -> 1107 bytes | |||
-rw-r--r-- | web/migrations/__pycache__/__init__.cpython-312.pyc | bin | 0 -> 160 bytes |
6 files changed, 67 insertions, 0 deletions
diff --git a/web/migrations/0001_initial.py b/web/migrations/0001_initial.py new file mode 100644 index 0000000..5107a35 --- /dev/null +++ b/web/migrations/0001_initial.py @@ -0,0 +1,46 @@ +# Generated by Django 5.1.2 on 2024-10-22 20:31 + +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Event', + fields=[ + ('created_at', models.DateTimeField(auto_now_add=True, null=True)), + ('updated_at', models.DateTimeField(auto_now=True, null=True)), + ('active', models.BooleanField(default=True)), + ('id', models.AutoField(primary_key=True, serialize=False)), + ('name', models.TextField()), + ('start_date', models.DateTimeField()), + ('end_date', models.DateTimeField()), + ('participants', models.IntegerField()), + ], + options={ + 'db_table': 'events', + }, + ), + migrations.CreateModel( + name='Availability', + fields=[ + ('created_at', models.DateTimeField(auto_now_add=True, null=True)), + ('updated_at', models.DateTimeField(auto_now=True, null=True)), + ('active', models.BooleanField(default=True)), + ('id', models.AutoField(primary_key=True, serialize=False)), + ('user', models.TextField()), + ('time_table', models.JSONField()), + ('event_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='web.event')), + ], + options={ + 'db_table': 'availabilities', + }, + ), + ] diff --git a/web/migrations/0002_alter_availability_user.py b/web/migrations/0002_alter_availability_user.py new file mode 100644 index 0000000..4fdf65b --- /dev/null +++ b/web/migrations/0002_alter_availability_user.py @@ -0,0 +1,21 @@ +# Generated by Django 4.2.16 on 2024-10-24 17:59 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('web', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='availability', + name='user', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), + ), + ] diff --git a/web/migrations/__init__.py b/web/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/web/migrations/__init__.py diff --git a/web/migrations/__pycache__/0001_initial.cpython-312.pyc b/web/migrations/__pycache__/0001_initial.cpython-312.pyc Binary files differnew file mode 100644 index 0000000..f6f6b17 --- /dev/null +++ b/web/migrations/__pycache__/0001_initial.cpython-312.pyc diff --git a/web/migrations/__pycache__/0002_alter_availability_user.cpython-312.pyc b/web/migrations/__pycache__/0002_alter_availability_user.cpython-312.pyc Binary files differnew file mode 100644 index 0000000..70e69e8 --- /dev/null +++ b/web/migrations/__pycache__/0002_alter_availability_user.cpython-312.pyc diff --git a/web/migrations/__pycache__/__init__.cpython-312.pyc b/web/migrations/__pycache__/__init__.cpython-312.pyc Binary files differnew file mode 100644 index 0000000..b45851f --- /dev/null +++ b/web/migrations/__pycache__/__init__.cpython-312.pyc |