@@ -0,0 +1,927 @@
+'''This module defines application data models.'''%0Afrom . import db%0A%0A%0Aclass Member(db.EmbeddedDocument):%0A    '''Represents person, participating in this random thing.'''%0A%0A    name = db.StringField(unique=True, required=True)%0A    #email = db.StringField(unique=True, required=True)%0A%0A    def __init__(self, *, name, **kwargs):%0A        super().__init__(**kwargs)%0A        self.name = name%0A%0A    def __repr__(self):%0A        return '%3CMember %7B%7D%3E'.format(self.name)%0A%0A%0Aclass Room(db.Document):%0A    '''Represents group of members to choose from.'''%0A%0A    meta = %7B'collection': 'rooms'%7D%0A%0A    name = db.StringField(unique=True, required=True)%0A    members = db.SortedListField(db.EmbeddedDocumentField(Member), ordering='name')%0A%0A    def __init__(self, *, name, members, **kwargs):%0A        super().__init__(**kwargs)%0A        self.name = name%0A        self.members = members%0A%0A    def __repr__(self):%0A        return '%3CRoom %7B%7D%3E'.format(self.name)%0A

Define basic data models