Subversion Repositories SmartDukaan

Rev

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

Rev 9300 Rev 11653
Line 84... Line 84...
84
    discounts = OneToMany('Discount')
84
    discounts = OneToMany('Discount')
85
    insurer = Field(Integer)
85
    insurer = Field(Integer)
86
    insuranceAmount = Field(Float)
86
    insuranceAmount = Field(Float)
87
    dataProtectionInsurer =Field(Integer, default=0, server_default="0")
87
    dataProtectionInsurer =Field(Integer, default=0, server_default="0")
88
    dataProtectionAmount = Field(Float, default=0, server_default="0")
88
    dataProtectionAmount = Field(Float, default=0, server_default="0")
-
 
89
    dealText=Field(String(200))
-
 
90
    freebieId=Field(Integer)
89
    using_options(shortnames=True)
91
    using_options(shortnames=True)
90
    using_table_options(mysql_engine="InnoDB")
92
    using_table_options(mysql_engine="InnoDB")
91
    
93
    
92
class Cart(Entity):
94
class Cart(Entity):
93
    id = Field(Integer, primary_key=True, autoincrement=True)
95
    id = Field(Integer, primary_key=True, autoincrement=True)
Line 124... Line 126...
124
    coupons = OneToMany("Coupon")
126
    coupons = OneToMany("Coupon")
125
    created_on = Field(DateTime)
127
    created_on = Field(DateTime)
126
    type = Field(Integer)
128
    type = Field(Integer)
127
    using_options(shortnames = True)
129
    using_options(shortnames = True)
128
    using_table_options(mysql_engine = "InnoDB")
130
    using_table_options(mysql_engine = "InnoDB")
-
 
131
    
-
 
132
class PrivateDealUser(Entity):
-
 
133
    id = Field(Integer, primary_key=True)
-
 
134
    created_on = Field(DateTime)
-
 
135
    isActive = Field(Boolean)
129
 
136
 
130
class Coupon(Entity):
137
class Coupon(Entity):
131
    coupon_code = Field(String(20))
138
    coupon_code = Field(String(20))
132
    promotion = ManyToOne("Promotion")
139
    promotion = ManyToOne("Promotion")
133
    arguments = Field(String(200))
140
    arguments = Field(String(200))