initial commit

This commit is contained in:
jomo 2022-08-04 05:41:51 +02:00
commit 0961d0e47d
15 changed files with 564 additions and 0 deletions

16
models.py Normal file
View file

@ -0,0 +1,16 @@
from sqlalchemy import Column, ForeignKey, String, Text, Boolean
from database import Base
class Item(Base):
__tablename__ = "items"
id = Column(String, primary_key=True, index=True)
is_in = Column(String, ForeignKey(id, onupdate="CASCADE", ondelete="SET NULL"))
coords_bl = Column(String)
coords_tr = Column(String)
type = Column(String)
name = Column(String)
content = Column(Text)
note = Column(Text)
hidden = Column(Boolean, nullable=False)