| Line 668... |
Line 668... |
| 668 |
id = Field(Integer(unsigned=True), primary_key=True)
|
668 |
id = Field(Integer(unsigned=True), primary_key=True)
|
| 669 |
req_date = Field(Date, unique=True, default=func.curdate())
|
669 |
req_date = Field(Date, unique=True, default=func.curdate())
|
| 670 |
total = Field(Integer, default=0)
|
670 |
total = Field(Integer, default=0)
|
| 671 |
request_failed = Field(Integer, default=0)
|
671 |
request_failed = Field(Integer, default=0)
|
| 672 |
invalid_tin = Field(Integer, default=0)
|
672 |
invalid_tin = Field(Integer, default=0)
|
| 673 |
using_options(shortnames=True, default=0)
|
673 |
using_options(shortnames=True)
|
| 674 |
using_table_options(mysql_engine="InnoDB")
|
674 |
using_table_options(mysql_engine="InnoDB")
|
| 675 |
|
675 |
|
| 676 |
def initialize(dbname='dtr', db_hostname="localhost", echo=True, setup=True):
|
676 |
def initialize(dbname='dtr', db_hostname="localhost", echo=True, setup=True):
|
| 677 |
#metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
|
677 |
#metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
|
| 678 |
#metadata.bind = 'mysql://root:shop2020@localhost/catalog'
|
678 |
#metadata.bind = 'mysql://root:shop2020@localhost/catalog'
|