Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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
11
 
12
class DigitalTransaction(Entity):
13
    '''
14
    classdocs
15
    '''
16
    id = Field(Integer, primary_key=True, autoincrement=True)
17
    createdOn = Field(DateTime)
18
    userId = Field(Integer)
19
    orders = OneToMany("BaseOrder")
20
    using_options(shortnames=True)
21
    using_table_options(mysql_engine="InnoDB")
22
 
23
    def __init__(self):
24
        '''
25
        Constructor
26
        '''
27
 
28
    def is_valid(self):
29
        return True