123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- # Generated by Django 4.1.7 on 2023-03-21 13:08
- from django.conf import settings
- from django.db import migrations, models
- import django.db.models.deletion
- class Migration(migrations.Migration):
- dependencies = [
- migrations.swappable_dependency(settings.AUTH_USER_MODEL),
- ("issues", "0011_auto_20230123_0736"),
- ]
- operations = [
- migrations.CreateModel(
- name="Comment",
- fields=[
- (
- "id",
- models.BigAutoField(
- auto_created=True,
- primary_key=True,
- serialize=False,
- verbose_name="ID",
- ),
- ),
- ("created", models.DateTimeField(auto_now_add=True, db_index=True)),
- ("text", models.TextField(blank=True, null=True)),
- (
- "issue",
- models.ForeignKey(
- on_delete=django.db.models.deletion.CASCADE, to="issues.issue"
- ),
- ),
- (
- "user",
- models.ForeignKey(
- null=True,
- on_delete=django.db.models.deletion.SET_NULL,
- to=settings.AUTH_USER_MODEL,
- ),
- ),
- ],
- options={
- "abstract": False,
- },
- ),
- ]
|