server/test/datacomputed/schema.py
changeset 10633 d800ecd381f6
parent 10632 d89e9176d263
child 10799 ec97974b9010
equal deleted inserted replaced
10632:d89e9176d263 10633:d800ecd381f6
    34 
    34 
    35 
    35 
    36 class Company(EntityType):
    36 class Company(EntityType):
    37     score100 = Float(formula='Any AVG(NN) WHERE X employees E, N concerns E, N note100 NN')
    37     score100 = Float(formula='Any AVG(NN) WHERE X employees E, N concerns E, N note100 NN')
    38 
    38 
       
    39 
    39 class Note(EntityType):
    40 class Note(EntityType):
    40     note = Int()
    41     note = Int()
    41     note20 = Int(formula='Any N*20 WHERE X note N')
    42     note20 = Int(formula='Any N*20 WHERE X note N')
    42     note100 = Int(formula='Any N*20 WHERE X note N')
    43     note100 = Int(formula='Any N*20 WHERE X note N')
       
    44 
    43 
    45 
    44 class concerns(RelationDefinition):
    46 class concerns(RelationDefinition):
    45     subject = 'Note'
    47     subject = 'Note'
    46     object = 'Employee'
    48     object = 'Employee'
    47 
    49