示例#1
0
    class WatchedBase(peewee.Model):
        WID = peewee.CharField(unique=True)
        watched = peewee.BooleanField(default=False)
        date = peewee.DateTimeField(default=datetime.date(1900, 1, 1))

        class Meta:
            database = W_DB
示例#2
0
    class ContentBase(peewee.Model):
        name = peewee.CharField()
        accessed = peewee.DateTimeField(null=True)
        pack = peewee.TextField(null=True)

        class Meta:
            database = DB
示例#3
0
 class Trailers(WatchedBase):
     source = peewee.CharField()
     rating = peewee.CharField(null=True)
     genres = peewee.CharField(null=True)
     title = peewee.CharField()
     release = peewee.DateTimeField(default=datetime.date(1900, 1, 1))
     url = peewee.CharField(null=True)
     userAgent = peewee.CharField(null=True)
     thumb = peewee.CharField(null=True)
     broken = peewee.BooleanField(default=False)
     is3D = peewee.BooleanField(default=False)
     verified = peewee.BooleanField(default=True)