Subversion Repositories SmartDukaan

Rev

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

Rev 8247 Rev 8282
Line 9... Line 9...
9
from elixir.fields import Field
9
from elixir.fields import Field
10
from elixir.options import using_options, using_table_options
10
from elixir.options import using_options, using_table_options
11
from elixir.relationships import ManyToOne, OneToMany
11
from elixir.relationships import ManyToOne, OneToMany
12
from sqlalchemy.engine import create_engine
12
from sqlalchemy.engine import create_engine
13
from sqlalchemy.types import Integer, String, Float, DateTime, Boolean, Enum, \
13
from sqlalchemy.types import Integer, String, Float, DateTime, Boolean, Enum, \
14
    Numeric, BigInteger, LargeBinary
14
    Numeric, BigInteger, LargeBinary,Date
15
 
15
 
16
#===============================================================================
16
#===============================================================================
17
# Different entities in the model
17
# Different entities in the model
18
#===============================================================================
18
#===============================================================================
19
 
19
 
Line 482... Line 482...
482
    listingName = Field(String(128))
482
    listingName = Field(String(128))
483
    listingPrice = Field(Float)
483
    listingPrice = Field(Float)
484
    bluedartPaisaPayRef = Field(String(16))
484
    bluedartPaisaPayRef = Field(String(16))
485
    using_options(shortnames=True)
485
    using_options(shortnames=True)
486
    using_table_options(mysql_engine="InnoDB")
486
    using_table_options(mysql_engine="InnoDB")
-
 
487
 
-
 
488
class AmazonFbaSalesSnapshot(Entity):
-
 
489
    dateOfSale = Field(Date, primary_key=True)
-
 
490
    item_id = Field(Integer, primary_key=True)
-
 
491
    orderCount = Field(Integer)
-
 
492
    amazonFbaInventory = Field(Integer)
-
 
493
    isOutOfStock = Field(Boolean)
-
 
494
    salePrice = Field(Float)
-
 
495
    minFbaPrice = Field(Float)
-
 
496
    minMfnPrice = Field(Float) 
-
 
497
    using_options(shortnames=True)
-
 
498
    using_table_options(mysql_engine="InnoDB")
487
    
499
    
488
500