diff --git a/skyonnweb/user/migrations/0005_message.py b/skyonnweb/user/migrations/0005_message.py new file mode 100644 index 0000000..cd4e054 --- /dev/null +++ b/skyonnweb/user/migrations/0005_message.py @@ -0,0 +1,31 @@ +# Generated by Django 4.2.11 on 2024-04-08 06:07 + +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), + ('user', '0004_jobposting_budget_min_alter_jobposting_budget_max'), + ] + + operations = [ + migrations.CreateModel( + name='Message', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('subject', models.CharField(max_length=255)), + ('body', models.TextField()), + ('is_read', models.BooleanField(default=False)), + ('sent_at', models.DateTimeField(auto_now_add=True)), + ('recipient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='received_messages', to=settings.AUTH_USER_MODEL)), + ('sender', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sent_messages', to=settings.AUTH_USER_MODEL)), + ], + options={ + 'ordering': ['-sent_at'], + }, + ), + ] diff --git a/skyonnweb/user/migrations/0006_alter_jobposting_location.py b/skyonnweb/user/migrations/0006_alter_jobposting_location.py new file mode 100644 index 0000000..24d607a --- /dev/null +++ b/skyonnweb/user/migrations/0006_alter_jobposting_location.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.11 on 2024-04-08 06:31 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('user', '0005_message'), + ] + + operations = [ + migrations.AlterField( + model_name='jobposting', + name='location', + field=models.TextField(), + ), + ]