22 lines
690 B
Python
22 lines
690 B
Python
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")
|