<s> from cleancat import * <EOL> from example import documents <EOL> class User ( Schema ) : <EOL> email = Email ( required = False ) <EOL> first_name = String ( required = False ) <EOL> last_name = String ( required = False ) <EOL> emails = List ( Email ( ) , required = False ) <EOL> datetime = DateTime ( required = False ) <EOL> datetime_local = DateTime ( required = False ) <EOL> balance = Integer ( required = False ) <EOL> class Content ( Schema ) : <EOL> text = String ( ) <EOL> lang = String ( ) <EOL> class Post ( Schema ) : <EOL> title = String ( ) <EOL> description = String ( required = False ) <EOL> author = MongoReference ( documents . User , required = False ) <EOL> editor = MongoReference ( documents . User , required = False ) <EOL> tags = List ( String ( ) , required = False ) <EOL> user_lists = List ( MongoReference ( documents . User ) , required = False ) <EOL> sections = List ( MongoEmbeddedReference ( documents . Content , Content ) , required = False ) <EOL> content = MongoEmbeddedReference ( documents . Content , Content , required = False ) <EOL> is_published = Bool ( ) <EOL> class Language ( Schema ) : <EOL> name = String ( ) <EOL> class Person ( Schema ) : <EOL> name = String ( ) <EOL> languages = List ( MongoEmbeddedReference ( documents . Language , Language ) , required = False ) <EOL> class DateTime ( Schema ) : <EOL> datetime = DateTime ( ) </s>
