Subversion Repositories SmartDukaan

Rev

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

Rev 2025 Rev 2358
Line 73... Line 73...
73
    
73
    
74
class CatalogDashboardUser(Entity):
74
class CatalogDashboardUser(Entity):
75
    username = Field(String(30), primary_key=True)
75
    username = Field(String(30), primary_key=True)
76
    password =  Field(String(30))
76
    password =  Field(String(30))
77
    loggedOn = Field(DateTime)
77
    loggedOn = Field(DateTime)
-
 
78
    role = Field(Integer)
78
    using_options(shortnames=True)
79
    using_options(shortnames=True)
79
    using_table_options(mysql_engine="InnoDB")    
80
    using_table_options(mysql_engine="InnoDB")    
80
    
81
    
81
def initialize(dbname='helper'):
82
def initialize(dbname='helper'):
82
    #metadata.bind = "sqlite:///message.sqlite" #need to read it from configserver.
83
    #metadata.bind = "sqlite:///message.sqlite" #need to read it from configserver.