📅  最后修改于: 2022-03-11 14:59:06.935000             🧑  作者: Mango
from mongoengine import Document
from mongoengine.fields import StringField
class User(Document):
meta = {'collection': 'user'}
first_name = StringField(required=True)
last_name = StringField(required=True)