Subversion Repositories SmartDukaan

Rev

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

Rev 11606 Rev 11816
Line 533... Line 533...
533
    rank = Field(Integer)
533
    rank = Field(Integer)
534
    dealFreebieOption = Field(Integer)
534
    dealFreebieOption = Field(Integer)
535
    isActive = Field(Boolean)
535
    isActive = Field(Boolean)
536
    using_options(shortnames=True)
536
    using_options(shortnames=True)
537
    using_table_options(mysql_engine="InnoDB")
537
    using_table_options(mysql_engine="InnoDB")
-
 
538
    
-
 
539
class AmazonOutOfSync(Entity):
-
 
540
    item_id = Field(Integer, primary_key=True, autoincrement = False)
-
 
541
    mfn = Field(Boolean)
-
 
542
    fba = Field(Boolean)
-
 
543
    fbb = Field(Boolean)
-
 
544
    using_options(shortnames=True)
-
 
545
    using_table_options(mysql_engine="InnoDB")
538
 
546
 
539
 
547
 
540
def initialize(dbname='catalog', db_hostname="localhost"):
548
def initialize(dbname='catalog', db_hostname="localhost"):
541
    #metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
549
    #metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
542
    #metadata.bind = 'mysql://root:shop2020@localhost/catalog'
550
    #metadata.bind = 'mysql://root:shop2020@localhost/catalog'