Subversion Repositories SmartDukaan

Rev

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

Rev 4303 Rev 4394
Line 141... Line 141...
141
    orders = OneToMany("Order")
141
    orders = OneToMany("Order")
142
    coupon_code = Field(String(20))
142
    coupon_code = Field(String(20))
143
    using_options(shortnames=True)
143
    using_options(shortnames=True)
144
    using_table_options(mysql_engine="InnoDB")
144
    using_table_options(mysql_engine="InnoDB")
145
    
145
    
146
class Alerts(Entity):
146
class Alert(Entity):
147
    id = Field(Integer, primary_key=True, autoincrement=True)
147
    id = Field(Integer, primary_key=True, autoincrement=True)
148
    order_id = Field(Integer)
-
 
149
    valid = Field(Boolean)
-
 
150
    type = Field(Integer)
148
    type = Field(Integer)
151
    time_set = Field(DateTime)
149
    status = Field(Integer)
152
    comment = Field(String(100))
150
    timestamp = Field(DateTime)
153
    time_unset = Field(DateTime)
151
    description = Field(String(100))
154
    using_options(shortnames=True)
152
    using_options(shortnames=True)
155
    using_table_options(mysql_engine="InnoDB")
153
    using_table_options(mysql_engine="InnoDB")
156
    
154
    
157
class BatchNoGenerator(Entity):
155
class BatchNoGenerator(Entity):
158
    id=Field(Integer, primary_key=True)
156
    id=Field(Integer, primary_key=True)