Subversion Repositories SmartDukaan

Rev

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

Rev 9456 Rev 9575
Line 108... Line 108...
108
    delivery_timestamp = Field(DateTime)
108
    delivery_timestamp = Field(DateTime)
109
    outofstock_timestamp = Field(DateTime)
109
    outofstock_timestamp = Field(DateTime)
110
    lineitems = OneToMany("LineItem")
110
    lineitems = OneToMany("LineItem")
111
    transaction = ManyToOne("Transaction")
111
    transaction = ManyToOne("Transaction")
112
    insuranceDetails = OneToMany("InsuranceDetailForOrder")
112
    insuranceDetails = OneToMany("InsuranceDetailForOrder")
-
 
113
    dataInsuranceDetails = OneToMany("DataInsuranceDetailForOrder")
113
    jacket_number = Field(Integer)
114
    jacket_number = Field(Integer)
114
    receiver = Field(String(50))
115
    receiver = Field(String(50))
115
    batchNo = Field(Integer)
116
    batchNo = Field(Integer)
116
    serialNo = Field(Integer)
117
    serialNo = Field(Integer)
117
    doaFlag = Field(Boolean)
118
    doaFlag = Field(Boolean)
Line 292... Line 293...
292
    using_table_options(mysql_engine="InnoDB")
293
    using_table_options(mysql_engine="InnoDB")
293
    
294
    
294
    def __init__(self):
295
    def __init__(self):
295
        self.isDeclared = 0
296
        self.isDeclared = 0
296
    
297
    
-
 
298
class DataInsuranceDetailForOrder(Entity):
-
 
299
    id = Field(Integer, primary_key=True, autoincrement=True)
-
 
300
    startDate = Field(DateTime)
-
 
301
    expiryDate = Field(DateTime)
-
 
302
    isDeclared = Field(Boolean, default=0)
-
 
303
    order = ManyToOne("Order")
-
 
304
    using_options(shortnames=True)
-
 
305
    using_table_options(mysql_engine="InnoDB")
-
 
306
    
297
class DocumentStore(Entity):
307
class DocumentStore(Entity):
298
    docType = Field(Integer, primary_key=True, autoincrement=False)
308
    docType = Field(Integer, primary_key=True, autoincrement=False)
299
    docSource = Field(Integer, primary_key=True, autoincrement=False)
309
    docSource = Field(Integer, primary_key=True, autoincrement=False)
300
    document  = Field(LargeBinary)
310
    document  = Field(LargeBinary)
301
    using_options(shortnames=True)
311
    using_options(shortnames=True)