doc/book/en/B0010-define-schema.en.txt
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 14 Jan 2009 11:42:52 +0100
changeset 404 867f933eeb89
parent 292 2d9e83c34b23
child 1163 232aef110a0a
permissions -rw-r--r--
[documentation] update cube names and add links to their page on the forge

.. -*- coding: utf-8 -*-

Data model definition (*schema*)
================================

The schema is the core piece of a `CubicWeb` application as it defines
the data model handled. It is based on entities types already defined
in the `CubicWeb` standard library and others, more specific, we would 
expect to find in one or more Python files under the `schema` directory.

At this point, it is important to make clear the difference between
relation type and relation definition: a relation type is only a relation
name with potentially other additionnal properties (see XXXX), whereas a 
relation definition is a complete triplet 
"<subject entity type> <relation type> <object entity type>". 
A relation type could have been implied if none is related to a 
relation definition of the schema.


.. include:: B0011-schema-stdlib.en.txt
.. include:: B0012-schema-definition.en.txt