Subversion Repositories SmartDukaan

Rev

Rev 6031 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6031 rajveer 1
'''
2
Created on 19-Sep-2012
3
 
4
@author: rajveer
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, DateTime
10
from elixir.relationships import OneToMany
6147 rajveer 11
import BaseOrder
6031 rajveer 12
 
13
class DigitalTransaction(Entity):
14
    '''
15
    classdocs
16
    '''
17
    id = Field(Integer, primary_key=True, autoincrement=True)
18
    createdOn = Field(DateTime)
19
    userId = Field(Integer)
20
    orders = OneToMany("BaseOrder")
21
    using_options(shortnames=True)
22
    using_table_options(mysql_engine="InnoDB")
23
 
24
    def __init__(self):
25
        '''
26
        Constructor
27
        '''
28
 
29
    def is_valid(self):
30
        return True