From a975d831f97db051b57a68f0f5929d03b094cdae Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 20 Jun 2024 10:00:07 +0200 Subject: [PATCH] add credential_as_issuer in models --- .../migrations/0007_did_credential_as_issuer.py | 17 +++++++++++++++++ idhub/models.py | 1 + 2 files changed, 18 insertions(+) create mode 100644 idhub/migrations/0007_did_credential_as_issuer.py diff --git a/idhub/migrations/0007_did_credential_as_issuer.py b/idhub/migrations/0007_did_credential_as_issuer.py new file mode 100644 index 0000000..aa42f3f --- /dev/null +++ b/idhub/migrations/0007_did_credential_as_issuer.py @@ -0,0 +1,17 @@ +# Generated by Django 4.2.5 on 2024-06-20 07:59 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ('idhub', '0006_did_ether_address_did_ether_privkey'), + ] + + operations = [ + migrations.AddField( + model_name='did', + name='credential_as_issuer', + field=models.TextField(null=True), + ), + ] diff --git a/idhub/models.py b/idhub/models.py index 430529d..c0a0304 100644 --- a/idhub/models.py +++ b/idhub/models.py @@ -454,6 +454,7 @@ class DID(models.Model): ) # JSON-serialized DID document didweb_document = models.TextField() + credential_as_issuer = models.TextField(null=True) @property def is_organization_did(self):