Subversion Repositories SmartDukaan

Rev

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

Rev 6537 Rev 6643
Line 36... Line 36...
36
    updates = OneToMany("AwbUpdate")
36
    updates = OneToMany("AwbUpdate")
37
    using_options(shortnames=True)
37
    using_options(shortnames=True)
38
    using_table_options(mysql_engine="InnoDB")
38
    using_table_options(mysql_engine="InnoDB")
39
    
39
    
40
class AwbUpdate(Entity):
40
class AwbUpdate(Entity):
41
    id = Field(Integer, primary_key=True, autoincrement=True)
41
    providerId = Field(Integer, primary_key=True, autoincrement=False)
42
    awb = ManyToOne("Awb")
42
    awbNumber = Field(String(50), primary_key=True, autoincrement=False)
43
    location = Field(String(50))
43
    location = Field(String(50), primary_key=True, autoincrement=False)
44
    entry_date = Field(DateTime)
44
    date = Field(DateTime, primary_key=True, autoincrement=False)
45
    description = Field(String(100))
45
    status = Field(String(100), primary_key=True, autoincrement=False)
46
    comments = Field(String(100))
46
    description = Field(String(100), primary_key=True, autoincrement=False)
47
    using_options(shortnames=True)
47
    using_options(shortnames=True)
48
    using_table_options(mysql_engine="InnoDB")
48
    using_table_options(mysql_engine="InnoDB")
49
    
49
    
50
class WarehouseAllocation(Entity):
50
class WarehouseAllocation(Entity):
51
    pincode = Field(String(6), primary_key=True)
51
    pincode = Field(String(6), primary_key=True)