MarseyWorld/files/classes/marsey.py

13 lines
329 B
Python
Raw Normal View History

2022-01-22 21:27:52 +00:00
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})>"