NDOJ/chat_box/migrations/0006_userroom.py

49 lines
1.4 KiB
Python
Raw Permalink Normal View History

2021-11-21 04:23:03 +00:00
# Generated by Django 2.2.17 on 2021-11-12 05:27
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", "0005_auto_20211011_0714"),
2021-11-21 04:23:03 +00:00
]
operations = [
migrations.CreateModel(
2022-05-14 17:57:27 +00:00
name="UserRoom",
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",
),
),
("last_seen", models.DateTimeField(verbose_name="last seen")),
(
"room",
models.ForeignKey(
default=None,
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="chat_box.Room",
verbose_name="room id",
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="judge.Profile",
verbose_name="user",
),
),
2021-11-21 04:23:03 +00:00
],
),
]