Subversion Repositories SmartDukaan

Rev

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

Rev 7033 Rev 7073
Line 288... Line 288...
288
class DocumentStore(Entity):
288
class DocumentStore(Entity):
289
    docType = Field(Integer, primary_key=True, autoincrement=False)
289
    docType = Field(Integer, primary_key=True, autoincrement=False)
290
    docSource = Field(Integer, primary_key=True, autoincrement=False)
290
    docSource = Field(Integer, primary_key=True, autoincrement=False)
291
    document  = Field(LargeBinary)
291
    document  = Field(LargeBinary)
292
    using_options(shortnames=True)
292
    using_options(shortnames=True)
293
    using_table_options(mysql_engine="InnoDB")    
-
 
294
293
    using_table_options(mysql_engine="InnoDB")
-
 
294
    
-
 
295
class Company(Entity):
-
 
296
    id = Field(Integer, primary_key=True, autoincrement=True)
-
 
297
    name = Field(String(255))
-
 
298
    Address = Field(String(255))
-
 
299
    using_options(shortnames=True)
-
 
300
    using_table_options(mysql_engine="InnoDB")
-
 
301
    
-
 
302
class WalletForCompany(Entity):
-
 
303
    id = Field(Integer, primary_key=True, autoincrement=True)
-
 
304
    companyId = Field(Integer)
-
 
305
    amount = Field(Float)
-
 
306
    using_options(shortnames=True)
-
 
307
    using_table_options(mysql_engine="InnoDB")
-
 
308
    
-
 
309
class WalletHistoryForCompany(Entity):
-
 
310
    id = Field(Integer, primary_key=True, autoincrement=True)
-
 
311
    walletId = Field(Integer)
-
 
312
    amount = Field(Float)
-
 
313
    transactionTime = Field(DateTime)
-
 
314
    openingBal = Field(Float)
-
 
315
    closingBal = Field(Float)
-
 
316
    referenceNumber = Field(Integer)
-
 
317
    description = Field(String(255))
-
 
318
    using_options(shortnames=True)
-
 
319
    using_table_options(mysql_engine="InnoDB")
-
 
320
    
-
 
321
class RechargeTransaction(Entity):
-
 
322
    id = Field(Integer, primary_key=True, autoincrement=True)
-
 
323
    storeId = Field(Integer)
-
 
324
    amount = Field(Float)
-
 
325
    transactionTime = Field(DateTime)
-
 
326
    deviceNum = Field(String(64))
-
 
327
    deviceType = Field(Integer)
-
 
328
    isFrc = Field(Boolean)
-
 
329
    email = Field(String(255))
-
 
330
    discount = Field(Float)
-
 
331
    paymentAmount = Field(Float)
-
 
332
    payMethod = Field(Integer)
-
 
333
    status = Field(Integer)
-
 
334
    invoiceNumber = Field(Integer)
-
 
335
    circleId = Field(Integer)
-
 
336
    name = Field(String(255))
-
 
337
    simNum = Field(String(255))
-
 
338
    cafNum = Field(String(255))
-
 
339
    using_options(shortnames=True)
-
 
340
    using_table_options(mysql_engine="InnoDB")
-
 
341
295
342