StudE-Backend/stude/studygroup_messages/migrations/0001_initial.py

29 lines
995 B
Python
Raw Normal View History

# Generated by Django 4.2.3 on 2023-07-26 12:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('study_groups', '0001_initial'),
]
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)),
('timestamp', models.DateTimeField(auto_now_add=True)),
('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)),
],
),
]