From b199d994caa58102f9c52fc412b080248709775b Mon Sep 17 00:00:00 2001 From: Jessica Thomas Date: Wed, 5 Jul 2023 13:56:13 -0500 Subject: [PATCH] add private_data field to ExtraUserDetail --- .../0011_extrauserdetail_private_data.py | 18 ++++++++++++++++++ hub/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 hub/migrations/0011_extrauserdetail_private_data.py diff --git a/hub/migrations/0011_extrauserdetail_private_data.py b/hub/migrations/0011_extrauserdetail_private_data.py new file mode 100644 index 0000000000..cc9d32ad84 --- /dev/null +++ b/hub/migrations/0011_extrauserdetail_private_data.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.15 on 2023-07-05 18:37 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('hub', '0010_do_nothing'), + ] + + operations = [ + migrations.AddField( + model_name='extrauserdetail', + name='private_data', + field=models.JSONField(default=dict), + ), + ] diff --git a/hub/models.py b/hub/models.py index 20eeb5f35d..c73ff6ff7a 100644 --- a/hub/models.py +++ b/hub/models.py @@ -145,6 +145,7 @@ class ExtraUserDetail(StandardizeSearchableFieldMixin, models.Model): related_name='extra_details', on_delete=models.CASCADE) data = models.JSONField(default=dict) + private_data = models.JSONField(default=dict) date_removal_requested = models.DateTimeField(null=True) date_removed = models.DateTimeField(null=True)