Subversion Repositories SmartDukaan

Rev

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

Rev 6643 Rev 6644
Line 31... Line 31...
31
    id = Field(Integer, primary_key=True, autoincrement=True)
31
    id = Field(Integer, primary_key=True, autoincrement=True)
32
    awb_number = Field(String(100))
32
    awb_number = Field(String(100))
33
    provider = ManyToOne("Provider")
33
    provider = ManyToOne("Provider")
34
    is_available = Field(Boolean)
34
    is_available = Field(Boolean)
35
    type = Field(String(50))
35
    type = Field(String(50))
36
    updates = OneToMany("AwbUpdate")
-
 
37
    using_options(shortnames=True)
36
    using_options(shortnames=True)
38
    using_table_options(mysql_engine="InnoDB")
37
    using_table_options(mysql_engine="InnoDB")
39
    
38
    
40
class AwbUpdate(Entity):
39
class AwbUpdate(Entity):
41
    providerId = Field(Integer, primary_key=True, autoincrement=False)
40
    providerId = Field(Integer, primary_key=True, autoincrement=False)