Subversion Repositories SmartDukaan

Rev

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

Rev 612 Rev 643
Line 97... Line 97...
97
    addresses = OneToMany("Address")
97
    addresses = OneToMany("Address")
98
    social_handles = OneToMany("SocialHandle")
98
    social_handles = OneToMany("SocialHandle")
99
    using_options(shortnames=True)
99
    using_options(shortnames=True)
100
 
100
 
101
class Line(Entity):
101
class Line(Entity):
102
    id = Field(Integer, primary_key=True, autoincrement=True)
102
    cart = ManyToOne("Cart", primary_key=True)
103
    item_id = Field(Integer)
103
    item_id = Field(Integer, primary_key=True)
104
    quantity = Field(Float)
104
    quantity = Field(Float)
105
    line_status = Field(Integer)
105
    line_status = Field(Integer)
106
    estimate = Field(Integer)
106
    estimate = Field(Integer)
107
    created_on = Field(DateTime)
107
    created_on = Field(DateTime)
108
    updated_on = Field(DateTime)
108
    updated_on = Field(DateTime)
109
    cart = ManyToOne("Cart")
-
 
110
    using_options(shortnames=True)
109
    using_options(shortnames=True)
111
    
110
    
112
class Cart(Entity):
111
class Cart(Entity):
113
    id = Field(Integer, primary_key=True, autoincrement=True)
112
    id = Field(Integer, primary_key=True, autoincrement=True)
114
    user_id = Field(Integer)
113
    user_id = Field(Integer)