Commit 49a87554 authored by Vincent Michel's avatar Vincent Michel
Browse files

[schema] First implementation of schema

parent 79c493c4639a
......@@ -16,3 +16,21 @@
# with this program. If not, see <http://www.gnu.org/licenses/>.
"""cubicweb-biblioviz schema"""
from yams.buildobjs import (EntityType, RelationDefinition, SubjectRelation,
String, Int, BigInt, Float, Date)
class Portail(EntityType):
nom = String(maxsize=256, indexed=True, fulltextindexed=True)
site = String(maxsize=256, indexed=True, fulltextindexed=True)
pays = String(maxsize=256, indexed=True, fulltextindexed=True)
retour = Boolean(indexed=True)
class Decompte(EntityType):
date = Date(indexed=True)
mois = Int(indexed=True)
heure = Int(indexed=True)
entrees = Int(indexed=True)
portail = SubjectRelation('Portail', cardinality='1*', inlined=True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment