Subversion Repositories SmartDukaan

Rev

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

Rev 483 Rev 501
Line 10... Line 10...
10
from elixir.relationships import OneToMany, ManyToOne
10
from elixir.relationships import OneToMany, ManyToOne
11
import datetime
11
import datetime
12
 
12
 
13
 
13
 
14
 
14
 
-
 
15
class BestSellers(Entity):
-
 
16
    item_id = Field(Integer, primary_key=True)
-
 
17
    priority = Field(Integer)
-
 
18
    status = Field(Integer)
-
 
19
    
-
 
20
class BestDeals(Entity):
-
 
21
    item_id = Field(Integer, primary_key=True)
-
 
22
    priority = Field(Integer)
-
 
23
    status = Field(Integer)
-
 
24
 
-
 
25
class LatestArrivals(Entity):
-
 
26
    item_id = Field(Integer, primary_key=True)
-
 
27
    priority = Field(Integer)
-
 
28
    status = Field(Integer)
-
 
29
 
15
class Warehouse(Entity):
30
class Warehouse(Entity):
16
    id = Field(Integer, primary_key=True, autoincrement=True)
31
    id = Field(Integer, primary_key=True, autoincrement=True)
17
    location = Field(String(200))
32
    location = Field(String(200))
18
    status = Field(Integer)
33
    status = Field(Integer)
19
    addedOn = Field(DateTime)
34
    addedOn = Field(DateTime)