digraph "G" {
style="filled"
bgcolor="#F7F7F7"
fontsize="12"
labelloc="t"
concentrate="1"
splines="polyline"
overlap=""
nodesep="1"
rankdir="LR"
pad="0.5"
ranksep="2"
esep="1"
fontname="Helvetica Neue"
appmodelsboardsboard:id -> appmodelsboardsboardsetting:board_id [
label=" "
xlabel="HasMany
customFields"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsboardsboard:id -> appmodelsboardspost:board_id [
label=" "
xlabel="HasMany
posts"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsboardsboardcomment:post_id -> appmodelsboardspost:id [
label=" "
xlabel="BelongsTo
post"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsboardsboardcomment:user_id -> appmodelsmembersuser:id [
label=" "
xlabel="BelongsTo
user"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsboardsboardcomment:parent_id -> appmodelsboardsboardcomment:id [
label=" "
xlabel="BelongsTo
parent"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsboardsboardcomment:id -> appmodelsboardsboardcomment:parent_id [
label=" "
xlabel="HasMany
children"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsboardsboardsetting:board_id -> appmodelsboardsboard:id [
label=" "
xlabel="BelongsTo
board"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsboardspost:id -> appmodelscommonsfile:fileable_id [
label=" "
xlabel="MorphMany
files"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelsboardspost:id -> appmodelsboardsboardcomment:post_id [
label=" "
xlabel="HasMany
comments"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsboardspost:board_id -> appmodelsboardsboard:id [
label=" "
xlabel="BelongsTo
board"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsboardspostcustomfieldvalue:post_id -> appmodelsboardspost:id [
label=" "
xlabel="BelongsTo
post"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsboardspostcustomfieldvalue:field_id -> appmodelsboardsboardsetting:id [
label=" "
xlabel="BelongsTo
field"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelscommonscategory:parent_id -> appmodelscommonscategory:id [
label=" "
xlabel="BelongsTo
parent"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelscommonscategory:id -> appmodelscommonscategory:parent_id [
label=" "
xlabel="HasMany
children"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelscommonscategory:id -> appmodelsproductsproduct:category_id [
label=" "
xlabel="HasMany
products"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelscommonscategory -> appmodelscommonstag [
label=" "
xlabel="MorphToMany
tags"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelscommonscategoryfield:category_id -> appmodelscommonscategory:id [
label=" "
xlabel="BelongsTo
category"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelscommonscategorylog:category_id -> appmodelscommonscategory:id [
label=" "
xlabel="BelongsTo
category"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelscommonscategorytemplate:category_id -> appmodelscommonscategory:id [
label=" "
xlabel="BelongsTo
category"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelscommonsfile:fileable_id -> appmodelscommonsfile [
label=" "
xlabel="MorphTo
fileable"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelscommonsfile:uploaded_by -> appmodelsmembersuser:id [
label=" "
xlabel="BelongsTo
uploader"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelscommonsmenu:parent_id -> appmodelscommonsmenu:id [
label=" "
xlabel="BelongsTo
parent"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelscommonsmenu:id -> appmodelscommonsmenu:parent_id [
label=" "
xlabel="HasMany
children"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelscommonstag:tenant_id -> appmodelstenantstenant:id [
label=" "
xlabel="BelongsTo
tenant"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelscommonstag -> appmodelsproductsproduct [
label=" "
xlabel="MorphToMany
products"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelscommonstag -> appmodelsproductspart [
label=" "
xlabel="MorphToMany
parts"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelscommonstag -> appmodelsmaterialsmaterial [
label=" "
xlabel="MorphToMany
materials"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelsdesignbomtemplate:model_version_id -> appmodelsdesignmodelversion:id [
label=" "
xlabel="BelongsTo
modelVersion"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsdesignbomtemplate:id -> appmodelsdesignbomtemplateitem:bom_template_id [
label=" "
xlabel="HasMany
items"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsdesignbomtemplateitem:bom_template_id -> appmodelsdesignbomtemplate:id [
label=" "
xlabel="BelongsTo
template"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsdesigndesignmodel:id -> appmodelsdesignmodelversion:model_id [
label=" "
xlabel="HasMany
versions"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsdesignmodelversion:model_id -> appmodelsdesigndesignmodel:id [
label=" "
xlabel="BelongsTo
model"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsdesignmodelversion:id -> appmodelsdesignbomtemplate:model_version_id [
label=" "
xlabel="HasMany
bomTemplates"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsestimateestimate:model_set_id -> appmodelscommonscategory:id [
label=" "
xlabel="BelongsTo
modelSet"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsestimateestimate:id -> appmodelsestimateestimateitem:estimate_id [
label=" "
xlabel="HasMany
items"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsestimateestimateitem:estimate_id -> appmodelsestimateestimate:id [
label=" "
xlabel="BelongsTo
estimate"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsmainrequest:id -> appmodelsmainrequestflow:main_request_id [
label=" "
xlabel="HasMany
flows"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsmainrequestflow:main_request_id -> appmodelsmainrequest:id [
label=" "
xlabel="BelongsTo
mainRequest"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsmainrequestflow:flowable_id -> appmodelsmainrequestflow [
label=" "
xlabel="MorphTo
flowable"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelsmaterialsmaterial:id -> appmodelsmaterialsmaterialreceipt:material_id [
label=" "
xlabel="HasMany
receipts"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsmaterialsmaterial:id -> appmodelsqualityslot:material_id [
label=" "
xlabel="HasMany
lots"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsmaterialsmaterial:id -> appmodelscommonsfile:fileable_id [
label=" "
xlabel="MorphMany
files"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelsmaterialsmaterial -> appmodelscommonstag [
label=" "
xlabel="MorphToMany
tags"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelsmaterialsmaterialinspection:receipt_id -> appmodelsmaterialsmaterialreceipt:id [
label=" "
xlabel="BelongsTo
receipt"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsmaterialsmaterialinspection:id -> appmodelsmaterialsmaterialinspectionitem:inspection_id [
label=" "
xlabel="HasMany
items"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsmaterialsmaterialinspectionitem:inspection_id -> appmodelsmaterialsmaterialinspection:id [
label=" "
xlabel="BelongsTo
inspection"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsmaterialsmaterialreceipt:material_id -> appmodelsmaterialsmaterial:id [
label=" "
xlabel="BelongsTo
material"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsmaterialsmaterialreceipt:id -> appmodelsmaterialsmaterialinspection:receipt_id [
label=" "
xlabel="HasMany
inspections"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsmembersuser:id -> appmodelsmembersusertenant:user_id [
label=" "
xlabel="HasMany
userTenants"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsmembersuser:id -> appmodelsmembersusertenant:user_id [
label=" "
xlabel="HasOne
userTenant"
color="#D62828"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="none"
]
appmodelsmembersuser:id -> appmodelsmembersuserrole:user_id [
label=" "
xlabel="HasMany
userRoles"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsmembersuser:id -> appmodelscommonsfile:fileable_id [
label=" "
xlabel="MorphMany
files"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelsmembersusermenupermission:user_id -> appmodelsmembersuser:id [
label=" "
xlabel="BelongsTo
user"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsmembersusermenupermission:menu_id -> appmodelscommonsmenu:id [
label=" "
xlabel="BelongsTo
menu"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsmembersuserrole:user_id -> appmodelsmembersuser:id [
label=" "
xlabel="BelongsTo
user"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsmembersuserrole:tenant_id -> appmodelstenantstenant:id [
label=" "
xlabel="BelongsTo
tenant"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsmembersuserrole:role_id -> appmodelspermissionsrole:id [
label=" "
xlabel="BelongsTo
role"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsmembersusertenant:user_id -> appmodelsmembersuser:id [
label=" "
xlabel="BelongsTo
user"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsmembersusertenant:tenant_id -> appmodelstenantstenant:id [
label=" "
xlabel="BelongsTo
tenant"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsordersorder:id -> appmodelsordersorderitem:order_id [
label=" "
xlabel="HasMany
items"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsordersorder:id -> appmodelsordersorderhistory:order_id [
label=" "
xlabel="HasMany
histories"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsordersorder:id -> appmodelsordersorderversion:order_id [
label=" "
xlabel="HasMany
versions"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsordersorderhistory:order_id -> appmodelsordersorder:id [
label=" "
xlabel="BelongsTo
order"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsordersorderitem:id -> appmodelsordersorderitemcomponent:order_item_id [
label=" "
xlabel="HasMany
components"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsordersorderitem:order_id -> appmodelsordersorder:id [
label=" "
xlabel="BelongsTo
order"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsordersorderitemcomponent:order_item_id -> appmodelsordersorderitem:id [
label=" "
xlabel="BelongsTo
orderItem"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsordersorderversion:order_id -> appmodelsordersorder:id [
label=" "
xlabel="BelongsTo
order"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelspermissionspermissionoverride:model_id -> appmodelspermissionspermissionoverride [
label=" "
xlabel="MorphTo
model"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelspermissionsrole:id -> appmodelspermissionsrolemenupermission:role_id [
label=" "
xlabel="HasMany
menuPermissions"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelspermissionsrole:tenant_id -> appmodelstenantstenant:id [
label=" "
xlabel="BelongsTo
tenant"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelspermissionsrole:id -> appmodelsmembersuserrole:role_id [
label=" "
xlabel="HasMany
userRoles"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelspermissionsrolemenupermission:role_id -> appmodelspermissionsrole:id [
label=" "
xlabel="BelongsTo
role"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelspermissionsrolemenupermission:menu_id -> appmodelscommonsmenu:id [
label=" "
xlabel="BelongsTo
menu"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsproductscommoncode:parent_id -> appmodelsproductscommoncode:id [
label=" "
xlabel="BelongsTo
parent"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsproductscommoncode:id -> appmodelsproductscommoncode:parent_id [
label=" "
xlabel="HasMany
children"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsproductspart:category_id -> appmodelsproductscommoncode:id [
label=" "
xlabel="BelongsTo
category"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsproductspart:part_type_id -> appmodelsproductscommoncode:id [
label=" "
xlabel="BelongsTo
partType"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsproductspart -> appmodelscommonstag [
label=" "
xlabel="MorphToMany
tags"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelsproductsproduct:category_id -> appmodelscommonscategory:id [
label=" "
xlabel="BelongsTo
category"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsproductsproduct:id -> appmodelsproductsproductcomponent:parent_product_id [
label=" "
xlabel="HasMany
componentLines"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsproductsproduct:id -> appmodelsproductsproductcomponent:child_product_id [
label=" "
xlabel="HasMany
parentLines"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsproductsproduct:id -> product_components:parent_product_id [
label=" "
xlabel="BelongsToMany
children"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
product_components:child_product_id -> appmodelsproductsproduct:id [
label=" "
xlabel="BelongsToMany
children"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelsproductsproduct:id -> product_components:child_product_id [
label=" "
xlabel="BelongsToMany
parents"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
product_components:parent_product_id -> appmodelsproductsproduct:id [
label=" "
xlabel="BelongsToMany
parents"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelsproductsproduct:id -> appmodelscommonsfile:fileable_id [
label=" "
xlabel="MorphMany
files"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelsproductsproduct -> appmodelscommonstag [
label=" "
xlabel="MorphToMany
tags"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelsproductsproductcomponent:parent_product_id -> appmodelsproductsproduct:id [
label=" "
xlabel="BelongsTo
parentProduct"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsproductsproductcomponent:child_product_id -> appmodelsproductsproduct:id [
label=" "
xlabel="BelongsTo
childProduct"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsproductsproductcomponent:material_id -> appmodelsmaterialsmaterial:id [
label=" "
xlabel="BelongsTo
material"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsqualityslot:material_id -> appmodelsmaterialsmaterial:id [
label=" "
xlabel="BelongsTo
material"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelsqualityslot:id -> appmodelsqualityslotsale:lot_id [
label=" "
xlabel="HasMany
sales"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelsqualityslotsale:lot_id -> appmodelsqualityslot:id [
label=" "
xlabel="BelongsTo
lot"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelstenantsdepartment:parent_id -> appmodelstenantsdepartment:id [
label=" "
xlabel="BelongsTo
parent"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelstenantsdepartment:id -> appmodelstenantsdepartment:parent_id [
label=" "
xlabel="HasMany
children"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelstenantsdepartment:id -> department_user:department_id [
label=" "
xlabel="BelongsToMany
users"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
department_user:user_id -> appmodelsmembersuser:id [
label=" "
xlabel="BelongsToMany
users"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelstenantsdepartment:id -> appmodelspermissionspermissionoverride:model_id [
label=" "
xlabel="MorphMany
permissionOverrides"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelstenantsdepartment:id -> appmodelstenantspivotsdepartmentuser:department_id [
label=" "
xlabel="HasMany
departmentUsers"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelstenantspayment:subscription_id -> appmodelstenantssubscription:id [
label=" "
xlabel="BelongsTo
subscription"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelstenantspivotsdepartmentuser:department_id -> appmodelstenantsdepartment:id [
label=" "
xlabel="BelongsTo
department"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelstenantspivotsdepartmentuser:user_id -> appmodelsmembersuser:id [
label=" "
xlabel="BelongsTo
user"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelstenantsplan:id -> appmodelstenantssubscription:plan_id [
label=" "
xlabel="HasMany
subscriptions"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelstenantssettingfielddef:field_key -> appmodelstenantstenantfieldsetting:field_key [
label=" "
xlabel="HasMany
tenantSettings"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelstenantssubscription:tenant_id -> appmodelstenantstenant:id [
label=" "
xlabel="BelongsTo
tenant"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelstenantssubscription:plan_id -> appmodelstenantsplan:id [
label=" "
xlabel="BelongsTo
plan"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelstenantssubscription:id -> appmodelstenantspayment:subscription_id [
label=" "
xlabel="HasMany
payments"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelstenantstenant:plan_id -> appmodelstenantsplan:id [
label=" "
xlabel="BelongsTo
plan"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelstenantstenant:subscription_id -> appmodelstenantssubscription:id [
label=" "
xlabel="BelongsTo
subscription"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelstenantstenant:id -> appmodelsmembersusertenant:tenant_id [
label=" "
xlabel="HasMany
userTenants"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelstenantstenant:id -> user_tenants:tenant_id [
label=" "
xlabel="BelongsToMany
users"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
user_tenants:user_id -> appmodelsmembersuser:id [
label=" "
xlabel="BelongsToMany
users"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelstenantstenant:id -> appmodelspermissionsrole:tenant_id [
label=" "
xlabel="HasMany
roles"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelstenantstenant:id -> appmodelsmembersuserrole:tenant_id [
label=" "
xlabel="HasMany
userRoles"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelstenantstenant:id -> appmodelscommonsfile:fileable_id [
label=" "
xlabel="MorphMany
files"
color="#003049"
penwidth="1.8"
fontname="Helvetica Neue"
]
appmodelstenantstenantfieldsetting:field_key -> appmodelstenantssettingfielddef:field_key [
label=" "
xlabel="BelongsTo
fieldDef"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelstenantstenantfieldsetting:option_group_id -> appmodelstenantstenantoptiongroup:id [
label=" "
xlabel="BelongsTo
optionGroup"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelstenantstenantoptiongroup:id -> appmodelstenantstenantoptionvalue:group_id [
label=" "
xlabel="HasMany
values"
color="#FCBF49"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="crow"
arrowtail="none"
]
appmodelstenantstenantoptionvalue:group_id -> appmodelstenantstenantoptiongroup:id [
label=" "
xlabel="BelongsTo
group"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelstenantstenantuserprofile:user_id -> appmodelsmembersuser:id [
label=" "
xlabel="BelongsTo
user"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
appmodelstenantstenantuserprofile:department_id -> appmodelstenantsdepartment:id [
label=" "
xlabel="BelongsTo
department"
color="#F77F00"
penwidth="1.8"
fontname="Helvetica Neue"
dir="both"
arrowhead="tee"
arrowtail="crow"
]
"appmodelsapikey" [
label=<
| ApiKey |
| id (bigint) |
| key (varchar) |
| description (varchar) |
| is_active (tinyint) |
| created_at (timestamp) |
| updated_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsauditauditlog" [
label=<
| AuditLog |
| id (bigint) |
| tenant_id (bigint) |
| target_type (varchar) |
| target_id (bigint) |
| action (varchar) |
| before (json) |
| after (json) |
| actor_id (bigint) |
| ip (varchar) |
| ua (varchar) |
| created_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsboardsboard" [
label=<
| Board |
| id (bigint) |
| tenant_id (bigint) |
| board_code (varchar) |
| name (varchar) |
| description (varchar) |
| editor_type (varchar) |
| allow_files (tinyint) |
| max_file_count (int) |
| max_file_size (int) |
| extra_settings (json) |
| is_active (tinyint) |
| created_at (timestamp) |
| updated_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsboardsboardcomment" [
label=<
| BoardComment |
| id (bigint) |
| post_id (bigint) |
| tenant_id (bigint) |
| user_id (bigint) |
| parent_id (bigint) |
| content (text) |
| ip_address (varchar) |
| status (varchar) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsboardsboardsetting" [
label=<
| BoardSetting |
| id (bigint) |
| board_id (bigint) |
| name (varchar) |
| field_key (varchar) |
| field_type (varchar) |
| field_meta (json) |
| is_required (tinyint) |
| sort_order (int) |
| created_at (timestamp) |
| updated_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsboardspost" [
label=<
| Post |
| id (bigint) |
| tenant_id (bigint) |
| board_id (bigint) |
| user_id (bigint) |
| title (varchar) |
| content (longtext) |
| editor_type (varchar) |
| ip_address (varchar) |
| is_notice (tinyint) |
| is_secret (tinyint) |
| views (int) |
| status (varchar) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsboardspostcustomfieldvalue" [
label=<
| PostCustomFieldValue |
| id (bigint) |
| post_id (bigint) |
| field_id (bigint) |
| value (text) |
| created_at (timestamp) |
| updated_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscalculationcalculationconfig" [
label=<
| CalculationConfig |
| id (bigint) |
| tenant_id (bigint) |
| company_name (varchar) |
| formula_type (varchar) |
| version (varchar) |
| formula_expression (text) |
| parameters (json) |
| conditions (json) |
| validation_rules (json) |
| description (text) |
| is_active (tinyint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| created_by (bigint) |
| updated_by (bigint) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonscategory" [
label=<
| Category |
| id (bigint) |
| tenant_id (bigint) |
| parent_id (bigint) |
| code_group (varchar) |
| profile_code (varchar) |
| code (varchar) |
| name (varchar) |
| is_active (tinyint) |
| sort_order (int) |
| description (varchar) |
| created_by (bigint) |
| updated_by (bigint) |
| deleted_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonscategoryfield" [
label=<
| CategoryField |
| id (bigint) |
| tenant_id (bigint) |
| category_id (bigint) |
| field_key (varchar) |
| field_name (varchar) |
| field_type (varchar) |
| is_required (char) |
| sort_order (int) |
| default_value (varchar) |
| options (text) |
| description (varchar) |
| created_by (bigint) |
| updated_by (bigint) |
| deleted_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonscategorylog" [
label=<
| CategoryLog |
| id (bigint) |
| category_id (bigint) |
| tenant_id (bigint) |
| action (varchar) |
| changed_by (bigint) |
| changed_at (timestamp) |
| before_json (json) |
| after_json (json) |
| remarks (varchar) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonscategorytemplate" [
label=<
| CategoryTemplate |
| id (bigint) |
| tenant_id (bigint) |
| category_id (bigint) |
| version_no (int) |
| template_json (json) |
| applied_at (timestamp) |
| created_by (bigint) |
| updated_by (bigint) |
| deleted_by (bigint) |
| remarks (varchar) |
| created_at (timestamp) |
| updated_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonsclassification" [
label=<
| Classification |
| id (bigint) |
| tenant_id (bigint) |
| group (varchar) |
| code (varchar) |
| name (varchar) |
| is_active (tinyint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonsfile" [
label=<
| File |
| id (bigint) |
| tenant_id (bigint) |
| file_path (varchar) |
| original_name (varchar) |
| file_name (varchar) |
| file_name_old (varchar) |
| file_size (int) |
| mime_type (varchar) |
| description (varchar) |
| fileable_id (bigint) |
| fileable_type (varchar) |
| uploaded_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonsmenu" [
label=<
| Menu |
| id (bigint) |
| tenant_id (bigint) |
| parent_id (bigint) |
| name (varchar) |
| url (varchar) |
| is_active (tinyint) |
| sort_order (int) |
| hidden (tinyint) |
| is_external (tinyint) |
| external_url (varchar) |
| icon (varchar) |
| created_at (timestamp) |
| updated_at (timestamp) |
| created_by (bigint) |
| updated_by (bigint) |
| deleted_by (bigint) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonstag" [
label=<
| Tag |
| id (bigint) |
| tenant_id (bigint) |
| name (varchar) |
| created_at (timestamp) |
| updated_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsdesignbomtemplate" [
label=<
| BomTemplate |
| id (bigint) |
| tenant_id (bigint) |
| model_version_id (bigint) |
| name (varchar) |
| is_primary (tinyint) |
| notes (text) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
| calculation_schema (json) |
| company_type (varchar) |
| formula_version (varchar) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsdesignbomtemplateitem" [
label=<
| BomTemplateItem |
| id (bigint) |
| tenant_id (bigint) |
| bom_template_id (bigint) |
| ref_type (varchar) |
| ref_id (bigint) |
| qty (decimal) |
| waste_rate (decimal) |
| uom_id (bigint) |
| notes (varchar) |
| sort_order (int) |
| created_at (timestamp) |
| updated_at (timestamp) |
| is_calculated (tinyint) |
| calculation_formula (text) |
| depends_on (json) |
| calculation_config (json) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsdesigndesignmodel" [
label=<
| DesignModel |
| id (bigint) |
| tenant_id (bigint) |
| code (varchar) |
| name (varchar) |
| category_id (bigint) |
| lifecycle (varchar) |
| description (text) |
| is_active (tinyint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsdesignmodelversion" [
label=<
| ModelVersion |
| id (bigint) |
| tenant_id (bigint) |
| model_id (bigint) |
| version_no (int) |
| status (varchar) |
| effective_from (datetime) |
| effective_to (datetime) |
| notes (text) |
| is_active (tinyint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsestimateestimate" [
label=<
| Estimate |
| id (bigint) |
| tenant_id (bigint) |
| model_set_id (bigint) |
| estimate_no (varchar) |
| estimate_name (varchar) |
| customer_name (varchar) |
| project_name (varchar) |
| parameters (json) |
| calculated_results (json) |
| bom_data (json) |
| total_amount (decimal) |
| status (enum) |
| notes (text) |
| valid_until (date) |
| created_by (bigint) |
| updated_by (bigint) |
| deleted_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsestimateestimateitem" [
label=<
| EstimateItem |
| id (bigint) |
| tenant_id (bigint) |
| estimate_id (bigint) |
| sequence (int) |
| item_name (varchar) |
| item_description (text) |
| parameters (json) |
| calculated_values (json) |
| unit_price (decimal) |
| quantity (decimal) |
| total_price (decimal) |
| bom_components (json) |
| notes (text) |
| created_by (bigint) |
| updated_by (bigint) |
| deleted_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsestimatesmainrequestestimate" [
label=<>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmainrequest" [
label=<
| MainRequest |
| id (bigint) |
| tenant_id (bigint) |
| status_code (varchar) |
| description (text) |
| created_by (bigint) |
| updated_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmainrequestflow" [
label=<
| MainRequestFlow |
| id (bigint) |
| main_request_id (bigint) |
| flowable_type (varchar) |
| flowable_id (bigint) |
| status_code (varchar) |
| action (varchar) |
| content (text) |
| actor_id (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmaterialsmaterial" [
label=<
| Material |
| id (bigint) |
| tenant_id (bigint) |
| category_id (bigint) |
| name (varchar) |
| item_name (varchar) |
| specification (varchar) |
| material_code (varchar) |
| unit (varchar) |
| is_inspection (char) |
| search_tag (text) |
| remarks (text) |
| attributes (json) |
| options (json) |
| created_by (bigint) |
| updated_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmaterialsmaterialinspection" [
label=<
| MaterialInspection |
| id (bigint) |
| receipt_id (bigint) |
| tenant_id (bigint) |
| inspection_date (date) |
| inspector_name (varchar) |
| approver_name (varchar) |
| judgment_code (varchar) |
| status_code (varchar) |
| result_file_path (text) |
| remarks (text) |
| created_by (bigint) |
| updated_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmaterialsmaterialinspectionitem" [
label=<
| MaterialInspectionItem |
| id (bigint) |
| inspection_id (bigint) |
| item_name (varchar) |
| is_checked (char) |
| created_by (bigint) |
| updated_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmaterialsmaterialreceipt" [
label=<
| MaterialReceipt |
| id (bigint) |
| material_id (bigint) |
| tenant_id (bigint) |
| receipt_date (date) |
| lot_number (varchar) |
| received_qty (decimal) |
| unit (varchar) |
| supplier_name (varchar) |
| manufacturer_name (varchar) |
| purchase_price_excl_vat (decimal) |
| weight_kg (decimal) |
| status_code (varchar) |
| is_inspection (char) |
| inspection_date (date) |
| remarks (text) |
| created_by (bigint) |
| updated_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmembersuser" [
label=<
| User |
| id (bigint) |
| user_id (varchar) |
| phone (varchar) |
| options (json) |
| name (varchar) |
| email (varchar) |
| email_verified_at (timestamp) |
| password (varchar) |
| last_login_at (timestamp) |
| two_factor_secret (text) |
| two_factor_recovery_codes (text) |
| two_factor_confirmed_at (timestamp) |
| remember_token (varchar) |
| current_team_id (bigint) |
| profile_photo_path (varchar) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmembersusermenupermission" [
label=<>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmembersuserrole" [
label=<
| UserRole |
| id (bigint) |
| user_id (bigint) |
| tenant_id (bigint) |
| role_id (bigint) |
| assigned_at (timestamp) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmembersusertenant" [
label=<
| UserTenant |
| id (bigint) |
| user_id (bigint) |
| tenant_id (bigint) |
| is_active (tinyint) |
| is_default (tinyint) |
| joined_at (timestamp) |
| left_at (timestamp) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsordersorder" [
label=<
| Order |
| id (bigint) |
| tenant_id (bigint) |
| order_no (varchar) |
| order_type_code (varchar) |
| status_code (varchar) |
| category_code (varchar) |
| product_id (bigint) |
| received_at (datetime) |
| writer_id (bigint) |
| client_id (bigint) |
| client_contact (varchar) |
| site_name (varchar) |
| quantity (int) |
| delivery_date (date) |
| delivery_method_code (varchar) |
| memo (text) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsordersorderhistory" [
label=<
| OrderHistory |
| id (bigint) |
| tenant_id (bigint) |
| order_id (bigint) |
| history_type (varchar) |
| content (text) |
| created_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsordersorderitem" [
label=<
| OrderItem |
| id (bigint) |
| tenant_id (bigint) |
| order_id (bigint) |
| serial_no (int) |
| product_id (bigint) |
| quantity (int) |
| status_code (varchar) |
| design_code (varchar) |
| remarks (text) |
| attributes (json) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsordersorderitemcomponent" [
label=<
| OrderItemComponent |
| id (bigint) |
| tenant_id (bigint) |
| order_item_id (bigint) |
| component_type (varchar) |
| component_id (bigint) |
| quantity (decimal) |
| unit (varchar) |
| price (decimal) |
| remarks (varchar) |
| created_by (bigint) |
| updated_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsordersorderversion" [
label=<
| OrderVersion |
| id (bigint) |
| tenant_id (bigint) |
| order_id (bigint) |
| version_no (int) |
| version_type (varchar) |
| status_code (varchar) |
| changed_fields (json) |
| changed_by (bigint) |
| changed_at (timestamp) |
| change_note (varchar) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelspermissionspermissionoverride" [
label=<
| PermissionOverride |
| id (bigint) |
| tenant_id (bigint) |
| model_type (varchar) |
| model_id (bigint) |
| permission_id (bigint) |
| effect (tinyint) |
| reason (varchar) |
| effective_from (timestamp) |
| effective_to (timestamp) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelspermissionsrole" [
label=<
| Role |
| id (bigint) |
| tenant_id (bigint) |
| name (varchar) |
| guard_name (varchar) |
| description (varchar) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelspermissionsrolemenupermission" [
label=<>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsproductscommoncode" [
label=<
| CommonCode |
| id (bigint) |
| tenant_id (bigint) |
| code_group (varchar) |
| code (varchar) |
| name (varchar) |
| parent_id (bigint) |
| attributes (json) |
| description (varchar) |
| is_active (tinyint) |
| sort_order (int) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsproductspart" [
label=<>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsproductspricehistory" [
label=<
| PriceHistory |
| id (bigint) |
| tenant_id (bigint) |
| item_type_code (varchar) |
| item_id (bigint) |
| price_type_code (varchar) |
| price (decimal) |
| started_at (date) |
| ended_at (date) |
| created_by (bigint) |
| updated_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsproductsproduct" [
label=<
| Product |
| id (bigint) |
| tenant_id (bigint) |
| code (varchar) |
| name (varchar) |
| unit (varchar) |
| category_id (bigint) |
| product_type (varchar) |
| attributes (json) |
| description (varchar) |
| is_sellable (tinyint) |
| is_purchasable (tinyint) |
| is_producible (tinyint) |
| is_active (tinyint) |
| created_by (bigint) |
| updated_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsproductsproductcomponent" [
label=<
| ProductComponent |
| id (bigint) |
| tenant_id (bigint) |
| parent_product_id (bigint) |
| category_id (bigint) |
| category_name (varchar) |
| ref_type (varchar) |
| ref_id (bigint) |
| quantity (decimal) |
| sort_order (int) |
| created_by (bigint) |
| updated_by (bigint) |
| deleted_at (timestamp) |
| created_at (timestamp) |
| updated_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsqualityslot" [
label=<
| Lot |
| id (bigint) |
| tenant_id (bigint) |
| lot_number (varchar) |
| material_id (bigint) |
| specification (varchar) |
| length (varchar) |
| quantity (int) |
| raw_lot_number (varchar) |
| fabric_lot (varchar) |
| author (varchar) |
| remarks (text) |
| created_by (bigint) |
| updated_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsqualityslotsale" [
label=<
| LotSale |
| id (bigint) |
| tenant_id (bigint) |
| lot_id (bigint) |
| sale_date (date) |
| author (varchar) |
| workplace_name (varchar) |
| remarks (text) |
| created_by (bigint) |
| updated_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelssiteadmin" [
label=<>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantsdepartment" [
label=<
| Department |
| id (bigint) |
| tenant_id (bigint) |
| parent_id (bigint) |
| code (varchar) |
| name (varchar) |
| description (varchar) |
| is_active (tinyint) |
| sort_order (int) |
| created_by (bigint) |
| updated_by (bigint) |
| deleted_by (bigint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantspayment" [
label=<
| Payment |
| id (bigint) |
| subscription_id (bigint) |
| amount (decimal) |
| payment_method (varchar) |
| transaction_id (varchar) |
| paid_at (datetime) |
| status (varchar) |
| memo (text) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantspivotsdepartmentuser" [
label=<
| DepartmentUser |
| id (bigint) |
| tenant_id (bigint) |
| department_id (bigint) |
| user_id (bigint) |
| is_primary (tinyint) |
| joined_at (timestamp) |
| left_at (timestamp) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantsplan" [
label=<
| Plan |
| id (bigint) |
| name (varchar) |
| code (varchar) |
| description (text) |
| price (decimal) |
| billing_cycle (varchar) |
| features (json) |
| is_active (tinyint) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantssettingfielddef" [
label=<
| SettingFieldDef |
| id (bigint) |
| field_key (varchar) |
| label (varchar) |
| data_type (varchar) |
| input_type (varchar) |
| option_source (varchar) |
| option_payload (json) |
| comment (text) |
| created_at (timestamp) |
| updated_at (timestamp) |
| storage_area (varchar) |
| storage_key (varchar) |
| is_core (tinyint) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantssubscription" [
label=<
| Subscription |
| id (bigint) |
| tenant_id (bigint) |
| plan_id (bigint) |
| started_at (date) |
| ended_at (date) |
| status (varchar) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantstenant" [
label=<
| Tenant |
| id (bigint) |
| company_name (varchar) |
| code (varchar) |
| email (varchar) |
| phone (varchar) |
| address (varchar) |
| business_num (varchar) |
| corp_reg_no (varchar) |
| ceo_name (varchar) |
| homepage (varchar) |
| fax (varchar) |
| logo (varchar) |
| admin_memo (text) |
| options (json) |
| tenant_st_code (varchar) |
| plan_id (bigint) |
| subscription_id (bigint) |
| max_users (int) |
| trial_ends_at (datetime) |
| expires_at (datetime) |
| last_paid_at (datetime) |
| billing_tp_code (varchar) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantstenantfieldsetting" [
label=<
| TenantFieldSetting |
| id (bigint) |
| tenant_id (bigint) |
| field_key (varchar) |
| enabled (tinyint) |
| required (tinyint) |
| sort_order (int) |
| option_group_id (bigint) |
| code_group (varchar) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantstenantoptiongroup" [
label=<
| TenantOptionGroup |
| id (bigint) |
| tenant_id (bigint) |
| group_key (varchar) |
| name (varchar) |
| description (varchar) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantstenantoptionvalue" [
label=<
| TenantOptionValue |
| id (bigint) |
| group_id (bigint) |
| value_key (varchar) |
| value_label (varchar) |
| sort_order (int) |
| is_active (tinyint) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantstenantuserprofile" [
label=<
| TenantUserProfile |
| id (bigint) |
| tenant_id (bigint) |
| user_id (bigint) |
| department_id (bigint) |
| position_key (varchar) |
| job_title_key (varchar) |
| work_location_key (varchar) |
| employment_type_key (varchar) |
| manager_user_id (bigint) |
| json_extra (json) |
| created_at (timestamp) |
| updated_at (timestamp) |
| profile_photo_path (varchar) |
| display_name (varchar) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"product_components" [
label=<
| Pivot |
| id (bigint) |
| tenant_id (bigint) |
| parent_product_id (bigint) |
| category_id (bigint) |
| category_name (varchar) |
| ref_type (varchar) |
| ref_id (bigint) |
| quantity (decimal) |
| sort_order (int) |
| created_by (bigint) |
| updated_by (bigint) |
| deleted_at (timestamp) |
| created_at (timestamp) |
| updated_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"department_user" [
label=<
| DepartmentUser |
| id (bigint) |
| tenant_id (bigint) |
| department_id (bigint) |
| user_id (bigint) |
| is_primary (tinyint) |
| joined_at (timestamp) |
| left_at (timestamp) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"user_tenants" [
label=<
| Pivot |
| id (bigint) |
| user_id (bigint) |
| tenant_id (bigint) |
| is_active (tinyint) |
| is_default (tinyint) |
| joined_at (timestamp) |
| left_at (timestamp) |
| created_at (timestamp) |
| updated_at (timestamp) |
| deleted_at (timestamp) |
>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
}