Subversion Repositories SmartDukaan

Rev

Rev 6906 | Rev 7033 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6906 Rev 6915
Line 275... Line 275...
275
    id = Field(Integer, primary_key=True, autoincrement=True)
275
    id = Field(Integer, primary_key=True, autoincrement=True)
276
    dob = Field(String(64))
276
    dob = Field(String(64))
277
    guardianName = Field(String(255))
277
    guardianName = Field(String(255))
278
    startDate = Field(DateTime)
278
    startDate = Field(DateTime)
279
    expiryDate = Field(DateTime)
279
    expiryDate = Field(DateTime)
280
    isDeclared = Field(Boolean)
280
    isDeclared = Field(Boolean, default=0)
281
    order = ManyToOne("Order")
281
    order = ManyToOne("Order")
282
    using_options(shortnames=True)
282
    using_options(shortnames=True)
283
    using_table_options(mysql_engine="InnoDB")
283
    using_table_options(mysql_engine="InnoDB")
284
    
284
    
-
 
285
    def __init__(self):
-
 
286
        self.isDeclared = 0
-
 
287
    
285
class DocumentStore(Entity):
288
class DocumentStore(Entity):
286
    docType = Field(Integer, primary_key=True, autoincrement=False)
289
    docType = Field(Integer, primary_key=True, autoincrement=False)
287
    docSource = Field(Integer, primary_key=True, autoincrement=False)
290
    docSource = Field(Integer, primary_key=True, autoincrement=False)
288
    document  = Field(LargeBinary)
291
    document  = Field(LargeBinary)
289
    using_options(shortnames=True)
292
    using_options(shortnames=True)