cxvvxc
This commit is contained in:
parent
fc00422b04
commit
fd5aeb3df3
2 changed files with 25 additions and 0 deletions
12
files/classes/badge_def.py
Normal file
12
files/classes/badge_def.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
from sqlalchemy import *
|
||||||
|
from files.__main__ import Base
|
||||||
|
|
||||||
|
class BadgeDef(Base):
|
||||||
|
__tablename__ = "badge_defs"
|
||||||
|
|
||||||
|
id = Column(Integer, primary_key=True)
|
||||||
|
name = Column(String)
|
||||||
|
description = Column(String)
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return f"<BadgeDef(id={self.id})>"
|
13
files/classes/marsey.py
Normal file
13
files/classes/marsey.py
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
from sqlalchemy import *
|
||||||
|
from files.__main__ import Base
|
||||||
|
|
||||||
|
class Marsey(Base):
|
||||||
|
__tablename__ = "marseys"
|
||||||
|
|
||||||
|
name = Column(String, primary_key=True)
|
||||||
|
author = Column(Integer, ForeignKey("users.id"))
|
||||||
|
tags = Column(String, ForeignKey("users.id"))
|
||||||
|
count = Column(Integer)
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return f"<Marsey(name={self.name})>"
|
Loading…
Add table
Add a link
Reference in a new issue