This commit is contained in:
Bernhard Radermacher
2025-10-10 14:28:22 +00:00
parent 904e3d2adf
commit 8a7bb1528c
2 changed files with 17 additions and 23 deletions

View File

@@ -4,23 +4,21 @@
top to bottom direction top to bottom direction
skinparam linetype ortho skinparam linetype ortho
abstract Base { package base {
id\t\t\t\tInteger\t\t<<Primary>> {field}
# __tablename__\tto_snake_case(__name__) {field} abstract Base {
} + id\t\t\t\tInteger\t\t<<PK>> {field}
'abstract DeclarativeBase { # __tablename__\tstr {field}
' + registry }
' + metadata
' # __name__ object to_snake_case {
' # __mapper__ name\tstr
' # __table__ }
' # __tablename__
' # __mapper_args__ object bidirectional_relationship {
' # __table_args__ cls\t\t\t\tclass
' - _sa_registry foreign_table_cls\tclass
' - _sa_inspect_type() }
' - _sa_inspect_instance()
'} }
'
'DeclarativeBase <|-- Base
@enduml @enduml

View File

@@ -37,7 +37,3 @@ class Base(DeclarativeBase):
return to_snake_case(cls.__name__) return to_snake_case(cls.__name__)
# noinspection PyPep8Naming