Subversion Repositories SmartDukaan

Rev

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

Rev 1610 Rev 1891
Line 36... Line 36...
36
    username = Field(String(30), primary_key=True)
36
    username = Field(String(30), primary_key=True)
37
    password = Field(String(30))
37
    password = Field(String(30))
38
    using_options(shortnames=True)
38
    using_options(shortnames=True)
39
    using_table_options(mysql_engine="InnoDB")
39
    using_table_options(mysql_engine="InnoDB")
40
 
40
 
-
 
41
class Report(Entity):
-
 
42
    id = Field(Integer, primary_key=True, autoincrement=True)
-
 
43
    description = Field(String(100))
-
 
44
    controller = Field(String(100))
-
 
45
    using_options(shortnames=True)
-
 
46
    using_table_options(mysql_engine="InnoDB")
-
 
47
 
-
 
48
class ReportUser(Entity):
-
 
49
    username = Field(String(30), primary_key=True)
-
 
50
    password = Field(String(30))
-
 
51
    role = Field(Integer)
-
 
52
    using_options(shortnames=True)
-
 
53
    using_table_options(mysql_engine="InnoDB")
-
 
54
 
-
 
55
class ReportRoleAuthority(Entity):
-
 
56
    report = ManyToOne("Report", primary_key=True)
-
 
57
    role = Field(Integer, primary_key=True)
-
 
58
    using_options(shortnames=True)
-
 
59
    using_table_options(mysql_engine="InnoDB")
-
 
60
 
41
class UserEmail(Entity):
61
class UserEmail(Entity):
42
    id = Field(Integer, primary_key=True, autoincrement=True)
62
    id = Field(Integer, primary_key=True, autoincrement=True)
43
    emailTo = Field(String(100))
63
    emailTo = Field(String(100))
44
    emailFrom = Field(String(60))
64
    emailFrom = Field(String(60))
45
    subject = Field(String(120))
65
    subject = Field(String(120))