updated code

master
VARUN 2 weeks ago
parent 3d6624612f
commit e9ee5d64b1

@ -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'],
},
),
]

@ -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(),
),
]
Loading…
Cancel
Save