If you have an entity in SQL Alchmey you created can you at a later part get the name you specified of the column to use in a custom statement.
For example here is the first part of a data entity:
class ReportMetadataEntity(Base, ReportMetadata):
__tablename__ = "reports_metadata"
__mapper_args__ = {"eager_defaults": True}
id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4, name="id")
application_customer_id = Column(
String,
nullable=False,
name="application_customer_id",
)
Is there a way to call ReportMetadataEntity.id.name or some other attribute to get back the string "id"?
Thanks