Subversion Repositories SmartDukaan

Rev

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

Rev 5277 Rev 5387
Line 10... Line 10...
10
import elixir
10
import elixir
11
 
11
 
12
class Provider(Entity):
12
class Provider(Entity):
13
    id = Field(Integer, primary_key=True, autoincrement=True)
13
    id = Field(Integer, primary_key=True, autoincrement=True)
14
    name = Field(String(100))
14
    name = Field(String(100))
-
 
15
    isActive = Field(Boolean)
15
    details = OneToMany("ProviderDetails")
16
    details = OneToMany("ProviderDetails")
16
    using_options(shortnames=True)
17
    using_options(shortnames=True)
17
    using_table_options(mysql_engine="InnoDB")
18
    using_table_options(mysql_engine="InnoDB")
18
 
19
 
19
class ProviderDetails(Entity):
20
class ProviderDetails(Entity):