Subversion Repositories SmartDukaan

Rev

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

Rev 22491 Rev 23081
Line 878... Line 878...
878
    collectionReference = Field(String(50))
878
    collectionReference = Field(String(50))
879
    amount = Field(Float)
879
    amount = Field(Float)
880
    settledAt = Field(DateTime)
880
    settledAt = Field(DateTime)
881
    using_options(shortnames=True)
881
    using_options(shortnames=True)
882
    using_table_options(mysql_engine="InnoDB")
882
    using_table_options(mysql_engine="InnoDB")
-
 
883
 
-
 
884
 
-
 
885
class Price_Drop_IMEI(Entity):
-
 
886
    id = Field(Integer, primary_key=True, autoincrement=True)
-
 
887
    price_drop = ManyToOne("Price_Drop")
-
 
888
    imei = Field(String(16))
-
 
889
    using_options(shortnames=True)
-
 
890
    using_table_options(mysql_engine="InnoDB")
-
 
891
 
-
 
892
class Price_Drop(Entity):
-
 
893
    id = Field(Integer, primary_key=True, autoincrement=True)
-
 
894
    item_id = Field(Integer)
-
 
895
    amount = Field(Float)
-
 
896
    affected_on = Field(Date)
-
 
897
    imeis = OneToMany("Price_Drop_IMEI")
-
 
898
    created_on = Field(DateTime)
-
 
899
    credit_note_number = Field(String(32))
-
 
900
    credit_note_date = Field(Date)
-
 
901
    using_options(shortnames=True)
-
 
902
    using_table_options(mysql_engine="InnoDB")
-
 
903
    
883
    
904
    
884
class PMSA(Entity):
905
class PMSA(Entity):
885
    id = Field(Integer, primary_key=True, autoincrement=True)
906
    id = Field(Integer, primary_key=True, autoincrement=True)
886
    name = Field(String(256))
907
    name = Field(String(256))
887
    phone = Field(String(10))
908
    phone = Field(String(10))