Skip to content

Instantly share code, notes, and snippets.

@vchrombie
Created May 30, 2020 16:29
Show Gist options
  • Save vchrombie/54aa3fb0430a3dd39827ecc044224432 to your computer and use it in GitHub Desktop.
Save vchrombie/54aa3fb0430a3dd39827ecc044224432 to your computer and use it in GitHub Desktop.
classDiagram
ProsoulModel <|-- QualityModel
ProsoulModel <|-- Goal
ProsoulModel <|-- Attribute
ProsoulModel <|-- Metric
ProsoulModel <|-- Factoid
ProsoulModel <|-- MetricData
ProsoulModel <|-- DataSourceType
MetricData "1" -- "*" Metric : data (metric)
DataSourceType "1" -- "*" Metric : data_source_type (metric)
DataSourceType "1" -- "*" Factoid : data_source_type (factoid)
Metric "*" -- "*" Attribute : metrics (attribute)
Factoid "*" -- "*" Attribute : factoids (attribute)
Attribute "*" -- "*" Goal : attributes (goal)
Goal "*" -- "*" QualityModel : goals (quality model)
ProsoulModel : active : Boolean Field
ProsoulModel : created_at : DateTimeField
ProsoulModel : description : CharField
ProsoulModel : updated_at : DateTimeField
ProsoulModel : created_by : ForeignKey
Attribute : name : CharField
Attribute : factoids : ManyToManyField
Attribute : metrics : ManyToManyField
DataSourceType : name : CharField
Factoid : name : CharField
Factoid : data_source_type : ForeignKey
Goal : name : CharField
Goal : attributes : ManyToManyField
Metric : name : CharField
Metric : thresholds : CharField
Metric : reverse_thresholds : BooleanField
Metric : calculation_type : CharField
Metric : data : ForeignKey
Metric : data_source_type : ForeignKey
MetricData : implementation : CharField
MetricData : params : CharField
QualityModel : name : CharField
QualityModel : goals : ManyToManyField
One <|-- Two : abstract inheritence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment