1'''
21. Configuration
32. Mapping Objects
4
5* flask mongoengine step 2
6
7-To declare a model that represents a Mongo document,
8create a class that inherits from Document and declare
9each of the fields.'''
10import mongoengine as me
11
12class Movie(me.Document):
13 title = me.StringField(required=True)
14 year = me.IntField()
15 rated = me.StringField()
16 director = me.StringField()
17 actors = me.ListField()