From 396963e925a4cf05dffdcac3e7730ba741662549 Mon Sep 17 00:00:00 2001 From: Tom Pollard Date: Fri, 19 Jul 2024 13:54:02 -0400 Subject: [PATCH] Add migration --- .../project/migrations/0077_peerreview.py | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 physionet-django/project/migrations/0077_peerreview.py diff --git a/physionet-django/project/migrations/0077_peerreview.py b/physionet-django/project/migrations/0077_peerreview.py new file mode 100644 index 000000000..aaa184138 --- /dev/null +++ b/physionet-django/project/migrations/0077_peerreview.py @@ -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", + ), + ), + ], + ), + ]