server/test/data/schema.py
changeset 10487 49a5c38de1de
parent 10446 1e6655cff5ab
child 10646 45671fb330f5
--- a/server/test/data/schema.py	Thu Jul 02 16:13:05 2015 +0200
+++ b/server/test/data/schema.py	Thu Jul 02 10:15:47 2015 +0200
@@ -162,6 +162,22 @@
     })
 
 
+class Email(EntityType):
+    subject = String(fulltextindexed=True)
+    messageid = String(required=True, indexed=True, unique=True)
+    sender = SubjectRelation('EmailAddress', cardinality='?*')
+    recipients = SubjectRelation('EmailAddress')
+    attachment = SubjectRelation('File')
+
+
+class EmailPart(EntityType):
+    pass
+
+
+class EmailThread(EntityType):
+    see_also = SubjectRelation('EmailThread')
+
+
 class connait(RelationType):
     symmetric = True