| Line 121... |
Line 121... |
| 121 |
'COURIER_DELAY_OCTROI_DELAY', 'COURIER_DELAY_FORCES_OF_NATURE',\
|
121 |
'COURIER_DELAY_OCTROI_DELAY', 'COURIER_DELAY_FORCES_OF_NATURE',\
|
| 122 |
'COD_VERIFICATION_DELAY', 'PAYMENT_FLAGGED', 'OTHERS'))
|
122 |
'COD_VERIFICATION_DELAY', 'PAYMENT_FLAGGED', 'OTHERS'))
|
| 123 |
cod_reconciliation_timestamp = Field(DateTime)
|
123 |
cod_reconciliation_timestamp = Field(DateTime)
|
| 124 |
previousStatus = Field(Integer)
|
124 |
previousStatus = Field(Integer)
|
| 125 |
vendorId = Field(Integer)
|
125 |
vendorId = Field(Integer)
|
| - |
|
126 |
orderInventory = OneToMany("OrderInventory")
|
| 126 |
using_options(shortnames=True)
|
127 |
using_options(shortnames=True)
|
| 127 |
using_table_options(mysql_engine="InnoDB")
|
128 |
using_table_options(mysql_engine="InnoDB")
|
| 128 |
|
129 |
|
| 129 |
class Transaction(Entity):
|
130 |
class Transaction(Entity):
|
| 130 |
id = Field(Integer, primary_key=True, autoincrement=True)
|
131 |
id = Field(Integer, primary_key=True, autoincrement=True)
|
| Line 161... |
Line 162... |
| 161 |
class TransactionRequiringExtraProcessing(Entity):
|
162 |
class TransactionRequiringExtraProcessing(Entity):
|
| 162 |
transaction_id = Field(Integer, primary_key=True, autoincrement=False)
|
163 |
transaction_id = Field(Integer, primary_key=True, autoincrement=False)
|
| 163 |
category = Field(Enum('COD_VERIFICATION', 'DELAYED_DELIVERY'), primary_key=True, autoincrement=False)
|
164 |
category = Field(Enum('COD_VERIFICATION', 'DELAYED_DELIVERY'), primary_key=True, autoincrement=False)
|
| 164 |
using_options(shortnames=True)
|
165 |
using_options(shortnames=True)
|
| 165 |
using_table_options(mysql_engine="InnoDB")
|
166 |
using_table_options(mysql_engine="InnoDB")
|
| - |
|
167 |
|
| - |
|
168 |
class OrderInventory(Entity):
|
| - |
|
169 |
order = ManyToOne("Order", primary_key=True)
|
| - |
|
170 |
itemId = Field(Integer)
|
| - |
|
171 |
timestamp = Field(DateTime)
|
| - |
|
172 |
hotspotAction = Field(Integer)
|
| - |
|
173 |
estimate = Field(Integer)
|
| - |
|
174 |
using_options(shortnames=True)
|
| - |
|
175 |
using_table_options(mysql_engine="InnoDB")
|