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=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">ApiKey</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="key" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >key (varchar)</font></td></tr>
<tr width="100%"><td port="description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >description (varchar)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsauditauditlog" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">AuditLog</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="target_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >target_type (varchar)</font></td></tr>
<tr width="100%"><td port="target_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >target_id (bigint)</font></td></tr>
<tr width="100%"><td port="action" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >action (varchar)</font></td></tr>
<tr width="100%"><td port="before" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >before (json)</font></td></tr>
<tr width="100%"><td port="after" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >after (json)</font></td></tr>
<tr width="100%"><td port="actor_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >actor_id (bigint)</font></td></tr>
<tr width="100%"><td port="ip" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >ip (varchar)</font></td></tr>
<tr width="100%"><td port="ua" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >ua (varchar)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsboardsboard" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Board</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="board_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >board_code (varchar)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >description (varchar)</font></td></tr>
<tr width="100%"><td port="editor_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >editor_type (varchar)</font></td></tr>
<tr width="100%"><td port="allow_files" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >allow_files (tinyint)</font></td></tr>
<tr width="100%"><td port="max_file_count" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >max_file_count (int)</font></td></tr>
<tr width="100%"><td port="max_file_size" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >max_file_size (int)</font></td></tr>
<tr width="100%"><td port="extra_settings" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >extra_settings (json)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsboardsboardcomment" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">BoardComment</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="post_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >post_id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="user_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >user_id (bigint)</font></td></tr>
<tr width="100%"><td port="parent_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >parent_id (bigint)</font></td></tr>
<tr width="100%"><td port="content" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >content (text)</font></td></tr>
<tr width="100%"><td port="ip_address" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >ip_address (varchar)</font></td></tr>
<tr width="100%"><td port="status" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >status (varchar)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsboardsboardsetting" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">BoardSetting</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="board_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >board_id (bigint)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="field_key" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >field_key (varchar)</font></td></tr>
<tr width="100%"><td port="field_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >field_type (varchar)</font></td></tr>
<tr width="100%"><td port="field_meta" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >field_meta (json)</font></td></tr>
<tr width="100%"><td port="is_required" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_required (tinyint)</font></td></tr>
<tr width="100%"><td port="sort_order" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >sort_order (int)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsboardspost" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Post</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="board_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >board_id (bigint)</font></td></tr>
<tr width="100%"><td port="user_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >user_id (bigint)</font></td></tr>
<tr width="100%"><td port="title" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >title (varchar)</font></td></tr>
<tr width="100%"><td port="content" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >content (longtext)</font></td></tr>
<tr width="100%"><td port="editor_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >editor_type (varchar)</font></td></tr>
<tr width="100%"><td port="ip_address" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >ip_address (varchar)</font></td></tr>
<tr width="100%"><td port="is_notice" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_notice (tinyint)</font></td></tr>
<tr width="100%"><td port="is_secret" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_secret (tinyint)</font></td></tr>
<tr width="100%"><td port="views" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >views (int)</font></td></tr>
<tr width="100%"><td port="status" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >status (varchar)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsboardspostcustomfieldvalue" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">PostCustomFieldValue</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="post_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >post_id (bigint)</font></td></tr>
<tr width="100%"><td port="field_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >field_id (bigint)</font></td></tr>
<tr width="100%"><td port="value" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >value (text)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscalculationcalculationconfig" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">CalculationConfig</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="company_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >company_name (varchar)</font></td></tr>
<tr width="100%"><td port="formula_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >formula_type (varchar)</font></td></tr>
<tr width="100%"><td port="version" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >version (varchar)</font></td></tr>
<tr width="100%"><td port="formula_expression" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >formula_expression (text)</font></td></tr>
<tr width="100%"><td port="parameters" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >parameters (json)</font></td></tr>
<tr width="100%"><td port="conditions" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >conditions (json)</font></td></tr>
<tr width="100%"><td port="validation_rules" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >validation_rules (json)</font></td></tr>
<tr width="100%"><td port="description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >description (text)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonscategory" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Category</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="parent_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >parent_id (bigint)</font></td></tr>
<tr width="100%"><td port="code_group" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >code_group (varchar)</font></td></tr>
<tr width="100%"><td port="profile_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >profile_code (varchar)</font></td></tr>
<tr width="100%"><td port="code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >code (varchar)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
<tr width="100%"><td port="sort_order" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >sort_order (int)</font></td></tr>
<tr width="100%"><td port="description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >description (varchar)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="deleted_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonscategoryfield" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">CategoryField</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="category_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >category_id (bigint)</font></td></tr>
<tr width="100%"><td port="field_key" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >field_key (varchar)</font></td></tr>
<tr width="100%"><td port="field_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >field_name (varchar)</font></td></tr>
<tr width="100%"><td port="field_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >field_type (varchar)</font></td></tr>
<tr width="100%"><td port="is_required" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_required (char)</font></td></tr>
<tr width="100%"><td port="sort_order" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >sort_order (int)</font></td></tr>
<tr width="100%"><td port="default_value" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >default_value (varchar)</font></td></tr>
<tr width="100%"><td port="options" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >options (text)</font></td></tr>
<tr width="100%"><td port="description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >description (varchar)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="deleted_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonscategorylog" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">CategoryLog</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="category_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >category_id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="action" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >action (varchar)</font></td></tr>
<tr width="100%"><td port="changed_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >changed_by (bigint)</font></td></tr>
<tr width="100%"><td port="changed_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >changed_at (timestamp)</font></td></tr>
<tr width="100%"><td port="before_json" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >before_json (json)</font></td></tr>
<tr width="100%"><td port="after_json" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >after_json (json)</font></td></tr>
<tr width="100%"><td port="remarks" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >remarks (varchar)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonscategorytemplate" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">CategoryTemplate</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="category_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >category_id (bigint)</font></td></tr>
<tr width="100%"><td port="version_no" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >version_no (int)</font></td></tr>
<tr width="100%"><td port="template_json" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >template_json (json)</font></td></tr>
<tr width="100%"><td port="applied_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >applied_at (timestamp)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="deleted_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_by (bigint)</font></td></tr>
<tr width="100%"><td port="remarks" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >remarks (varchar)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonsclassification" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Classification</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="group" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >group (varchar)</font></td></tr>
<tr width="100%"><td port="code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >code (varchar)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonsfile" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">File</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="file_path" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >file_path (varchar)</font></td></tr>
<tr width="100%"><td port="original_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >original_name (varchar)</font></td></tr>
<tr width="100%"><td port="file_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >file_name (varchar)</font></td></tr>
<tr width="100%"><td port="file_name_old" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >file_name_old (varchar)</font></td></tr>
<tr width="100%"><td port="file_size" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >file_size (int)</font></td></tr>
<tr width="100%"><td port="mime_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >mime_type (varchar)</font></td></tr>
<tr width="100%"><td port="description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >description (varchar)</font></td></tr>
<tr width="100%"><td port="fileable_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >fileable_id (bigint)</font></td></tr>
<tr width="100%"><td port="fileable_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >fileable_type (varchar)</font></td></tr>
<tr width="100%"><td port="uploaded_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >uploaded_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonsmenu" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Menu</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="parent_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >parent_id (bigint)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="url" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >url (varchar)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
<tr width="100%"><td port="sort_order" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >sort_order (int)</font></td></tr>
<tr width="100%"><td port="hidden" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >hidden (tinyint)</font></td></tr>
<tr width="100%"><td port="is_external" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_external (tinyint)</font></td></tr>
<tr width="100%"><td port="external_url" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >external_url (varchar)</font></td></tr>
<tr width="100%"><td port="icon" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >icon (varchar)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="deleted_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_by (bigint)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelscommonstag" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Tag</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsdesignbomtemplate" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">BomTemplate</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="model_version_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >model_version_id (bigint)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="is_primary" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_primary (tinyint)</font></td></tr>
<tr width="100%"><td port="notes" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >notes (text)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
<tr width="100%"><td port="calculation_schema" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >calculation_schema (json)</font></td></tr>
<tr width="100%"><td port="company_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >company_type (varchar)</font></td></tr>
<tr width="100%"><td port="formula_version" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >formula_version (varchar)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsdesignbomtemplateitem" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">BomTemplateItem</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="bom_template_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >bom_template_id (bigint)</font></td></tr>
<tr width="100%"><td port="ref_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >ref_type (varchar)</font></td></tr>
<tr width="100%"><td port="ref_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >ref_id (bigint)</font></td></tr>
<tr width="100%"><td port="qty" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >qty (decimal)</font></td></tr>
<tr width="100%"><td port="waste_rate" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >waste_rate (decimal)</font></td></tr>
<tr width="100%"><td port="uom_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >uom_id (bigint)</font></td></tr>
<tr width="100%"><td port="notes" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >notes (varchar)</font></td></tr>
<tr width="100%"><td port="sort_order" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >sort_order (int)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="is_calculated" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_calculated (tinyint)</font></td></tr>
<tr width="100%"><td port="calculation_formula" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >calculation_formula (text)</font></td></tr>
<tr width="100%"><td port="depends_on" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >depends_on (json)</font></td></tr>
<tr width="100%"><td port="calculation_config" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >calculation_config (json)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsdesigndesignmodel" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">DesignModel</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >code (varchar)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="category_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >category_id (bigint)</font></td></tr>
<tr width="100%"><td port="lifecycle" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >lifecycle (varchar)</font></td></tr>
<tr width="100%"><td port="description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >description (text)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsdesignmodelversion" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">ModelVersion</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="model_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >model_id (bigint)</font></td></tr>
<tr width="100%"><td port="version_no" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >version_no (int)</font></td></tr>
<tr width="100%"><td port="status" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >status (varchar)</font></td></tr>
<tr width="100%"><td port="effective_from" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >effective_from (datetime)</font></td></tr>
<tr width="100%"><td port="effective_to" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >effective_to (datetime)</font></td></tr>
<tr width="100%"><td port="notes" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >notes (text)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsestimateestimate" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Estimate</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="model_set_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >model_set_id (bigint)</font></td></tr>
<tr width="100%"><td port="estimate_no" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >estimate_no (varchar)</font></td></tr>
<tr width="100%"><td port="estimate_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >estimate_name (varchar)</font></td></tr>
<tr width="100%"><td port="customer_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >customer_name (varchar)</font></td></tr>
<tr width="100%"><td port="project_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >project_name (varchar)</font></td></tr>
<tr width="100%"><td port="parameters" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >parameters (json)</font></td></tr>
<tr width="100%"><td port="calculated_results" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >calculated_results (json)</font></td></tr>
<tr width="100%"><td port="bom_data" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >bom_data (json)</font></td></tr>
<tr width="100%"><td port="total_amount" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >total_amount (decimal)</font></td></tr>
<tr width="100%"><td port="status" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >status (enum)</font></td></tr>
<tr width="100%"><td port="notes" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >notes (text)</font></td></tr>
<tr width="100%"><td port="valid_until" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >valid_until (date)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="deleted_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsestimateestimateitem" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">EstimateItem</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="estimate_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >estimate_id (bigint)</font></td></tr>
<tr width="100%"><td port="sequence" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >sequence (int)</font></td></tr>
<tr width="100%"><td port="item_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >item_name (varchar)</font></td></tr>
<tr width="100%"><td port="item_description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >item_description (text)</font></td></tr>
<tr width="100%"><td port="parameters" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >parameters (json)</font></td></tr>
<tr width="100%"><td port="calculated_values" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >calculated_values (json)</font></td></tr>
<tr width="100%"><td port="unit_price" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >unit_price (decimal)</font></td></tr>
<tr width="100%"><td port="quantity" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >quantity (decimal)</font></td></tr>
<tr width="100%"><td port="total_price" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >total_price (decimal)</font></td></tr>
<tr width="100%"><td port="bom_components" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >bom_components (json)</font></td></tr>
<tr width="100%"><td port="notes" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >notes (text)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="deleted_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsestimatesmainrequestestimate" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">MainRequestEstimate</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmainrequest" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">MainRequest</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="status_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >status_code (varchar)</font></td></tr>
<tr width="100%"><td port="description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >description (text)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmainrequestflow" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">MainRequestFlow</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="main_request_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >main_request_id (bigint)</font></td></tr>
<tr width="100%"><td port="flowable_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >flowable_type (varchar)</font></td></tr>
<tr width="100%"><td port="flowable_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >flowable_id (bigint)</font></td></tr>
<tr width="100%"><td port="status_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >status_code (varchar)</font></td></tr>
<tr width="100%"><td port="action" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >action (varchar)</font></td></tr>
<tr width="100%"><td port="content" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >content (text)</font></td></tr>
<tr width="100%"><td port="actor_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >actor_id (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmaterialsmaterial" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Material</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="category_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >category_id (bigint)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="item_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >item_name (varchar)</font></td></tr>
<tr width="100%"><td port="specification" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >specification (varchar)</font></td></tr>
<tr width="100%"><td port="material_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >material_code (varchar)</font></td></tr>
<tr width="100%"><td port="unit" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >unit (varchar)</font></td></tr>
<tr width="100%"><td port="is_inspection" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_inspection (char)</font></td></tr>
<tr width="100%"><td port="search_tag" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >search_tag (text)</font></td></tr>
<tr width="100%"><td port="remarks" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >remarks (text)</font></td></tr>
<tr width="100%"><td port="attributes" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >attributes (json)</font></td></tr>
<tr width="100%"><td port="options" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >options (json)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmaterialsmaterialinspection" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">MaterialInspection</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="receipt_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >receipt_id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="inspection_date" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >inspection_date (date)</font></td></tr>
<tr width="100%"><td port="inspector_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >inspector_name (varchar)</font></td></tr>
<tr width="100%"><td port="approver_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >approver_name (varchar)</font></td></tr>
<tr width="100%"><td port="judgment_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >judgment_code (varchar)</font></td></tr>
<tr width="100%"><td port="status_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >status_code (varchar)</font></td></tr>
<tr width="100%"><td port="result_file_path" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >result_file_path (text)</font></td></tr>
<tr width="100%"><td port="remarks" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >remarks (text)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmaterialsmaterialinspectionitem" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">MaterialInspectionItem</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="inspection_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >inspection_id (bigint)</font></td></tr>
<tr width="100%"><td port="item_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >item_name (varchar)</font></td></tr>
<tr width="100%"><td port="is_checked" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_checked (char)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmaterialsmaterialreceipt" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">MaterialReceipt</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="material_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >material_id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="receipt_date" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >receipt_date (date)</font></td></tr>
<tr width="100%"><td port="lot_number" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >lot_number (varchar)</font></td></tr>
<tr width="100%"><td port="received_qty" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >received_qty (decimal)</font></td></tr>
<tr width="100%"><td port="unit" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >unit (varchar)</font></td></tr>
<tr width="100%"><td port="supplier_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >supplier_name (varchar)</font></td></tr>
<tr width="100%"><td port="manufacturer_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >manufacturer_name (varchar)</font></td></tr>
<tr width="100%"><td port="purchase_price_excl_vat" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >purchase_price_excl_vat (decimal)</font></td></tr>
<tr width="100%"><td port="weight_kg" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >weight_kg (decimal)</font></td></tr>
<tr width="100%"><td port="status_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >status_code (varchar)</font></td></tr>
<tr width="100%"><td port="is_inspection" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_inspection (char)</font></td></tr>
<tr width="100%"><td port="inspection_date" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >inspection_date (date)</font></td></tr>
<tr width="100%"><td port="remarks" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >remarks (text)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmembersuser" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">User</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="user_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >user_id (varchar)</font></td></tr>
<tr width="100%"><td port="phone" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >phone (varchar)</font></td></tr>
<tr width="100%"><td port="options" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >options (json)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="email" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >email (varchar)</font></td></tr>
<tr width="100%"><td port="email_verified_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >email_verified_at (timestamp)</font></td></tr>
<tr width="100%"><td port="password" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >password (varchar)</font></td></tr>
<tr width="100%"><td port="last_login_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >last_login_at (timestamp)</font></td></tr>
<tr width="100%"><td port="two_factor_secret" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >two_factor_secret (text)</font></td></tr>
<tr width="100%"><td port="two_factor_recovery_codes" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >two_factor_recovery_codes (text)</font></td></tr>
<tr width="100%"><td port="two_factor_confirmed_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >two_factor_confirmed_at (timestamp)</font></td></tr>
<tr width="100%"><td port="remember_token" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >remember_token (varchar)</font></td></tr>
<tr width="100%"><td port="current_team_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >current_team_id (bigint)</font></td></tr>
<tr width="100%"><td port="profile_photo_path" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >profile_photo_path (varchar)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmembersusermenupermission" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">UserMenuPermission</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmembersuserrole" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">UserRole</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="user_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >user_id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="role_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >role_id (bigint)</font></td></tr>
<tr width="100%"><td port="assigned_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >assigned_at (timestamp)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsmembersusertenant" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">UserTenant</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="user_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >user_id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
<tr width="100%"><td port="is_default" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_default (tinyint)</font></td></tr>
<tr width="100%"><td port="joined_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >joined_at (timestamp)</font></td></tr>
<tr width="100%"><td port="left_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >left_at (timestamp)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsordersorder" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Order</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="order_no" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >order_no (varchar)</font></td></tr>
<tr width="100%"><td port="order_type_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >order_type_code (varchar)</font></td></tr>
<tr width="100%"><td port="status_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >status_code (varchar)</font></td></tr>
<tr width="100%"><td port="category_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >category_code (varchar)</font></td></tr>
<tr width="100%"><td port="product_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >product_id (bigint)</font></td></tr>
<tr width="100%"><td port="received_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >received_at (datetime)</font></td></tr>
<tr width="100%"><td port="writer_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >writer_id (bigint)</font></td></tr>
<tr width="100%"><td port="client_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >client_id (bigint)</font></td></tr>
<tr width="100%"><td port="client_contact" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >client_contact (varchar)</font></td></tr>
<tr width="100%"><td port="site_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >site_name (varchar)</font></td></tr>
<tr width="100%"><td port="quantity" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >quantity (int)</font></td></tr>
<tr width="100%"><td port="delivery_date" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >delivery_date (date)</font></td></tr>
<tr width="100%"><td port="delivery_method_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >delivery_method_code (varchar)</font></td></tr>
<tr width="100%"><td port="memo" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >memo (text)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsordersorderhistory" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">OrderHistory</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="order_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >order_id (bigint)</font></td></tr>
<tr width="100%"><td port="history_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >history_type (varchar)</font></td></tr>
<tr width="100%"><td port="content" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >content (text)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsordersorderitem" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">OrderItem</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="order_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >order_id (bigint)</font></td></tr>
<tr width="100%"><td port="serial_no" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >serial_no (int)</font></td></tr>
<tr width="100%"><td port="product_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >product_id (bigint)</font></td></tr>
<tr width="100%"><td port="quantity" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >quantity (int)</font></td></tr>
<tr width="100%"><td port="status_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >status_code (varchar)</font></td></tr>
<tr width="100%"><td port="design_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >design_code (varchar)</font></td></tr>
<tr width="100%"><td port="remarks" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >remarks (text)</font></td></tr>
<tr width="100%"><td port="attributes" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >attributes (json)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsordersorderitemcomponent" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">OrderItemComponent</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="order_item_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >order_item_id (bigint)</font></td></tr>
<tr width="100%"><td port="component_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >component_type (varchar)</font></td></tr>
<tr width="100%"><td port="component_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >component_id (bigint)</font></td></tr>
<tr width="100%"><td port="quantity" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >quantity (decimal)</font></td></tr>
<tr width="100%"><td port="unit" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >unit (varchar)</font></td></tr>
<tr width="100%"><td port="price" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >price (decimal)</font></td></tr>
<tr width="100%"><td port="remarks" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >remarks (varchar)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsordersorderversion" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">OrderVersion</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="order_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >order_id (bigint)</font></td></tr>
<tr width="100%"><td port="version_no" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >version_no (int)</font></td></tr>
<tr width="100%"><td port="version_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >version_type (varchar)</font></td></tr>
<tr width="100%"><td port="status_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >status_code (varchar)</font></td></tr>
<tr width="100%"><td port="changed_fields" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >changed_fields (json)</font></td></tr>
<tr width="100%"><td port="changed_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >changed_by (bigint)</font></td></tr>
<tr width="100%"><td port="changed_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >changed_at (timestamp)</font></td></tr>
<tr width="100%"><td port="change_note" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >change_note (varchar)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelspermissionspermissionoverride" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">PermissionOverride</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="model_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >model_type (varchar)</font></td></tr>
<tr width="100%"><td port="model_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >model_id (bigint)</font></td></tr>
<tr width="100%"><td port="permission_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >permission_id (bigint)</font></td></tr>
<tr width="100%"><td port="effect" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >effect (tinyint)</font></td></tr>
<tr width="100%"><td port="reason" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >reason (varchar)</font></td></tr>
<tr width="100%"><td port="effective_from" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >effective_from (timestamp)</font></td></tr>
<tr width="100%"><td port="effective_to" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >effective_to (timestamp)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelspermissionsrole" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Role</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="guard_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >guard_name (varchar)</font></td></tr>
<tr width="100%"><td port="description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >description (varchar)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelspermissionsrolemenupermission" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">RoleMenuPermission</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsproductscommoncode" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">CommonCode</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="code_group" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >code_group (varchar)</font></td></tr>
<tr width="100%"><td port="code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >code (varchar)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="parent_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >parent_id (bigint)</font></td></tr>
<tr width="100%"><td port="attributes" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >attributes (json)</font></td></tr>
<tr width="100%"><td port="description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >description (varchar)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
<tr width="100%"><td port="sort_order" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >sort_order (int)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsproductspart" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Part</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsproductspricehistory" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">PriceHistory</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="item_type_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >item_type_code (varchar)</font></td></tr>
<tr width="100%"><td port="item_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >item_id (bigint)</font></td></tr>
<tr width="100%"><td port="price_type_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >price_type_code (varchar)</font></td></tr>
<tr width="100%"><td port="price" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >price (decimal)</font></td></tr>
<tr width="100%"><td port="started_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >started_at (date)</font></td></tr>
<tr width="100%"><td port="ended_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >ended_at (date)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsproductsproduct" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Product</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >code (varchar)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="unit" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >unit (varchar)</font></td></tr>
<tr width="100%"><td port="category_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >category_id (bigint)</font></td></tr>
<tr width="100%"><td port="product_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >product_type (varchar)</font></td></tr>
<tr width="100%"><td port="attributes" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >attributes (json)</font></td></tr>
<tr width="100%"><td port="description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >description (varchar)</font></td></tr>
<tr width="100%"><td port="is_sellable" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_sellable (tinyint)</font></td></tr>
<tr width="100%"><td port="is_purchasable" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_purchasable (tinyint)</font></td></tr>
<tr width="100%"><td port="is_producible" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_producible (tinyint)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsproductsproductcomponent" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">ProductComponent</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="parent_product_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >parent_product_id (bigint)</font></td></tr>
<tr width="100%"><td port="category_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >category_id (bigint)</font></td></tr>
<tr width="100%"><td port="category_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >category_name (varchar)</font></td></tr>
<tr width="100%"><td port="ref_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >ref_type (varchar)</font></td></tr>
<tr width="100%"><td port="ref_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >ref_id (bigint)</font></td></tr>
<tr width="100%"><td port="quantity" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >quantity (decimal)</font></td></tr>
<tr width="100%"><td port="sort_order" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >sort_order (int)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsqualityslot" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Lot</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="lot_number" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >lot_number (varchar)</font></td></tr>
<tr width="100%"><td port="material_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >material_id (bigint)</font></td></tr>
<tr width="100%"><td port="specification" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >specification (varchar)</font></td></tr>
<tr width="100%"><td port="length" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >length (varchar)</font></td></tr>
<tr width="100%"><td port="quantity" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >quantity (int)</font></td></tr>
<tr width="100%"><td port="raw_lot_number" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >raw_lot_number (varchar)</font></td></tr>
<tr width="100%"><td port="fabric_lot" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >fabric_lot (varchar)</font></td></tr>
<tr width="100%"><td port="author" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >author (varchar)</font></td></tr>
<tr width="100%"><td port="remarks" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >remarks (text)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelsqualityslotsale" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">LotSale</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="lot_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >lot_id (bigint)</font></td></tr>
<tr width="100%"><td port="sale_date" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >sale_date (date)</font></td></tr>
<tr width="100%"><td port="author" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >author (varchar)</font></td></tr>
<tr width="100%"><td port="workplace_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >workplace_name (varchar)</font></td></tr>
<tr width="100%"><td port="remarks" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >remarks (text)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelssiteadmin" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">SiteAdmin</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantsdepartment" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Department</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="parent_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >parent_id (bigint)</font></td></tr>
<tr width="100%"><td port="code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >code (varchar)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >description (varchar)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
<tr width="100%"><td port="sort_order" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >sort_order (int)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="deleted_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_by (bigint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantspayment" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Payment</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="subscription_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >subscription_id (bigint)</font></td></tr>
<tr width="100%"><td port="amount" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >amount (decimal)</font></td></tr>
<tr width="100%"><td port="payment_method" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >payment_method (varchar)</font></td></tr>
<tr width="100%"><td port="transaction_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >transaction_id (varchar)</font></td></tr>
<tr width="100%"><td port="paid_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >paid_at (datetime)</font></td></tr>
<tr width="100%"><td port="status" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >status (varchar)</font></td></tr>
<tr width="100%"><td port="memo" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >memo (text)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantspivotsdepartmentuser" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">DepartmentUser</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="department_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >department_id (bigint)</font></td></tr>
<tr width="100%"><td port="user_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >user_id (bigint)</font></td></tr>
<tr width="100%"><td port="is_primary" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_primary (tinyint)</font></td></tr>
<tr width="100%"><td port="joined_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >joined_at (timestamp)</font></td></tr>
<tr width="100%"><td port="left_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >left_at (timestamp)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantsplan" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Plan</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >code (varchar)</font></td></tr>
<tr width="100%"><td port="description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >description (text)</font></td></tr>
<tr width="100%"><td port="price" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >price (decimal)</font></td></tr>
<tr width="100%"><td port="billing_cycle" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >billing_cycle (varchar)</font></td></tr>
<tr width="100%"><td port="features" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >features (json)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantssettingfielddef" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">SettingFieldDef</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="field_key" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >field_key (varchar)</font></td></tr>
<tr width="100%"><td port="label" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >label (varchar)</font></td></tr>
<tr width="100%"><td port="data_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >data_type (varchar)</font></td></tr>
<tr width="100%"><td port="input_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >input_type (varchar)</font></td></tr>
<tr width="100%"><td port="option_source" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >option_source (varchar)</font></td></tr>
<tr width="100%"><td port="option_payload" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >option_payload (json)</font></td></tr>
<tr width="100%"><td port="comment" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >comment (text)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="storage_area" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >storage_area (varchar)</font></td></tr>
<tr width="100%"><td port="storage_key" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >storage_key (varchar)</font></td></tr>
<tr width="100%"><td port="is_core" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_core (tinyint)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantssubscription" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Subscription</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="plan_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >plan_id (bigint)</font></td></tr>
<tr width="100%"><td port="started_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >started_at (date)</font></td></tr>
<tr width="100%"><td port="ended_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >ended_at (date)</font></td></tr>
<tr width="100%"><td port="status" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >status (varchar)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantstenant" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Tenant</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="company_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >company_name (varchar)</font></td></tr>
<tr width="100%"><td port="code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >code (varchar)</font></td></tr>
<tr width="100%"><td port="email" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >email (varchar)</font></td></tr>
<tr width="100%"><td port="phone" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >phone (varchar)</font></td></tr>
<tr width="100%"><td port="address" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >address (varchar)</font></td></tr>
<tr width="100%"><td port="business_num" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >business_num (varchar)</font></td></tr>
<tr width="100%"><td port="corp_reg_no" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >corp_reg_no (varchar)</font></td></tr>
<tr width="100%"><td port="ceo_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >ceo_name (varchar)</font></td></tr>
<tr width="100%"><td port="homepage" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >homepage (varchar)</font></td></tr>
<tr width="100%"><td port="fax" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >fax (varchar)</font></td></tr>
<tr width="100%"><td port="logo" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >logo (varchar)</font></td></tr>
<tr width="100%"><td port="admin_memo" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >admin_memo (text)</font></td></tr>
<tr width="100%"><td port="options" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >options (json)</font></td></tr>
<tr width="100%"><td port="tenant_st_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_st_code (varchar)</font></td></tr>
<tr width="100%"><td port="plan_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >plan_id (bigint)</font></td></tr>
<tr width="100%"><td port="subscription_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >subscription_id (bigint)</font></td></tr>
<tr width="100%"><td port="max_users" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >max_users (int)</font></td></tr>
<tr width="100%"><td port="trial_ends_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >trial_ends_at (datetime)</font></td></tr>
<tr width="100%"><td port="expires_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >expires_at (datetime)</font></td></tr>
<tr width="100%"><td port="last_paid_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >last_paid_at (datetime)</font></td></tr>
<tr width="100%"><td port="billing_tp_code" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >billing_tp_code (varchar)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantstenantfieldsetting" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">TenantFieldSetting</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="field_key" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >field_key (varchar)</font></td></tr>
<tr width="100%"><td port="enabled" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >enabled (tinyint)</font></td></tr>
<tr width="100%"><td port="required" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >required (tinyint)</font></td></tr>
<tr width="100%"><td port="sort_order" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >sort_order (int)</font></td></tr>
<tr width="100%"><td port="option_group_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >option_group_id (bigint)</font></td></tr>
<tr width="100%"><td port="code_group" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >code_group (varchar)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantstenantoptiongroup" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">TenantOptionGroup</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="group_key" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >group_key (varchar)</font></td></tr>
<tr width="100%"><td port="name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >name (varchar)</font></td></tr>
<tr width="100%"><td port="description" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >description (varchar)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantstenantoptionvalue" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">TenantOptionValue</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="group_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >group_id (bigint)</font></td></tr>
<tr width="100%"><td port="value_key" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >value_key (varchar)</font></td></tr>
<tr width="100%"><td port="value_label" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >value_label (varchar)</font></td></tr>
<tr width="100%"><td port="sort_order" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >sort_order (int)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"appmodelstenantstenantuserprofile" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">TenantUserProfile</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="user_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >user_id (bigint)</font></td></tr>
<tr width="100%"><td port="department_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >department_id (bigint)</font></td></tr>
<tr width="100%"><td port="position_key" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >position_key (varchar)</font></td></tr>
<tr width="100%"><td port="job_title_key" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >job_title_key (varchar)</font></td></tr>
<tr width="100%"><td port="work_location_key" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >work_location_key (varchar)</font></td></tr>
<tr width="100%"><td port="employment_type_key" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >employment_type_key (varchar)</font></td></tr>
<tr width="100%"><td port="manager_user_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >manager_user_id (bigint)</font></td></tr>
<tr width="100%"><td port="json_extra" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >json_extra (json)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="profile_photo_path" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >profile_photo_path (varchar)</font></td></tr>
<tr width="100%"><td port="display_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >display_name (varchar)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"product_components" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Pivot</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="parent_product_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >parent_product_id (bigint)</font></td></tr>
<tr width="100%"><td port="category_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >category_id (bigint)</font></td></tr>
<tr width="100%"><td port="category_name" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >category_name (varchar)</font></td></tr>
<tr width="100%"><td port="ref_type" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >ref_type (varchar)</font></td></tr>
<tr width="100%"><td port="ref_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >ref_id (bigint)</font></td></tr>
<tr width="100%"><td port="quantity" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >quantity (decimal)</font></td></tr>
<tr width="100%"><td port="sort_order" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >sort_order (int)</font></td></tr>
<tr width="100%"><td port="created_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_by (bigint)</font></td></tr>
<tr width="100%"><td port="updated_by" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_by (bigint)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"department_user" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">DepartmentUser</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="department_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >department_id (bigint)</font></td></tr>
<tr width="100%"><td port="user_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >user_id (bigint)</font></td></tr>
<tr width="100%"><td port="is_primary" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_primary (tinyint)</font></td></tr>
<tr width="100%"><td port="joined_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >joined_at (timestamp)</font></td></tr>
<tr width="100%"><td port="left_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >left_at (timestamp)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
"user_tenants" [
label=<<table width="100%" height="100%" border="0" margin="0" cellborder="1" cellspacing="0" cellpadding="10">
<tr width="100%"><td width="100%" bgcolor="#d3d3d3"><font color="#333333">Pivot</font></td></tr>
<tr width="100%"><td port="id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >id (bigint)</font></td></tr>
<tr width="100%"><td port="user_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >user_id (bigint)</font></td></tr>
<tr width="100%"><td port="tenant_id" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >tenant_id (bigint)</font></td></tr>
<tr width="100%"><td port="is_active" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_active (tinyint)</font></td></tr>
<tr width="100%"><td port="is_default" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >is_default (tinyint)</font></td></tr>
<tr width="100%"><td port="joined_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >joined_at (timestamp)</font></td></tr>
<tr width="100%"><td port="left_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >left_at (timestamp)</font></td></tr>
<tr width="100%"><td port="created_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >created_at (timestamp)</font></td></tr>
<tr width="100%"><td port="updated_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >updated_at (timestamp)</font></td></tr>
<tr width="100%"><td port="deleted_at" align="left" width="100%"  bgcolor="#ffffff"><font color="#333333" >deleted_at (timestamp)</font></td></tr>
</table>>
margin="0"
shape="rectangle"
fontname="Helvetica Neue"
]
}