Subversion Repositories SmartDukaan

Rev

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

Rev 6805 Rev 6848
Line 146... Line 146...
146
class EntityTag(Entity):
146
class EntityTag(Entity):
147
    tag = Field(String(100),primary_key=True)
147
    tag = Field(String(100),primary_key=True)
148
    entityId = Field(Integer, primary_key=True, autoincrement=False)
148
    entityId = Field(Integer, primary_key=True, autoincrement=False)
149
    using_options(shortnames=True)
149
    using_options(shortnames=True)
150
    using_table_options(mysql_engine="InnoDB")
150
    using_table_options(mysql_engine="InnoDB")
-
 
151
    
-
 
152
class Banner(Entity):
-
 
153
    bannerName = Field(String(100),primary_key=True)
-
 
154
    imageName = Field(String(100))
-
 
155
    link = Field(String(400))
-
 
156
    priority = Field(Integer)
-
 
157
    isActive = Field(Boolean)
-
 
158
    hasMap = Field(Boolean)
-
 
159
    using_options(shortnames=True)
-
 
160
    using_table_options(mysql_engine="InnoDB")
-
 
161
    
-
 
162
class BannerMap(Entity):
-
 
163
    bannerName = Field(String(100))
-
 
164
    mapLink = Field(String(400))
-
 
165
    coordinates = Field(String(20))
-
 
166
    using_options(shortnames=True)
-
 
167
    using_table_options(mysql_engine="InnoDB")
151
        
168
        
152
class ItemInsurerMapping(Entity):
169
class ItemInsurerMapping(Entity):
153
    id = Field(Integer, primary_key=True, autoincrement=True)
170
    id = Field(Integer, primary_key=True, autoincrement=True)
154
    itemId = Field(Integer)
171
    itemId = Field(Integer)
155
    insurerId = Field(Integer)
172
    insurerId = Field(Integer)