Subversion Repositories SmartDukaan

Rev

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

Rev 4004 Rev 4008
Line 5... Line 5...
5
'''
5
'''
6
 
6
 
7
from elixir import *
7
from elixir import *
8
from elixir.entity import Entity
8
from elixir.entity import Entity
9
from elixir.fields import Field
9
from elixir.fields import Field
10
from sqlalchemy.types import Integer, Boolean
-
 
11
from sqlalchemy import create_engine
-
 
12
from elixir.relationships import OneToMany, ManyToOne
10
from elixir.relationships import OneToMany, ManyToOne
-
 
11
from shop2020.model.v1.order.impl.model import ReturnOrder
-
 
12
from shop2020.thriftpy.model.v1.order.ttypes import ExtraTransactionProcessingType
-
 
13
from sqlalchemy import create_engine
-
 
14
from sqlalchemy.types import Integer, Boolean
13
import datetime
15
import datetime
14
import elixir
16
import elixir
15
 
17
 
16
from shop2020.model.v1.order.impl.model import ReturnOrder
-
 
17
 
18
 
18
#===============================================================================
19
#===============================================================================
19
# Different entities in the model
20
# Different entities in the model
20
#===============================================================================
21
#===============================================================================
21
 
22
 
Line 149... Line 150...
149
    
150
    
150
class BatchNoGenerator(Entity):
151
class BatchNoGenerator(Entity):
151
    id=Field(Integer, primary_key=True)
152
    id=Field(Integer, primary_key=True)
152
    using_options(shortnames=True)
153
    using_options(shortnames=True)
153
    using_table_options(mysql_engine="InnoDB")
154
    using_table_options(mysql_engine="InnoDB")
154
    
-
 
155
155
 
-
 
156
class TransactionRequiringExtraProcessing(Entity):
-
 
157
    id = Field(Integer, primary_key=True, autoincrement=True)
-
 
158
    transaction_id = Field(Integer)
-
 
159
    category = Field(Enum('COD_VERIFICATION', 'DELAYED_DELIVERY'))
-
 
160
    using_options(shortnames=True)
-
 
161
    using_table_options(mysql_engine="InnoDB")
-
 
162