0f05a528972fef7ed50d22d40cb11aa29ea42271
[zzz-floof.git] / floof / model / users.py
1 #
2 # floof/floof/model/users.py
3 #
4 # Copyright (c) 2009 Scribblr
5 #
6
7 from elixir import Entity, Field, Unicode, belongs_to, has_many
8
9 class User(Entity):
10 name = Field(Unicode(20))
11 has_many('identity_urls', of_kind='IdentityURL')
12
13 class IdentityURL(Entity):
14 url = Field(Unicode(255))
15 belongs_to('user', of_kind='User')
16