lza-wowbot/ircbot/db.py
2020-07-13 00:02:04 -07:00

15 lines
280 B
Python

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()