Updates physical data model #2
This commit is contained in:
parent
1c17468fb2
commit
a900bca119
BIN
doc/pdm.png
BIN
doc/pdm.png
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 9.3 KiB |
14
doc/pdm.puml
14
doc/pdm.puml
|
@ -14,13 +14,11 @@ skinparam class {
|
||||||
!define rel(a,b,c,d,e) a c e
|
!define rel(a,b,c,d,e) a c e
|
||||||
!define pyk(n,t="MEDIUMINT NOT NULL UNSIGNED") <font color="red">PK:<b>n</b> <size:09>[t]</size></font>
|
!define pyk(n,t="MEDIUMINT NOT NULL UNSIGNED") <font color="red">PK:<b>n</b> <size:09>[t]</size></font>
|
||||||
!define fnk(n,r,t="MEDIUMINT NOT NULL UNSIGNED") <font color="blue">FK:<b>n</b> <size:09>[t]</size></font>
|
!define fnk(n,r,t="MEDIUMINT NOT NULL UNSIGNED") <font color="blue">FK:<b>n</b> <size:09>[t]</size></font>
|
||||||
!define pfk(n,r,t="MEDIUMINT NOT NULL UNSIGNED") <font color="orangered">PFK:<b>n</b> <size:09>[t]</size></font>
|
|
||||||
!define att(n,u,s) {field} <b>n</b> [s]
|
!define att(n,u,s) {field} <b>n</b> [s]
|
||||||
|
|
||||||
/' = = = = = = = CLASSE = = = = = = = '/
|
/' = = = = = = = CLASSE = = = = = = = '/
|
||||||
class product
|
class product
|
||||||
class category
|
class category
|
||||||
class prod_category <<assoc>>
|
|
||||||
|
|
||||||
/' = = = = = = = RELATION = = = = = = = '/
|
/' = = = = = = = RELATION = = = = = = = '/
|
||||||
rel(product,1..,--,1..*,category)
|
rel(product,1..,--,1..*,category)
|
||||||
|
@ -28,28 +26,20 @@ rel(product,1..,--,1..*,category)
|
||||||
/' = = = = = = = KEY = = = = = = = '/
|
/' = = = = = = = KEY = = = = = = = '/
|
||||||
class product {
|
class product {
|
||||||
pyk(id)
|
pyk(id)
|
||||||
|
fnk(substitute_id,product.id)
|
||||||
..
|
..
|
||||||
}
|
}
|
||||||
class category {
|
class category {
|
||||||
pyk(id)
|
pyk(id)
|
||||||
..
|
..
|
||||||
}
|
}
|
||||||
class prod_category <<assoc>> {
|
|
||||||
pfk(category_id,category.id)
|
|
||||||
pfk(product_id,product.id)
|
|
||||||
..
|
|
||||||
}
|
|
||||||
/' = = = = = = = ATTRIBUTE = = = = = = = '/
|
/' = = = = = = = ATTRIBUTE = = = = = = = '/
|
||||||
class product {
|
class product {
|
||||||
att(name,String,VARCHAR(200))
|
att(name,String,VARCHAR(200))
|
||||||
|
att(url,String,VARCHAR(255))
|
||||||
att(nutrition_grades,String,VARCHAR(1))
|
att(nutrition_grades,String,VARCHAR(1))
|
||||||
}
|
}
|
||||||
class category {
|
class category {
|
||||||
att(name,String,VARCHAR(200))
|
att(name,String,VARCHAR(200))
|
||||||
}
|
}
|
||||||
|
|
||||||
/' = = = = = = = ASSOCIATION = = = = = = = '/
|
|
||||||
rel(product,.,--,.,prod_category)
|
|
||||||
rel(category,.,-,.,prod_category)
|
|
||||||
|
|
||||||
@enduml
|
@enduml
|
||||||
|
|
Loading…
Reference in New Issue
Block a user