Subversion Repositories SmartDukaan

Rev

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

Rev 746 Rev 759
Line 22... Line 22...
22
    status = Field(Integer)
22
    status = Field(Integer)
23
    otherInfo = Field(String(200))
23
    otherInfo = Field(String(200))
24
    using_options(shortnames=True)
24
    using_options(shortnames=True)
25
    using_table_options(mysql_engine="InnoDB")
25
    using_table_options(mysql_engine="InnoDB")
26
    
26
    
-
 
27
class LogisticsUser(Entity):
-
 
28
    username = Field(String(30), primary_key=True)
-
 
29
    password = Field(String(30))
-
 
30
    providerId = Field(Integer)
-
 
31
    using_options(shortnames=True)
-
 
32
    using_table_options(mysql_engine="InnoDB")
-
 
33
 
27
def initialize():
34
def initialize():
28
    #metadata.bind = "sqlite:///message.sqlite" #need to read it from configserver.
35
    #metadata.bind = "sqlite:///message.sqlite" #need to read it from configserver.
29
    metadata.bind = 'mysql://root:shop2020@localhost/helper'
36
    metadata.bind = 'mysql://root:shop2020@localhost/helper'
30
    metadata.bind.echo = True
37
    metadata.bind.echo = True
31
    setup_all(True)
38
    setup_all(True)
32
 
39
 
33
if __name__=="__main__":
40
if __name__=="__main__":
34
    initialize()
41
    initialize()
35
    
-
 
36
42
    
-
 
43