mirror of
https://gitlab.aachen.ccc.de/inventory/in.git
synced 2025-07-07 19:24:21 +02:00
initial commit
This commit is contained in:
commit
0961d0e47d
15 changed files with 564 additions and 0 deletions
16
models.py
Normal file
16
models.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue