25 lines
332 B
Python
25 lines
332 B
Python
from lib import *
|
|
|
|
|
|
# db = peewee.MySQLDatabase(**conf["db"])
|
|
|
|
# db.connect()
|
|
|
|
db = None
|
|
|
|
|
|
"""
|
|
$ Base
|
|
|
|
Inherit from Base to define a new model in the
|
|
|
|
database. Base is the parent component for all
|
|
|
|
database models, as it is connected to db. \
|
|
|
|
"""
|
|
class Base(peewee.Model):
|
|
|
|
class Meta:
|
|
|
|
database = db
|