diff --git a/ircbot/db.py b/ircbot/db.py new file mode 100644 index 0000000..ea8b7c9 --- /dev/null +++ b/ircbot/db.py @@ -0,0 +1,15 @@ +import datetime +from peewee import * +import config + + +db = SqliteDatabase(config.SQLITE_DB_PATH) + +class BaseModel(Model): + class Meta: + database = db + +class User(BaseModel): + irc_nick = CharField() + account_index = IntegerField() + address_index = IntegerField()