58 lines
1.7 KiB
Python
Executable file
58 lines
1.7 KiB
Python
Executable file
# 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 = [
|
|
("judge", "0116_auto_20211011_0645"),
|
|
("chat_box", "0004_auto_20200505_2336"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="Room",
|
|
fields=[
|
|
(
|
|
"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",
|
|
),
|
|
),
|
|
],
|
|
),
|
|
migrations.AddField(
|
|
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",
|
|
),
|
|
),
|
|
]
|