server/test/data-schema2sql/schema/schema.py
changeset 11289 3e69bccc2022
parent 10907 9ae707db5265
equal deleted inserted replaced
11288:ab0a1863248e 11289:3e69bccc2022
    62     __specializes_schema__ = True
    62     __specializes_schema__ = True
    63 
    63 
    64 class Societe(EntityType):
    64 class Societe(EntityType):
    65     nom  = String(maxsize=64, fulltextindexed=True)
    65     nom  = String(maxsize=64, fulltextindexed=True)
    66     web = String(maxsize=128)
    66     web = String(maxsize=128)
    67     tel  = Int()
    67     tel  = Int(unique=True)
    68     fax  = Int(constraints=[BoundaryConstraint('<=', Attribute('tel'))])
    68     fax  = Int(constraints=[BoundaryConstraint('<=', Attribute('tel'))])
    69     rncs = String(maxsize=32)
    69     rncs = String(maxsize=32)
    70     ad1  = String(maxsize=128)
    70     ad1  = String(maxsize=128)
    71     ad2  = String(maxsize=128)
    71     ad2  = String(maxsize=128)
    72     ad3  = String(maxsize=128)
    72     ad3  = String(maxsize=128)