wip
This commit is contained in:
@@ -4,23 +4,21 @@
|
|||||||
top to bottom direction
|
top to bottom direction
|
||||||
skinparam linetype ortho
|
skinparam linetype ortho
|
||||||
|
|
||||||
|
package base {
|
||||||
|
|
||||||
abstract Base {
|
abstract Base {
|
||||||
id\t\t\t\tInteger\t\t<<Primary>> {field}
|
+ id\t\t\t\tInteger\t\t<<PK>> {field}
|
||||||
# __tablename__\tto_snake_case(__name__) {field}
|
# __tablename__\tstr {field}
|
||||||
|
}
|
||||||
|
|
||||||
|
object to_snake_case {
|
||||||
|
name\tstr
|
||||||
|
}
|
||||||
|
|
||||||
|
object bidirectional_relationship {
|
||||||
|
cls\t\t\t\tclass
|
||||||
|
foreign_table_cls\tclass
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
'abstract DeclarativeBase {
|
|
||||||
' + registry
|
|
||||||
' + metadata
|
|
||||||
' # __name__
|
|
||||||
' # __mapper__
|
|
||||||
' # __table__
|
|
||||||
' # __tablename__
|
|
||||||
' # __mapper_args__
|
|
||||||
' # __table_args__
|
|
||||||
' - _sa_registry
|
|
||||||
' - _sa_inspect_type()
|
|
||||||
' - _sa_inspect_instance()
|
|
||||||
'}
|
|
||||||
'
|
|
||||||
'DeclarativeBase <|-- Base
|
|
||||||
@enduml
|
@enduml
|
||||||
|
|||||||
@@ -37,7 +37,3 @@ class Base(DeclarativeBase):
|
|||||||
return to_snake_case(cls.__name__)
|
return to_snake_case(cls.__name__)
|
||||||
|
|
||||||
|
|
||||||
# noinspection PyPep8Naming
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user