| Line 497... |
Line 497... |
| 497 |
offer_price = Field(Integer)
|
497 |
offer_price = Field(Integer)
|
| 498 |
overridenCashBack = Field(Integer)
|
498 |
overridenCashBack = Field(Integer)
|
| 499 |
isCashBackOverriden = Field(Boolean)
|
499 |
isCashBackOverriden = Field(Boolean)
|
| 500 |
user_payout = Field(Integer)
|
500 |
user_payout = Field(Integer)
|
| 501 |
cashBackConsidered = Field(Boolean)
|
501 |
cashBackConsidered = Field(Boolean)
|
| - |
|
502 |
final_user_payout = Field(Integer)
|
| 502 |
using_options(shortnames=True)
|
503 |
using_options(shortnames=True)
|
| 503 |
using_table_options(mysql_engine="InnoDB")
|
504 |
using_table_options(mysql_engine="InnoDB")
|
| 504 |
|
505 |
|
| 505 |
class user_app_cashbacks(Entity):
|
506 |
class user_app_cashbacks(Entity):
|
| 506 |
user_id = Field(Integer)
|
507 |
user_id = Field(Integer)
|
| Line 548... |
Line 549... |
| 548 |
payout_time = Field(DateTime)
|
549 |
payout_time = Field(DateTime)
|
| 549 |
offer_price=Field(Float, default=0.0, server_default="0.0")
|
550 |
offer_price=Field(Float, default=0.0, server_default="0.0")
|
| 550 |
payout_amount=Field(Float, default=0.0, server_default="0.0")
|
551 |
payout_amount=Field(Float, default=0.0, server_default="0.0")
|
| 551 |
user_payout = Field(Float, default=0.0, server_default="0.0")
|
552 |
user_payout = Field(Float, default=0.0, server_default="0.0")
|
| 552 |
payout_description = Field(String(256))
|
553 |
payout_description = Field(String(256))
|
| - |
|
554 |
final_user_payout = Field(Integer)
|
| 553 |
using_options(shortnames=True)
|
555 |
using_options(shortnames=True)
|
| 554 |
using_table_options(mysql_engine="InnoDB")
|
556 |
using_table_options(mysql_engine="InnoDB")
|
| 555 |
|
557 |
|
| 556 |
def initialize(dbname='dtr', db_hostname="localhost", echo=True):
|
558 |
def initialize(dbname='dtr', db_hostname="localhost", echo=True):
|
| 557 |
#metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
|
559 |
#metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
|