Subversion Repositories SmartDukaan

Rev

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

Rev 16585 Rev 16595
Line 453... Line 453...
453
    show = Field(Boolean)
453
    show = Field(Boolean)
454
    offerCategory = Field(String(256))
454
    offerCategory = Field(String(256))
455
    promoImage = Field(String(256))
455
    promoImage = Field(String(256))
456
    ratings = Field(Integer)
456
    ratings = Field(Integer)
457
    downloads = Field(String(100)) 
457
    downloads = Field(String(100)) 
-
 
458
    appmaster_id = Field(Integer)
458
    using_options(shortnames=True)
459
    using_options(shortnames=True)
459
    using_table_options(mysql_engine="InnoDB")
460
    using_table_options(mysql_engine="InnoDB")
460
 
461
 
461
class app_affiliates(Entity):
462
class app_affiliates(Entity):
462
    id = Field(Integer, primary_key=True)
463
    id = Field(Integer, primary_key=True)
463
    name = Field(String(256))
464
    name = Field(String(256))
464
    isActive = Field(Boolean)
465
    isActive = Field(Boolean)
465
    using_options(shortnames=True)
466
    using_options(shortnames=True)
466
    using_table_options(mysql_engine="InnoDB")
467
    using_table_options(mysql_engine="InnoDB")
467
    
468
    
-
 
469
class appmasters(Entity):
-
 
470
    id = Field(Integer, primary_key=True, autoincrement=True)
-
 
471
    app_name = Field(String(256))
-
 
472
    package_name = Field(String(256))
-
 
473
    os_name = Field(Enum('ANDROID', 'IOS', 'WINDOWS'), default='ANDROID')
-
 
474
    shortDescription = Field(Text)
-
 
475
    longDescription = Field(Text)
-
 
476
    customerOneLiner = Field(String(512))
-
 
477
    retailerOneLiner = Field(String(512))
-
 
478
    using_options(shortnames=True)
-
 
479
    using_table_options(mysql_engine="InnoDB")
468
    
480
    
469
    
481
    
470
def initialize(dbname='dtr', db_hostname="localhost", echo=True):
482
def initialize(dbname='dtr', db_hostname="localhost", echo=True):
471
    #metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
483
    #metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
472
    #metadata.bind = 'mysql://root:shop2020@localhost/catalog'
484
    #metadata.bind = 'mysql://root:shop2020@localhost/catalog'