File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,18 @@ class Task(Base):
2121 session_id = Column (String , index = True )
2222 task_name = Column (String , nullable = False )
2323 status = Column (String , default = "queued" )
24+
25+ class Device (Base ):
26+ __tablename__ = "devices"
27+ id = Column (Integer , primary_key = True , index = True )
28+ owner_id = Column (Integer , ForeignKey ("users.id" ))
29+ name = Column (String , index = True )
30+ status = Column (String , default = "offline" )
31+
32+ class Service (Base ):
33+ __tablename__ = "services"
34+ id = Column (Integer , primary_key = True , index = True )
35+ name = Column (String , unique = True , nullable = False )
36+ type = Column (String , nullable = False ) # "ai", "compiler", "storage"
37+ endpoint = Column (String , nullable = False )
38+ status = Column (String , default = "active" )
You can’t perform that action at this time.
0 commit comments