Commit 98ddee16 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[schema] Add file_category relation to binary data objects

This relation will be used in later csets to link the file to a high-level file
format, that will be used to control low-level mime  type and format id fields.

Related to extranet #36331831
parent 32150c18b188
......@@ -44,3 +44,4 @@ for i, concept in enumerate(rset.entities()):
......@@ -85,6 +85,15 @@ class seda_keyword_reference_to_scheme(RelationDefinition):
inlined = True
class file_category(RelationDefinition):
subject = 'SEDABinaryDataObject'
object = 'Concept'
cardinality = '**'
constraints = [
RQLConstraint('O in_scheme CS, CS scheme_relation_type CR, CR name "file_category"'),
class container(RelationType):
inlined = False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment