--- a/web/test/data/schema.py Thu Jan 07 12:20:50 2016 +0100
+++ b/web/test/data/schema.py Tue Feb 16 18:41:40 2016 +0100
@@ -92,6 +92,33 @@
class Ticket(EntityType):
title = String(maxsize=32, required=True, fulltextindexed=True)
concerns = SubjectRelation('Project', composite='object')
+ in_version = SubjectRelation('Version', composite='object',
+ cardinality='?*', inlined=True)
+
+class Version(EntityType):
+ name = String(required=True)
+
+class Filesystem(EntityType):
+ name = String()
+
+class DirectoryPermission(EntityType):
+ value = String()
+
+class parent_fs(RelationDefinition):
+ name = 'parent'
+ subject = 'Directory'
+ object = 'Filesystem'
+
+class Directory(EntityType):
+ name = String(required=True)
+ has_permission = SubjectRelation('DirectoryPermission', cardinality='*1',
+ composite='subject')
+
+class parent_directory(RelationDefinition):
+ name = 'parent'
+ subject = 'Directory'
+ object = 'Directory'
+ composite = 'object'
class Folder(EntityType):
name = String(required=True)