Initial Commit
This commit is contained in:
21
api/app/models/common/core/contour.py
Normal file
21
api/app/models/common/core/contour.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from sqlalchemy import Column, String, Integer
|
||||
from sqlalchemy.orm import relationship
|
||||
|
||||
from models.common.base import BaseModel
|
||||
|
||||
|
||||
class contour(BaseModel):
|
||||
"""
|
||||
description: Technological infrastructure contours.
|
||||
"""
|
||||
__tablename__ = "tcc_contours"
|
||||
_s_collection_name = "contours"
|
||||
_s_class_name = "contours"
|
||||
exclude_rels = ["vcenter", "pcentral"]
|
||||
|
||||
id = Column(Integer, primary_key=True, autoincrement=True, index=True)
|
||||
name = Column(String(64), unique=True, index=True, nullable=False)
|
||||
description = Column(String(255))
|
||||
|
||||
vcenter = relationship("vcenter", back_populates="contour")
|
||||
pcentral = relationship("pcentral", back_populates="contour")
|
||||
Reference in New Issue
Block a user