doc/book/en/B020-define-schema.en.txt
changeset 286 451a74c5652c
parent 285 ce29a9498c83
child 287 adbf9a24c41e
equal deleted inserted replaced
285:ce29a9498c83 286:451a74c5652c
     1 .. -*- coding: utf-8 -*-
       
     2 
       
     3 Data model definition (*schema*)
       
     4 ================================
       
     5 
       
     6 The schema is the core piece of a `CubicWeb` application as it defines
       
     7 the data model handled. It is based on entities types already defined
       
     8 in the `CubicWeb` standard library and others, more specific, we would 
       
     9 expect to find in one or more Python files under the `schema` directory.
       
    10 
       
    11 At this point, it is important to make clear the difference between
       
    12 relation type and relation definition: a relation type is only a relation
       
    13 name with potentially other additionnal properties (see XXXX), whereas a 
       
    14 relation definition is a complete triplet 
       
    15 "<subject entity type> <relation type> <object entity type>". 
       
    16 A relation type could have been implied if none is related to a 
       
    17 relation definition of the schema.
       
    18 
       
    19 
       
    20 .. include:: B021-schema-stdlib.en.txt
       
    21 .. include:: B022-schema-definition.en.txt
       
    22