Subversion Repositories SmartDukaan

Rev

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

Rev 23096 Rev 23864
Line 59... Line 59...
59
    id=Field(Integer, primary_key = True)
59
    id=Field(Integer, primary_key = True)
60
    amount = Field(Integer)
60
    amount = Field(Integer)
61
    creditedOn = Field(DateTime)
61
    creditedOn = Field(DateTime)
62
    using_options(shortnames=True)
62
    using_options(shortnames=True)
63
    using_table_options(mysql_engine="InnoDB")
63
    using_table_options(mysql_engine="InnoDB")
64
    
64
 
65
class PendingRechargeCommissions(Entity):
65
class PendingRechargeCommissions(Entity):
66
    user_id=Field(Integer, primary_key=True)
66
    user_id=Field(Integer, primary_key=True)
67
    approvedAmountInPaise = Field(Integer)
67
    approvedAmountInPaise = Field(Integer)
68
    lastUpdated = Field(DateTime)
68
    lastUpdated = Field(DateTime)
69
    using_options(shortnames=True)
69
    using_options(shortnames=True)
70
    using_table_options(mysql_engine="InnoDB")
70
    using_table_options(mysql_engine="InnoDB")
-
 
71
 
-
 
72
    def __repr__(self):
-
 
73
        return "{0} {1} {2} {3}".format(self.brand or "", self.model_name or "", self.model_number or "", self.color or "")
71
    
74
 
-
 
75
class Line_Item_Imei(Entity):
-
 
76
    id = Field(Integer, primary_key=True, autoincrement=True)
-
 
77
    line_item_id = Field(Integer)
-
 
78
    serial_number = Field(String(16))
-
 
79
    using_options(shortnames=True)
-
 
80
    using_table_options(mysql_engine="InnoDB")
72
    
81
    
73
class LineItem(Entity):
82
class LineItem(Entity):
74
    id = Field(Integer, primary_key=True, autoincrement=True)
83
    id = Field(Integer, primary_key=True, autoincrement=True)
75
    item_id = Field(Integer)
84
    item_id = Field(Integer)
76
    productGroup = Field(String(100))
85
    productGroup = Field(String(100))