mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 06:00:59 -05:00
test
This commit is contained in:
parent
9593c75b67
commit
0f940705c0
@ -7,7 +7,7 @@ This is the SpiceBot Database
|
||||
# sopel imports
|
||||
from sopel.tools import Identifier
|
||||
import sopel.db
|
||||
from sopel.db import SopelDB, _deserialize, Nicknames, NickIDs
|
||||
from sopel.db import SopelDB, _deserialize
|
||||
|
||||
from .Config import config as botconfig
|
||||
|
||||
@ -21,6 +21,24 @@ import json
|
||||
BASE = declarative_base()
|
||||
|
||||
|
||||
class NickIDs(BASE):
|
||||
"""
|
||||
NickIDs SQLAlchemy Class
|
||||
"""
|
||||
__tablename__ = 'spice_nick_ids'
|
||||
nick_id = Column(Integer, primary_key=True)
|
||||
|
||||
|
||||
class Nicknames(BASE):
|
||||
"""
|
||||
Nicknames SQLAlchemy Class
|
||||
"""
|
||||
__tablename__ = 'spice_nicknames'
|
||||
nick_id = Column(Integer, ForeignKey('spice_nick_ids.nick_id'), primary_key=True)
|
||||
slug = Column(String(255), primary_key=True)
|
||||
canonical = Column(String(255))
|
||||
|
||||
|
||||
class NickValues(BASE):
|
||||
"""
|
||||
NickValues SQLAlchemy Class
|
||||
|
||||
Loading…
Reference in New Issue
Block a user