@@ -472,6 +473,7 @@ class Dataproduct(TemplateSchemaMixin, RefreshFromDbInvalidatesCachedPropertiesM
...
@@ -472,6 +473,7 @@ class Dataproduct(TemplateSchemaMixin, RefreshFromDbInvalidatesCachedPropertiesM
feedback_template=ForeignKey('DataproductFeedbackTemplate',on_delete=PROTECT,help_text='Schema used for feedback_doc.')
feedback_template=ForeignKey('DataproductFeedbackTemplate',on_delete=PROTECT,help_text='Schema used for feedback_doc.')
sap=ForeignKey('SAP',on_delete=PROTECT,null=True,related_name="dataproducts",help_text='SAP this dataproduct was generated out of (NULLable).')
sap=ForeignKey('SAP',on_delete=PROTECT,null=True,related_name="dataproducts",help_text='SAP this dataproduct was generated out of (NULLable).')
global_identifier=OneToOneField('SIPidentifier',editable=False,null=False,on_delete=PROTECT,help_text='The global unique identifier for LTA SIP.')
global_identifier=OneToOneField('SIPidentifier',editable=False,null=False,on_delete=PROTECT,help_text='The global unique identifier for LTA SIP.')
# please note that the all fields except deleted_since and expected_size become immutable when its dataproduct's producing subtask is finished (See SQL triggers)
public_since=DateTimeField(null=True,help_text='Dataproduct is available for public download since this moment, or NULL if dataproduct is not (NULLable).')
public_since=DateTimeField(null=True,help_text='Dataproduct is available for public download since this moment, or NULL if dataproduct is not (NULLable).')
corrupted_since=DateTimeField(null=True,help_text='Earliest timestamp from which this dataproduct is known to be partially or fully corrupt, or NULL if dataproduct is not known to be corrupt (NULLable).')
corrupted_since=DateTimeField(null=True,help_text='Earliest timestamp from which this dataproduct is known to be partially or fully corrupt, or NULL if dataproduct is not known to be corrupt (NULLable).')
# please note that the dataproduct, storage_ticket fields become immutable when its dataproduct's producing subtask is finished (See SQL triggers)
classDataproductHash(BasicCommon):
classDataproductHash(BasicCommon):
dataproduct=ForeignKey('Dataproduct',related_name='hashes',on_delete=PROTECT,help_text='The dataproduct to which this hash refers.')
dataproduct=ForeignKey('Dataproduct',related_name='hashes',on_delete=PROTECT,help_text='The dataproduct to which this hash refers.')
hash_algorithm=ForeignKey('HashAlgorithm',null=False,on_delete=PROTECT,help_text='Algorithm used for hashing (MD5, AES256).')
hash_algorithm=ForeignKey('HashAlgorithm',null=False,on_delete=PROTECT,help_text='Algorithm used for hashing (MD5, AES256).')
# please note that the dataproduct, hash_algorithm, hash fields become immutable when its dataproduct's producing subtask is finished (See SQL triggers)