forked from MarseyWorld/MarseyWorld
14 lines
375 B
Python
14 lines
375 B
Python
from sqlalchemy import *
|
|
from files.__main__ import Base
|
|
|
|
class Marsey(Base):
|
|
__tablename__ = "marseys"
|
|
|
|
name = Column(String, primary_key=True)
|
|
author_id = Column(Integer, ForeignKey("users.id"))
|
|
tags = Column(String)
|
|
count = Column(Integer, default=0)
|
|
submitter_id = Column(Integer, ForeignKey("users.id"))
|
|
|
|
def __repr__(self):
|
|
return f"<Marsey(name={self.name})>" |