コード例 #1
0
 class BasicModel(models.Model):
     fields = [
         models.StringPkField(name="user", required=True),
         models.StringField(name="password", required=True)
     ]
コード例 #2
0
class ApiModel(models.Model):
    fields = [models.StringPkField(name="id", required=True)]
コード例 #3
0
class RateLimitModel(models.Model):
    fields = [
        models.StringPkField(name="id"),
        models.IntegerField(name="quota"),
        models.TimestampField(name="last_request")
    ]