Subversion Repositories SmartDukaan

Rev

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

Rev 7825 Rev 7883
Line 48... Line 48...
48
    source_start_time = Field(DateTime)
48
    source_start_time = Field(DateTime)
49
    trust_level = Field(Float)
49
    trust_level = Field(Float)
50
    last_login = Field(DateTime)
50
    last_login = Field(DateTime)
51
    last_logout = Field(DateTime)
51
    last_logout = Field(DateTime)
52
    active_since = Field(DateTime)
52
    active_since = Field(DateTime)
-
 
53
    fbusers = OneToMany("FacebookUser")
-
 
54
    addresses = OneToMany("Address")
-
 
55
    using_options(shortnames=True)
-
 
56
    using_table_options(mysql_engine="InnoDB")
-
 
57
 
53
    is_facebook_user = Field(Boolean)
58
class FacebookUser(Entity):
-
 
59
    user = ManyToOne("User", primary_key=True)
54
    facebook_access_token = Field(String(200))
60
    facebook_access_token = Field(String(200))
55
    facebook_id = Field(String(50))
61
    facebook_id = Field(String(50))
56
    addresses = OneToMany("Address")
-
 
57
    using_options(shortnames=True)
62
    using_options(shortnames=True)
58
    using_table_options(mysql_engine="InnoDB")
63
    using_table_options(mysql_engine="InnoDB")
59
 
64
 
60
class Line(Entity):
65
class Line(Entity):
61
    cart = ManyToOne("Cart", primary_key=True)
66
    cart = ManyToOne("Cart", primary_key=True)