+import datetime
+
from elixir import *
class Discussion(Entity):
comments = OneToMany('Comment')
class Comment(Entity):
- discussion = ManyToOne('Discussion')
+ time = Field(DateTime, default=datetime.datetime.now)
text = Field(Unicode(65536))
+ discussion = ManyToOne('Discussion')
+ user = ManyToOne('User')