from peewee import Model, CharField, TextField, IntegerField, DateTimeField, PostgresqlDatabase import config import datetime db = PostgresqlDatabase(config.DB, host=config.DB_HOST, port=config.DB_PORT, user=config.DB_USER, password=config.DB_PASS, autocommit=True, autorollback=True) class Page(Model): """ Page of a website """ url = CharField() title = CharField(null=True) content = TextField(null=True) content_length = IntegerField() date_updated = DateTimeField(default=datetime.datetime.now) class Meta: database = db class Neodarznet(Page): """ Page of neodarz.net website """ pass class Nevrax(Page): """ Page of nevrax website """ pass