コード例 #1
0
class LicenseExam(me.Document):
    year = me.IntField()
    institute = me.StringField()
    percent = me.FloatField()
    meta = {'allow_inheritance': True}
コード例 #2
0
class WRSEdpexTopic(me.Document):
    desc = me.StringField()
    slug = me.StringField()
    scores = me.EmbeddedDocumentListField(WRSEdpexScore, default=[])
コード例 #3
0
class RTJobEmployed(JobEmployed):
    program = me.StringField()
コード例 #4
0
class JobEmployed(me.Document):
    year = me.IntField()
    institute = me.StringField()
    percent = me.FloatField()
    meta = {'allow_inheritance': True}
コード例 #5
0
class RTLicenseExam(LicenseExam):
    program = me.StringField()
コード例 #6
0
ファイル: models.py プロジェクト: MUMT-IT/IT-microservices
class ServiceCenter(me.Document):
    name_th = me.StringField()
    name_en = me.StringField()
    slug = me.StringField(unique=True)