Issue#4: Staviti izabrane rizike u bazu kako treba.
This commit is contained in:
@@ -66,6 +66,8 @@ class Organization(models.Model):
|
||||
sensitive_data = models.JSONField(null=True, blank=True) # Stores selected sensitive data types as a list
|
||||
integration_level = models.CharField(max_length=20, null=True, blank=True)
|
||||
|
||||
risks = models.ManyToManyField('Risk', related_name='organizations', blank=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
@@ -95,6 +97,7 @@ class DocumentSegment(models.Model):
|
||||
|
||||
|
||||
class Document(models.Model):
|
||||
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||
organization = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name='documents')
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
modified_at = models.DateTimeField(auto_now=True)
|
||||
|
||||
Reference in New Issue
Block a user