| Line 8... |
Line 8... |
| 8 |
from elixir.fields import Field
|
8 |
from elixir.fields import Field
|
| 9 |
from elixir.options import using_options, using_table_options
|
9 |
from elixir.options import using_options, using_table_options
|
| 10 |
from elixir.relationships import ManyToOne, OneToMany
|
10 |
from elixir.relationships import ManyToOne, OneToMany
|
| 11 |
from sqlalchemy.engine import create_engine
|
11 |
from sqlalchemy.engine import create_engine
|
| 12 |
from sqlalchemy.types import Integer, String, Float, DateTime, Boolean, Enum, Numeric
|
12 |
from sqlalchemy.types import Integer, String, Float, DateTime, Boolean, Enum, Numeric
|
| - |
|
13 |
from MySQLdb.constants.FLAG import AUTO_INCREMENT
|
| 13 |
|
14 |
|
| 14 |
#===============================================================================
|
15 |
#===============================================================================
|
| 15 |
# Different entities in the model
|
16 |
# Different entities in the model
|
| 16 |
#===============================================================================
|
17 |
#===============================================================================
|
| 17 |
|
18 |
|
| Line 229... |
Line 230... |
| 229 |
class EmiScheme(Entity):
|
230 |
class EmiScheme(Entity):
|
| 230 |
id = Field(Integer, primary_key=True)
|
231 |
id = Field(Integer, primary_key=True)
|
| 231 |
gatewayId = Field(Integer)
|
232 |
gatewayId = Field(Integer)
|
| 232 |
bankId = Field(Integer)
|
233 |
bankId = Field(Integer)
|
| 233 |
tenure = Field(Integer)
|
234 |
tenure = Field(Integer)
|
| 234 |
bankName = String(256)
|
235 |
bankName = Field(String(256))
|
| 235 |
tenureDescription = String(256)
|
236 |
tenureDescription = Field(String(256))
|
| 236 |
minAmount = Field(Integer)
|
237 |
minAmount = Field(Integer)
|
| 237 |
chargeType = Field(Integer)
|
238 |
chargeType = Field(Integer)
|
| 238 |
chargeValue = Field(Integer)
|
239 |
chargeValue = Field(Integer)
|
| 239 |
using_options(shortnames=True)
|
240 |
using_options(shortnames=True)
|
| 240 |
using_table_options(mysql_engine="InnoDB")
|
241 |
using_table_options(mysql_engine="InnoDB")
|
| 241 |
|
242 |
|
| 242 |
class MiscCharges(Entity):
|
243 |
class MiscCharges(Entity):
|
| 243 |
transaction = ManyToOne("Transaction", primary_key=True)
|
244 |
transaction = ManyToOne("Transaction", primary_key=True)
|
| 244 |
chargeType = Field(Integer, primary_key=True)
|
245 |
chargeType = Field(Integer, primary_key=True, autoincrement=False)
|
| 245 |
chargeAmount = Field(Float)
|
246 |
chargeAmount = Field(Float)
|
| 246 |
using_options(shortnames=True)
|
247 |
using_options(shortnames=True)
|
| 247 |
using_table_options(mysql_engine="InnoDB")
|
248 |
using_table_options(mysql_engine="InnoDB")
|
| 248 |
|
249 |
|