Skip to content

Commit

Permalink
Add migration
Browse files Browse the repository at this point in the history
  • Loading branch information
tompollard committed Jul 19, 2024
1 parent a092774 commit 396963e
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions physionet-django/project/migrations/0077_peerreview.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Generated by Django 4.1.13 on 2024-07-18 02:45

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),
("project", "0076_internalnote"),
]

operations = [
migrations.CreateModel(
name="PeerReview",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("created_at", models.DateTimeField(auto_now_add=True)),
("content", models.TextField()),
(
"created_by",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to=settings.AUTH_USER_MODEL,
),
),
(
"project",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="peer_reviews",
to="project.activeproject",
),
),
],
),
]

0 comments on commit 396963e

Please sign in to comment.