Subversion Repositories SmartDukaan

Rev

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

Rev 16479 Rev 16480
Line 259... Line 259...
259
class RetailerLinks(Entity):
259
class RetailerLinks(Entity):
260
    id = Field(Integer(unsigned=True), primary_key=True)
260
    id = Field(Integer(unsigned=True), primary_key=True)
261
    retailer_id = Field(Integer(unsigned=True), unique=True)
261
    retailer_id = Field(Integer(unsigned=True), unique=True)
262
    agent_id = Field(Integer(unsigned=True))
262
    agent_id = Field(Integer(unsigned=True))
263
    code = Field(String(10), unique=True)
263
    code = Field(String(10), unique=True)
264
    mapped_with = Field(String)
264
    mapped_with = Field(String(256))
265
    activated = Field(DateTime,onupdate=func.now())
265
    activated = Field(DateTime,onupdate=func.now())
266
    user_id = Field(Integer(unsigned=True))
266
    user_id = Field(Integer(unsigned=True))
267
    created = Field(DateTime,default=func.now())
267
    created = Field(DateTime,default=func.now())
268
    using_options(shortnames=True)
268
    using_options(shortnames=True)
269
    using_table_options(mysql_engine="InnoDB")
269
    using_table_options(mysql_engine="InnoDB")
Line 441... Line 441...
441
    app_name = Field(String(256))
441
    app_name = Field(String(256))
442
    image_url = Field(String(256))
442
    image_url = Field(String(256))
443
    description = Field(String(256))
443
    description = Field(String(256))
444
    link = Field(String(256))
444
    link = Field(String(256))
445
    offer_active = Field(Boolean)
445
    offer_active = Field(Boolean)
446
    action = Field(String)
446
    action = Field(String(256))
447
    priority = Field(String)
447
    priority = Field(String(256))
448
    show = Field(Boolean)
448
    show = Field(Boolean)
449
    using_options(shortnames=True)
449
    using_options(shortnames=True)
450
    using_table_options(mysql_engine="InnoDB")
450
    using_table_options(mysql_engine="InnoDB")
451
 
451
 
452
class app_affiliates(Entity):
452
class app_affiliates(Entity):