2024-04-21 02:17:47 -07:00
|
|
|
from sqlalchemy import Column, Integer, String, Text
|
2024-02-18 19:30:41 -08:00
|
|
|
|
2024-04-20 20:35:07 -07:00
|
|
|
from ttfrog.db.base import BaseObject
|
2024-02-18 19:30:41 -08:00
|
|
|
|
|
|
|
|
__all__ = [
|
2024-03-26 00:53:21 -07:00
|
|
|
"Skill",
|
|
|
|
|
"Proficiency",
|
2024-02-18 19:30:41 -08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
2024-04-20 20:35:07 -07:00
|
|
|
class Skill(BaseObject):
|
2024-02-18 19:30:41 -08:00
|
|
|
__tablename__ = "skill"
|
|
|
|
|
id = Column(Integer, primary_key=True, autoincrement=True)
|
|
|
|
|
name = Column(String, index=True, unique=True)
|
|
|
|
|
description = Column(Text)
|
|
|
|
|
|
|
|
|
|
def __repr__(self):
|
|
|
|
|
return str(self.name)
|
|
|
|
|
|
|
|
|
|
|
2024-04-20 20:35:07 -07:00
|
|
|
class Proficiency(BaseObject):
|
2024-02-18 19:30:41 -08:00
|
|
|
__tablename__ = "proficiency"
|
|
|
|
|
id = Column(Integer, primary_key=True, autoincrement=True)
|
|
|
|
|
name = Column(String, index=True, unique=True)
|
|
|
|
|
|
|
|
|
|
def __repr__(self):
|
|
|
|
|
return str(self.name)
|