mirror of https://github.com/kianby/stacosys
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
573 B
Python
23 lines
573 B
Python
9 years ago
|
#!/usr/bin/python
|
||
|
# -*- coding: UTF-8 -*-
|
||
|
|
||
|
from peewee import Model
|
||
|
from peewee import CharField
|
||
|
from peewee import BooleanField
|
||
|
from peewee import ForeignKeyField
|
||
|
from app.services.database import get_db
|
||
|
from app.models.site import Site
|
||
|
|
||
|
class Report(Model):
|
||
|
name = CharField(unique=True)
|
||
|
email = CharField()
|
||
|
url = CharField()
|
||
|
published = BooleanField()
|
||
|
rejected = BooleanField()
|
||
|
subscribed = BooleanField()
|
||
|
unsubscribed = BooleanField()
|
||
|
site = ForeignKeyField(Site, related_name='report_site')
|
||
|
|
||
|
class Meta:
|
||
|
database = get_db()
|