Subversion Repositories SmartDukaan

Rev

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

Rev 15710 Rev 15791
Line 326... Line 326...
326
    message = Field(String(64))
326
    message = Field(String(64))
327
    response_time = Field(DateTime)
327
    response_time = Field(DateTime)
328
    created = Field(DateTime)
328
    created = Field(DateTime)
329
    using_options(shortnames=True)
329
    using_options(shortnames=True)
330
    using_table_options(mysql_engine="InnoDB")
330
    using_table_options(mysql_engine="InnoDB")
-
 
331
    
-
 
332
class MerchantSubOrders(Entity):
-
 
333
    orderId = Field(Integer, primary_key= True, autoincrement=False)
-
 
334
    merchantOrderId = Field(String(30), primary_key=True)
-
 
335
    merchantSubOrderId = Field(String(50), primary_key=True)
-
 
336
    storeId = Field(Integer)
-
 
337
    userId = Field(Integer)
-
 
338
    productCode = Field(String(50))
-
 
339
    brand = Field(String(30))
-
 
340
    productName = Field(String(50))
-
 
341
    amountPaid = Field(Float)
-
 
342
    quantity = Field(Integer)
-
 
343
    unitPrice = Field(Float)
-
 
344
    status = Field(String(30))
-
 
345
    createdTime = Field(DateTime)
-
 
346
    using_options(shortnames=True)
-
 
347
    using_table_options(mysql_engine="InnoDB")
331
 
348
 
332
    
349
    
333
def initialize(dbname='dtr', db_hostname="localhost", echo=True):
350
def initialize(dbname='dtr', db_hostname="localhost", echo=True):
334
    #metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
351
    #metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
335
    #metadata.bind = 'mysql://root:shop2020@localhost/catalog'
352
    #metadata.bind = 'mysql://root:shop2020@localhost/catalog'