Skip to content

Commit

Permalink
feat: add ora_submission_id in model
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed Feb 2, 2024
1 parent 160e965 commit 548d7a3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.23 on 2024-02-02 01:56

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('platform_plugin_turnitin', '0002_alter_turnitinsubmission_user'),
]

operations = [
migrations.AddField(
model_name='turnitinsubmission',
name='ora_submission_id',
field=models.CharField(blank=True, max_length=255, null=True),
),
]
2 changes: 2 additions & 0 deletions platform_plugin_turnitin/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class TurnitinSubmission(models.Model):
Attributes:
- user (User): The user who made the submission.
- ora_submission_id (str): The unique identifier for the submission in the Open Response Assessment (ORA) system.
- turnitin_submission_id (str): The unique identifier for the submission in Turnitin.
- turnitin_submission_pdf_id (str): The unique identifier for the PDF version of the submission in Turnitin.
- created_at (datetime): The date and time when the submission was created.
Expand All @@ -24,6 +25,7 @@ class TurnitinSubmission(models.Model):
user = models.ForeignKey(
User, on_delete=models.CASCADE, related_name="turnitin_submissions"
)
ora_submission_id = models.CharField(max_length=255, blank=True, null=True)
turnitin_submission_id = models.CharField(max_length=255, blank=True, null=True)
turnitin_submission_pdf_id = models.CharField(max_length=255, blank=True, null=True)
created_at = models.DateTimeField(auto_now_add=True)

0 comments on commit 548d7a3

Please sign in to comment.