lza-wowbot/ircbot/db.py

16 lines
280 B
Python
Raw Normal View History

2020-07-13 07:02:04 +00:00
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()