Subversion Repositories SmartDukaan

Rev

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

Rev 5326 Rev 5469
Line 116... Line 116...
116
    transaction_id = Field(Integer)
116
    transaction_id = Field(Integer)
117
    user_id = Field(Integer)
117
    user_id = Field(Integer)
118
    applied_on = Field(DateTime)
118
    applied_on = Field(DateTime)
119
    using_options(shortnames = True)
119
    using_options(shortnames = True)
120
    using_table_options(mysql_engine = "InnoDB")
120
    using_table_options(mysql_engine = "InnoDB")
-
 
121
 
-
 
122
class RechargeVoucher(Entity):
-
 
123
    id = Field(Integer, primary_key = True, autoincrement = True)
-
 
124
    voucherCode = Field(String(30))
-
 
125
    voucherType = Field(Integer)
-
 
126
    amount = Field(Numeric(precision=8, scale=2, asdecimal=False))
-
 
127
    available = Field(Boolean)
-
 
128
    issuedOn = Field(DateTime)
-
 
129
    expiredOn = Field(DateTime)
-
 
130
    redeemed = Field(Boolean)
-
 
131
    redeemedOn = Field(DateTime)
-
 
132
    email = Field(String(100))
-
 
133
    userId = Field(Integer)
-
 
134
    using_options(shortnames = True)
-
 
135
    using_table_options(mysql_engine = "InnoDB")
121
    
136
    
122
#===============================================================================
137
#===============================================================================
123
# Entity generated from Contact Us form
138
# Entity generated from Contact Us form
124
#===============================================================================
139
#===============================================================================
125
class UserCommunication(Entity):
140
class UserCommunication(Entity):