| 4754 |
mandeep.dh |
1 |
'''
|
|
|
2 |
Created on 20-Mar-2012
|
|
|
3 |
|
|
|
4 |
@author: Mandeep
|
|
|
5 |
'''
|
|
|
6 |
from elixir.entity import Entity
|
|
|
7 |
from elixir.fields import Field
|
|
|
8 |
from elixir.options import using_options, using_table_options
|
|
|
9 |
from sqlalchemy.types import Integer, Float, DateTime
|
|
|
10 |
|
|
|
11 |
class RevisionedPurchaseOrder(Entity):
|
|
|
12 |
purchaseOrderId = Field(Integer, primary_key=True, autoincrement=False)
|
|
|
13 |
itemId = Field(Integer, primary_key=True, autoincrement=False)
|
|
|
14 |
revision = Field(Integer, primary_key=True, autoincrement=False)
|
|
|
15 |
quantity = Field(Integer)
|
|
|
16 |
unfulfilledQuantity = Field(Float)
|
|
|
17 |
createdAt = Field(DateTime)
|
|
|
18 |
unitPrice = Field(Float)
|
|
|
19 |
using_options(shortnames=True)
|
|
|
20 |
using_table_options(mysql_engine="InnoDB")
|