NDOJ/chat_box/migrations/0005_auto_20211011_0714.py

59 lines
1.7 KiB
Python
Raw Normal View History

2021-11-21 04:23:03 +00:00
# Generated by Django 2.2.17 on 2021-10-11 00:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
2022-05-14 17:57:27 +00:00
("judge", "0116_auto_20211011_0645"),
("chat_box", "0004_auto_20200505_2336"),
2021-11-21 04:23:03 +00:00
]
operations = [
migrations.CreateModel(
2022-05-14 17:57:27 +00:00
name="Room",
2021-11-21 04:23:03 +00:00
fields=[
2022-05-14 17:57:27 +00:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"user_one",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="user_one",
to="judge.Profile",
verbose_name="user 1",
),
),
(
"user_two",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="user_two",
to="judge.Profile",
verbose_name="user 2",
),
),
2021-11-21 04:23:03 +00:00
],
),
migrations.AddField(
2022-05-14 17:57:27 +00:00
model_name="message",
name="room",
field=models.ForeignKey(
default=None,
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="chat_box.Room",
verbose_name="room id",
),
2021-11-21 04:23:03 +00:00
),
]