Subversion Repositories SmartDukaan

Rev

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

Rev 9404 Rev 9495
Line 191... Line 191...
191
    
191
    
192
class SnapdealInventorySnapshot(Entity):
192
class SnapdealInventorySnapshot(Entity):
193
    item_id = Field(Integer, primary_key=True,autoincrement=False)
193
    item_id = Field(Integer, primary_key=True,autoincrement=False)
194
    availability = Field(Integer)
194
    availability = Field(Integer)
195
    lastUpdatedOnSnapdeal = Field(DateTime)
195
    lastUpdatedOnSnapdeal = Field(DateTime)
-
 
196
    pendingOrders = Field(Integer)
196
    using_options(shortnames=True)
197
    using_options(shortnames=True)
197
    using_table_options(mysql_engine="InnoDB")
198
    using_table_options(mysql_engine="InnoDB")
198
    
199
    
199
def initialize(dbname='inventory', db_hostname="localhost"):
200
def initialize(dbname='inventory', db_hostname="localhost"):
200
    #metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
201
    #metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.