--FastAPI Table added
	--CHECK register_node
This commit is contained in:
george committed 2026-09-08 17:11:20 +05:30
1 parent 85f2b1884b
commit 7a0e8c7cd6
3 files changed
+104 -3

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
from sqlalchemy import Column, BigInteger, Integer, String
from database import Base
class NodeInterface(Base):
__tablename__ = "fastAPI_node_interface"
if_id = Column(
BigInteger,
primary_key=True
)
if_name = Column(
String,
nullable=False
)
if_nodeid = Column(
Integer,
nullable=False
)
host = Column(
String,
nullable=False
)
port = Column(
Integer,
nullable=False
)
dbname = Column(
String,
nullable=False
)
user = Column(
String,
nullable=False
)