diff options
Diffstat (limited to '')
-rw-r--r-- | database/models.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/database/models.py b/database/models.py new file mode 100644 index 0000000..4b27806 --- /dev/null +++ b/database/models.py @@ -0,0 +1,17 @@ +from peewee import Model, CharField, SqliteDatabase + +import config + +db = SqliteDatabase(config.DATABASE) +db.connect() + +class Page(Model): + """ + Page of a website + """ + url = CharField() + title = CharField() + content = CharField() + + class Meta: + database = db |