doc/book/en/04-00-define-schema.en.txt
changeset 145 d5acef862c58
parent 144 3159772915c4
parent 141 6d008838f2c9
child 146 f8035a67971a
equal deleted inserted replaced
144:3159772915c4 145:d5acef862c58
     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:: 04-01-schema-stdlib.en.txt
       
    21 .. include:: 04-02-schema-definition.en.txt
       
    22