2023-09-03 17:46:36 +08:00
|
|
|
# Generated by Django 4.2.3 on 2023-09-03 09:32
|
2023-06-28 00:49:11 +08:00
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
2023-07-26 23:32:03 +08:00
|
|
|
('study_groups', '0001_initial'),
|
2023-08-06 14:19:55 +08:00
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2023-06-28 00:49:11 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Message',
|
|
|
|
fields=[
|
|
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('message_content', models.TextField(max_length=1024)),
|
2023-07-09 19:00:47 +08:00
|
|
|
('timestamp', models.DateTimeField(auto_now_add=True)),
|
2023-06-28 00:49:11 +08:00
|
|
|
('study_group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='study_groups.studygroup')),
|
|
|
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|