diff --git a/schema-graph.dot b/schema-graph.dot index 2bf0197..b74cbd0 100644 --- a/schema-graph.dot +++ b/schema-graph.dot @@ -10,16 +10,16 @@ digraph schema { style="rounded,filled"; fillcolor="#202a3a"; color="#3f4c5f"; fontcolor="#e2e8f0"; margin=14; customergroup [label=<
customergroup
idINT PK
company_id?INT FK
nameNVARCHAR(255)
sortINT
updated_atDATETIME2
>]; - company [label=<
company
idINT PK
root_category_id?INT FK
default_language_id?INT FK
taxrate?INT FK
reducedtaxrate?INT FK
taxfreerate?INT FK
poscustomergroup_idINT FK
nameNVARCHAR(255)
>]; + company [label=<
company
idINT PK
root_category_id?INT FK
taxrate?INT FK
reducedtaxrate?INT FK
taxfreerate?INT FK
default_language_id?INT FK
poscustomergroup_idINT FK
nameNVARCHAR(255)
>]; meta [label=<
meta
keyNVARCHAR(255)
valueNVARCHAR(MAX)
>]; companyhistory [label=<
companyhistory
idINT PK
company_idINT FK
companyuser_id?INT FK
dateDATETIME2
textNVARCHAR(MAX)
>]; entityaddress [label=<
entityaddress
idINT PK
entity_idINT FK
first_name?NVARCHAR(255)
name?NVARCHAR(255)
street?NVARCHAR(255)
streetnumber?NVARCHAR(50)
zip?NVARCHAR(50)
city?NVARCHAR(255)
county?NVARCHAR(255)
addresstypeNVARCHAR(50)
sortINT
>]; numbers [label=<
numbers
idINT PK
company_idINT FK
typeNVARCHAR(100)
prefixNVARCHAR(50)
paddingINT
nextINT
>]; entity [label=<
entity
idINT PK
customergroup_idINT FK
first_name?NVARCHAR(255)
nameNVARCHAR(255)
number?NVARCHAR(100)
created_atDATETIME2
updated_atDATETIME2
>]; entitycontact [label=<
entitycontact
idINT PK
entity_idINT FK
contacttypeNVARCHAR(50)
contactNVARCHAR(255)
sortINT
>]; - companyuser [label=<
companyuser
idINT PK
company_idINT FK
google_auth_idINT FK
>]; - entityhistory [label=<
entityhistory
idINT PK
entity_idINT FK
companyuser_id?INT FK
dateDATETIME2
textNVARCHAR(MAX)
>]; companysetting [label=<
companysetting
idINT PK
company_idINT FK
keyNVARCHAR(255)
valueNVARCHAR(MAX)
frontendBIT
writeonlyBIT
>]; + entityhistory [label=<
entityhistory
idINT PK
entity_idINT FK
companyuser_id?INT FK
dateDATETIME2
textNVARCHAR(MAX)
>]; + companyuser [label=<
companyuser
idINT PK
company_idINT FK
google_auth_idINT FK
>]; google_auth [label=<
google_auth
idINT PK
selected_company?INT FK
emailNVARCHAR(320)
picture?NVARCHAR(2048)
picturebinary?VARBINARY(MAX)
sub?NVARCHAR(255)
created_atDATETIME2
>]; } subgraph cluster_i18n { @@ -27,53 +27,54 @@ digraph schema { style="rounded,filled"; fillcolor="#202a3a"; color="#3f4c5f"; fontcolor="#e2e8f0"; margin=14; language [label=<
language
idINT PK
iso639NVARCHAR(10)
>]; - articletext [label=<
articletext
idINT PK
article_idINT FK
language_idINT FK
nameNVARCHAR(255)
slugNVARCHAR(255)
seo?NVARCHAR(MAX)
desc?NVARCHAR(MAX)
>]; categorytext [label=<
categorytext
idINT PK
category_idINT FK
language_idINT FK
nameNVARCHAR(255)
slugNVARCHAR(255)
seo?NVARCHAR(MAX)
desc?NVARCHAR(MAX)
>]; + articletext [label=<
articletext
idINT PK
article_idINT FK
language_idINT FK
nameNVARCHAR(255)
slugNVARCHAR(255)
seo?NVARCHAR(MAX)
desc?NVARCHAR(MAX)
>]; unittext [label=<
unittext
idINT PK
language_idINT FK
unit_idINT FK
symbolNVARCHAR(50)
nameNVARCHAR(255)
>]; } subgraph cluster_catalog { label="Catalog"; labeljust="l"; fontsize=15; style="rounded,filled"; fillcolor="#202a3a"; color="#3f4c5f"; fontcolor="#e2e8f0"; margin=14; + categoryarticle [label=<
categoryarticle
idINT PK
category_idINT FK
article_idINT FK
>]; + category [label=<
category
idINT PK
parent_id?INT FK
sortINT
updated_atDATETIME2
>]; + articlehistory [label=<
articlehistory
idINT PK
article_idINT FK
companyuser_id?INT FK
dateDATETIME2
textNVARCHAR(MAX)
meta?NVARCHAR(MAX)
>]; + article [label=<
article
idINT PK
parentattributename_id?INT FK
parentarticle_id?INT FK
articlelist_id?INT FK
optionslist_id?INT FK
brand_id?INT FK
unit_idINT FK
company_idINT FK
sku?NVARCHAR(100)
unitamountFLOAT
weightFLOAT
track_stockBIT
is_parentBIT
parentsortINT
created_atDATETIME2
updated_atDATETIME2
>]; + articleean [label=<
articleean
idINT PK
article_idINT FK
eanNVARCHAR(50)
>]; + articlesupplier [label=<
articlesupplier
idINT PK
article_idINT FK
tax_id?INT FK
entity_idINT FK
net?FLOAT
sku?NVARCHAR(100)
stock?FLOAT
puFLOAT
sortINT
>]; + articlelist [label=<
articlelist
idINT PK
>]; + articlelistarticle [label=<
articlelistarticle
idINT PK
article_idINT FK
articlelist_idINT FK
countINT
sortINT
>]; + optionslist [label=<
optionslist
idINT PK
>]; + optionslistarticle [label=<
optionslistarticle
idINT PK
article_idINT FK
optionslist_idINT FK
countINT
sortINT
mandatedBIT
>]; brand [label=<
brand
idINT PK
company_idINT FK
nameNVARCHAR(255)
gsprpinfo?NVARCHAR(MAX)
>]; articletombstone [label=<
articletombstone
idINT PK
company_idINT FK
article_id?INT
sku?NVARCHAR(100)
name?NVARCHAR(255)
taxrate?DECIMAL(18,4)
net?FLOAT
deleted_atDATETIME2
>]; - articlelist [label=<
articlelist
idINT PK
>]; - articlelistarticle [label=<
articlelistarticle
idINT PK
articlelist_idINT FK
article_idINT FK
countINT
sortINT
>]; - optionslist [label=<
optionslist
idINT PK
>]; - optionslistarticle [label=<
optionslistarticle
idINT PK
optionslist_idINT FK
article_idINT FK
countINT
sortINT
mandatedBIT
>]; - articlehistory [label=<
articlehistory
idINT PK
article_idINT FK
companyuser_id?INT FK
dateDATETIME2
textNVARCHAR(MAX)
meta?NVARCHAR(MAX)
>]; - articleean [label=<
articleean
idINT PK
article_idINT FK
eanNVARCHAR(50)
>]; - article [label=<
article
idINT PK
brand_id?INT FK
articlelist_id?INT FK
optionslist_id?INT FK
parentarticle_id?INT FK
unit_idINT FK
parentattributename_id?INT FK
company_idINT FK
sku?NVARCHAR(100)
unitamountFLOAT
weightFLOAT
track_stockBIT
is_parentBIT
parentsortINT
created_atDATETIME2
updated_atDATETIME2
>]; - articlesupplier [label=<
articlesupplier
idINT PK
article_idINT FK
tax_id?INT FK
entity_idINT FK
net?FLOAT
sku?NVARCHAR(100)
stock?FLOAT
puFLOAT
sortINT
>]; - category [label=<
category
idINT PK
parent_id?INT FK
sortINT
updated_atDATETIME2
>]; - categoryarticle [label=<
categoryarticle
idINT PK
article_idINT FK
category_idINT FK
>]; } subgraph cluster_media { label="Media"; labeljust="l"; fontsize=15; style="rounded,filled"; fillcolor="#202a3a"; color="#3f4c5f"; fontcolor="#e2e8f0"; margin=14; + attributevaluepic [label=<
attributevaluepic
idINT PK
attributevalue_idINT FK
pic_idINT FK
sortINT
>]; + categorypic [label=<
categorypic
idINT PK
category_idINT FK
pic_idINT FK
sortINT
>]; + articlepic [label=<
articlepic
idINT PK
pic_idINT FK
article_idINT FK
sortINT
>]; pic [label=<
pic
idINT PK
wINT
hINT
sizeBIGINT
hashNVARCHAR(64)
thumbwINT
thumbhINT
thumbhashNVARCHAR(64)
smallthumbwINT
smallthumbhINT
sourceNVARCHAR(MAX)
fullbinaryVARBINARY(MAX)
thumbbinaryVARBINARY(MAX)
smallthumbbinaryVARBINARY(MAX)
>]; - brandpic [label=<
brandpic
idINT PK
brand_idINT FK
pic_idINT FK
sortINT
>]; - articlepic [label=<
articlepic
idINT PK
article_idINT FK
pic_idINT FK
sortINT
>]; - categorypic [label=<
categorypic
idINT PK
pic_idINT FK
category_idINT FK
sortINT
>]; - attributevaluepic [label=<
attributevaluepic
idINT PK
pic_idINT FK
attributevalue_idINT FK
sortINT
>]; + brandpic [label=<
brandpic
idINT PK
pic_idINT FK
brand_idINT FK
sortINT
>]; file [label=<
file
idINT PK
hashNVARCHAR(64)
mimetypeNVARCHAR(255)
nameNVARCHAR(255)
sizeBIGINT
createdDATETIME2
modifiedDATETIME2
contentVARBINARY(MAX)
thumbavif?VARBINARY(MAX)
thumbx?INT
thumby?INT
meta?NVARCHAR(MAX)
>]; } subgraph cluster_manifests { label="Documents & Shipping"; labeljust="l"; fontsize=15; style="rounded,filled"; fillcolor="#202a3a"; color="#3f4c5f"; fontcolor="#e2e8f0"; margin=14; - manifestattachment [label=<
manifestattachment
idINT PK
file_idINT FK
manifest_idINT FK
sortINT
>]; - ledger [label=<
ledger
idINT PK
manifestarticle_idINT FK
warehouse_id?INT FK
transaction_typeNVARCHAR(100)
amountFLOAT
transaction_textNVARCHAR(MAX)
hash_versionINT
prev_hash?NVARCHAR(128)
created_atDATETIME2
>]; - manifest [label=<
manifest
idINT PK
company_idINT FK
entity_id?INT FK
numberNVARCHAR(100)
typeNVARCHAR(100)
external_number?NVARCHAR(100)
dateDATETIME2
created_atDATETIME2
>]; + articlewarehousesummary [label=<
articlewarehousesummary
idINT PK
article_idINT FK
warehouse_idINT FK
stockFLOAT
>]; + ledger [label=<
ledger
idINT PK
warehouse_id?INT FK
manifestarticle_idINT FK
transaction_typeNVARCHAR(100)
amountFLOAT
transaction_textNVARCHAR(MAX)
hash_versionINT
prev_hash?NVARCHAR(128)
created_atDATETIME2
>]; + warehouse [label=<
warehouse
idINT PK
company_idINT FK
nameNVARCHAR(255)
sortINT
>]; manifestarticle [label=<
manifestarticle
idINT PK
manifest_idINT FK
sku?NVARCHAR(100)
name?NVARCHAR(255)
puFLOAT
amountFLOAT
netFLOAT
comment?NVARCHAR(MAX)
rebateFLOAT
taxrateFLOAT
>]; - warehouse [label=<
warehouse
idINT PK
company_idINT FK
nameNVARCHAR(255)
sortINT
>]; + manifest [label=<
manifest
idINT PK
company_idINT FK
entity_id?INT FK
numberNVARCHAR(100)
typeNVARCHAR(100)
external_number?NVARCHAR(100)
dateDATETIME2
created_atDATETIME2
>]; + manifestattachment [label=<
manifestattachment
idINT PK
file_idINT FK
manifest_idINT FK
sortINT
>]; + shipping [label=<
shipping
idINT PK
manifest_idINT FK
carrier_idINT FK
numberNVARCHAR(100)
tracking_code?NVARCHAR(255)
typeNVARCHAR(100)
stateNVARCHAR(100)
>]; quotesummary [label=<
quotesummary
idINT PK
manifest_idINT FK
company_idINT FK
entity_id?INT FK
quote_numberNVARCHAR(100)
quote_dateDATETIME2
created_atDATETIME2
customer_name?NVARCHAR(255)
positionsINT
gross_totalFLOAT
total_quantityFLOAT
>]; - shipping [label=<
shipping
idINT PK
manifest_idINT FK
numberNVARCHAR(100)
tracking_code?NVARCHAR(255)
carrier?NVARCHAR(100)
typeNVARCHAR(100)
stateNVARCHAR(100)
>]; - shipmentsummary [label=<
shipmentsummary
idINT PK
manifest_idINT FK
company_idINT FK
entity_id?INT FK
shipment_numberNVARCHAR(100)
shipment_dateDATETIME2
created_atDATETIME2
order_id?INT
order_number?NVARCHAR(100)
customer_name?NVARCHAR(255)
positionsINT
total_quantityFLOAT
package_countINT
carrier?NVARCHAR(100)
tracking_code?NVARCHAR(255)
stateNVARCHAR(50)
>]; - deliverysummary [label=<
deliverysummary
idINT PK
manifest_idINT FK
company_idINT FK
supplier_id?INT FK
delivery_numberNVARCHAR(100)
external_number?NVARCHAR(100)
delivery_dateDATETIME2
created_atDATETIME2
supplier_name?NVARCHAR(255)
positionsINT
gross_totalFLOAT
net_totalFLOAT
total_quantityFLOAT
stock_positionsINT
booked_positionsINT
unbooked_positionsINT
stock_quantityFLOAT
booked_quantityFLOAT
unbooked_quantityFLOAT
is_bookedTINYINT
>]; - package [label=<
package
idINT PK
shipping_idINT FK
entityaddress_idINT FK
numberNVARCHAR(100)
typeNVARCHAR(100)
stateNVARCHAR(100)
details?NVARCHAR(MAX)
>]; ordersummary [label=<
ordersummary
idINT PK
manifest_idINT FK
company_idINT FK
entity_id?INT FK
order_numberNVARCHAR(100)
order_dateDATETIME2
created_atDATETIME2
customer_name?NVARCHAR(255)
positionsINT
gross_totalFLOAT
paid_totalFLOAT
ordered_quantityFLOAT
shipped_quantityFLOAT
is_paidTINYINT
is_shippedTINYINT
>]; + package [label=<
package
idINT PK
shipping_idINT FK
entityaddress_idINT FK
numberNVARCHAR(100)
typeNVARCHAR(100)
stateNVARCHAR(100)
details?NVARCHAR(MAX)
>]; + deliverysummary [label=<
deliverysummary
idINT PK
manifest_idINT FK
company_idINT FK
supplier_id?INT FK
delivery_numberNVARCHAR(100)
external_number?NVARCHAR(100)
delivery_dateDATETIME2
created_atDATETIME2
supplier_name?NVARCHAR(255)
positionsINT
gross_totalFLOAT
net_totalFLOAT
total_quantityFLOAT
stock_positionsINT
booked_positionsINT
unbooked_positionsINT
stock_quantityFLOAT
booked_quantityFLOAT
unbooked_quantityFLOAT
is_bookedTINYINT
>]; + shipmentsummary [label=<
shipmentsummary
idINT PK
manifest_idINT FK
company_idINT FK
entity_id?INT FK
shipment_numberNVARCHAR(100)
shipment_dateDATETIME2
created_atDATETIME2
order_id?INT
order_number?NVARCHAR(100)
customer_name?NVARCHAR(255)
positionsINT
total_quantityFLOAT
package_countINT
carrier?NVARCHAR(100)
tracking_code?NVARCHAR(255)
stateNVARCHAR(50)
>]; } subgraph cluster_commerce { label="Pricing & Payments"; labeljust="l"; fontsize=15; @@ -95,8 +96,8 @@ digraph schema { style="rounded,filled"; fillcolor="#202a3a"; color="#3f4c5f"; fontcolor="#e2e8f0"; margin=14; posterminalcategory [label=<
posterminalcategory
idINT PK
category_idINT FK
posterminal_idINT FK
>]; - posterminal [label=<
posterminal
idINT PK
root_category_id?INT FK
company_idINT FK
nameNVARCHAR(255)
token?NVARCHAR(255)
pairingpin?NVARCHAR(50)
paired_at?DATETIME2
clientserial?NVARCHAR(255)
maxknowntombstoneid?INT
sync_root_articlesBIT
lastseen_at?DATETIME2
updated_atDATETIME2
>]; printer [label=<
printer
idINT PK
company_idINT FK
addressNVARCHAR(255)
typeNVARCHAR(50)
model?NVARCHAR(255)
serial?NVARCHAR(255)
sortINT
desc?NVARCHAR(MAX)
>]; + posterminal [label=<
posterminal
idINT PK
root_category_id?INT FK
company_idINT FK
nameNVARCHAR(255)
token?NVARCHAR(255)
pairingpin?NVARCHAR(50)
paired_at?DATETIME2
clientserial?NVARCHAR(255)
maxknowntombstoneid?INT
sync_root_articlesBIT
lastseen_at?DATETIME2
updated_atDATETIME2
>]; labeltemplate [label=<
labeltemplate
idINT PK
company_idINT FK
nameNVARCHAR(255)
widthINT
heightINT
dpiINT
typeNVARCHAR(50)
contentNVARCHAR(MAX)
thumb?VARBINARY(MAX)
>]; } subgraph cluster_ai { @@ -104,6 +105,7 @@ digraph schema { style="rounded,filled"; fillcolor="#202a3a"; color="#3f4c5f"; fontcolor="#e2e8f0"; margin=14; modelvfs [label=<
modelvfs
idINT PK
company_idINT FK
nameNVARCHAR(255)
mimeNVARCHAR(100)
contentVARBINARY(MAX)
metaNVARCHAR(MAX)
created_atDATETIME2
updated_atDATETIME2
>]; + subagentschedule [label=<
subagentschedule
idINT PK
company_idINT FK
desc?NVARCHAR(MAX)
promptNVARCHAR(MAX)
skills?NVARCHAR(MAX)
lastagentnote?NVARCHAR(MAX)
max_itrINT
cronNVARCHAR(100)
created_atDATETIME2
lastrun_at?DATETIME2
>]; modelconversation [label=<
modelconversation
idINT PK
companyuser_idINT FK
providerNVARCHAR(100)
modelNVARCHAR(255)
created_atDATETIME2
updated_atDATETIME2
stateNVARCHAR(20)
started_by?INT
>]; modelmessage [label=<
modelmessage
idINT PK
conversation_idINT FK
created_atDATETIME2
roleNVARCHAR(20)
messageNVARCHAR(MAX)
>]; } @@ -111,128 +113,132 @@ digraph schema { label="Properties & Attributes"; labeljust="l"; fontsize=15; style="rounded,filled"; fillcolor="#202a3a"; color="#3f4c5f"; fontcolor="#e2e8f0"; margin=14; - articleproperty [label=<
articleproperty
idINT PK
article_idINT FK
property_idINT FK
valueNVARCHAR(MAX)
sortINT
>]; - articleattributevalue [label=<
articleattributevalue
idINT PK
article_idINT FK
attributevalue_idINT FK
sortINT
>]; - categoryproperty [label=<
categoryproperty
idINT PK
category_idINT FK
property_idINT FK
valueNVARCHAR(MAX)
sortINT
>]; - categoryattributevalue [label=<
categoryattributevalue
idINT PK
category_idINT FK
attributevalue_idINT FK
sortINT
>]; - attributevalue [label=<
attributevalue
idINT PK
attribute_idINT FK
valueNVARCHAR(255)
sortINT
>]; - attributename [label=<
attributename
idINT PK
company_idINT FK
nameNVARCHAR(255)
sortINT
exclusiveBIT
>]; propertyname [label=<
propertyname
idINT PK
company_idINT FK
nameNVARCHAR(255)
sortINT
exclusiveBIT
>]; + attributevalue [label=<
attributevalue
idINT PK
attribute_idINT FK
valueNVARCHAR(255)
sortINT
>]; + categoryproperty [label=<
categoryproperty
idINT PK
property_idINT FK
category_idINT FK
valueNVARCHAR(MAX)
sortINT
>]; + categoryattributevalue [label=<
categoryattributevalue
idINT PK
attributevalue_idINT FK
category_idINT FK
sortINT
>]; + articleproperty [label=<
articleproperty
idINT PK
property_idINT FK
article_idINT FK
valueNVARCHAR(MAX)
sortINT
>]; + attributename [label=<
attributename
idINT PK
company_idINT FK
nameNVARCHAR(255)
sortINT
exclusiveBIT
>]; + articleattributevalue [label=<
articleattributevalue
idINT PK
attributevalue_idINT FK
article_idINT FK
sortINT
>]; } + carrier [label=<
carrier
idINT PK
company_idINT FK
nameNVARCHAR(255)
sortINT
has_packagesBIT
is_reverseBIT
>]; mcp_client [label=<
mcp_client
idINT PK
client_idNVARCHAR(100)
client_secret?NVARCHAR(255)
client_nameNVARCHAR(255)
redirect_urisNVARCHAR(MAX)
grant_types?NVARCHAR(255)
response_types?NVARCHAR(255)
scope?NVARCHAR(255)
created_atDATETIME2
>]; - mcp_token [label=<
mcp_token
idINT PK
google_auth_idINT FK
refresh_tokenNVARCHAR(128)
client_idNVARCHAR(100)
scope?NVARCHAR(255)
expires_atDATETIME2
revokedTINYINT
created_atDATETIME2
>]; mcp_auth_code [label=<
mcp_auth_code
codeNVARCHAR(128) PK
google_auth_idINT FK
client_idNVARCHAR(100)
redirect_uriNVARCHAR(2048)
code_challengeNVARCHAR(255)
code_challenge_methodNVARCHAR(32)
scope?NVARCHAR(255)
expires_atDATETIME2
usedTINYINT
created_atDATETIME2
>]; - subagentschedule [label=<
subagentschedule
idINT PK
company_idINT FK
desc?NVARCHAR(MAX)
promptNVARCHAR(MAX)
skills?NVARCHAR(MAX)
lastagentnote?NVARCHAR(MAX)
max_itrINT
cronNVARCHAR(100)
created_atDATETIME2
lastrun_at?DATETIME2
>]; + mcp_token [label=<
mcp_token
idINT PK
google_auth_idINT FK
refresh_tokenNVARCHAR(128)
client_idNVARCHAR(100)
scope?NVARCHAR(255)
expires_atDATETIME2
revokedTINYINT
created_atDATETIME2
>]; __legend [label=<
Legend
PKprimary key
FKforeign key
?nullable column
—FOREIGN KEY constraint
- -naming convention only, no constraint
>]; - google_auth:selected_company:w -> company:in22:n [color="#ff6b6b", fontcolor="#ff6b6b", tooltip="FK_google_auth_selected_company", weight=3]; + google_auth:selected_company:w -> company:in24:n [color="#ff6b6b", fontcolor="#ff6b6b", tooltip="FK_google_auth_selected_company", weight=3]; category:parent_id:e -> category:id:e [color="#6bdf9a", fontcolor="#6bdf9a", tooltip="FK_category_parent", constraint=false]; company:root_category_id:w -> category:in8:n [color="#5aa7ff", fontcolor="#5aa7ff", tooltip="FK_company_root_category", weight=3]; company:default_language_id:w -> language:in1:n [color="#f5c15c", fontcolor="#f5c15c", tooltip="FK_company_default_language", constraint=false, weight=1]; company:taxrate:w -> tax:in4:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_company_taxrate", constraint=false, weight=1]; - company:reducedtaxrate:w -> tax:in2:n [color="#ff9f5a", fontcolor="#ff9f5a", tooltip="FK_company_reducedtaxrate", constraint=false, weight=1]; + company:reducedtaxrate:w -> tax:in1:n [color="#ff9f5a", fontcolor="#ff9f5a", tooltip="FK_company_reducedtaxrate", constraint=false, weight=1]; company:taxfreerate:w -> tax:in3:n [color="#5cd6d6", fontcolor="#5cd6d6", tooltip="FK_company_taxfreerate", constraint=false, weight=1]; - customergroup:company_id:ne -> company:in17:n [color="#ff7fc2", fontcolor="#ff7fc2", tooltip="FK_customergroup_company", weight=3]; - company:poscustomergroup_id:se -> customergroup:in1:n [color="#8f95ff", fontcolor="#8f95ff", tooltip="FK_company_poscustomergroup", constraint=false, weight=1]; - entity:customergroup_id:sw -> customergroup:in2:n [color="#58d18a", fontcolor="#58d18a", tooltip="FK_entity_customergroup", weight=3]; - entityaddress:entity_id:ne -> entity:in7:n [color="#ff8f66", fontcolor="#ff8f66", tooltip="FK_entityaddress_entity", weight=3]; - entitycontact:entity_id:sw -> entity:in6:n [color="#4fc4e8", fontcolor="#4fc4e8", tooltip="FK_entitycontact_entity", weight=3]; + customergroup:company_id:sw -> company:in17:n [color="#ff7fc2", fontcolor="#ff7fc2", tooltip="FK_customergroup_company", weight=3]; + company:poscustomergroup_id:nw -> customergroup:in1:n [color="#8f95ff", fontcolor="#8f95ff", tooltip="FK_company_poscustomergroup", constraint=false, weight=1]; + entity:customergroup_id:w -> customergroup:in2:n [color="#58d18a", fontcolor="#58d18a", tooltip="FK_entity_customergroup", weight=3]; + entityaddress:entity_id:sw -> entity:in6:n [color="#ff8f66", fontcolor="#ff8f66", tooltip="FK_entityaddress_entity", weight=3]; + entitycontact:entity_id:se -> entity:in7:n [color="#4fc4e8", fontcolor="#4fc4e8", tooltip="FK_entitycontact_entity", weight=3]; entityhistory:entity_id:sw -> entity:in8:n [color="#a98cff", fontcolor="#a98cff", tooltip="FK_entityhistory_entity", weight=3]; entityhistory:companyuser_id:se -> companyuser:in3:n [color="#ff6f6f", fontcolor="#ff6f6f", tooltip="FK_entityhistory_companyuser", constraint=false, weight=1]; - unit:company_id:w -> company:in3:n [color="#4ecb8f", fontcolor="#4ecb8f", tooltip="FK_unit_company", weight=3]; - unittext:unit_id:se -> unit:in1:n [color="#5aa7e6", fontcolor="#5aa7e6", tooltip="FK_unittext_unit", weight=3]; + unit:company_id:w -> company:in9:n [color="#4ecb8f", fontcolor="#4ecb8f", tooltip="FK_unit_company", weight=3]; + unittext:unit_id:sw -> unit:in1:n [color="#5aa7e6", fontcolor="#5aa7e6", tooltip="FK_unittext_unit", weight=3]; unittext:language_id:w -> language:in3:n [color="#ff7aa8", fontcolor="#ff7aa8", tooltip="FK_unittext_language", constraint=false, weight=1]; - brand:company_id:e -> company:in0:n [color="#e0b25a", fontcolor="#e0b25a", tooltip="FK_brand_company", weight=3]; + brand:company_id:e -> company:in4:n [color="#e0b25a", fontcolor="#e0b25a", tooltip="FK_brand_company", weight=3]; article:company_id:e -> company:in2:n [color="#56c8c8", fontcolor="#56c8c8", tooltip="FK_article_company", weight=3]; article:unit_id:e -> unit:in0:n [color="#ff5f9e", fontcolor="#ff5f9e", tooltip="FK_article_unit", constraint=false, weight=1]; article:brand_id:w -> brand:in0:n [color="#ffb25a", fontcolor="#ffb25a", tooltip="FK_article_brand", constraint=false, weight=1]; article:articlelist_id:w -> articlelist:in1:n [color="#56d68a", fontcolor="#56d68a", tooltip="FK_article_articlelist", constraint=false, weight=1]; article:optionslist_id:w -> optionslist:in1:n [color="#66b3ff", fontcolor="#66b3ff", tooltip="FK_article_optionslist", constraint=false, weight=1]; article:parentarticle_id:e -> article:id:e [color="#c79bff", fontcolor="#c79bff", tooltip="FK_article_parentarticle", constraint=false]; - article:parentattributename_id:se -> attributename:in1:n [color="#ff6b6b", fontcolor="#ff6b6b", tooltip="FK_article_parentattributename", constraint=false, weight=1]; - article:parentattributename_id:se -> attributename:in1:n [color="#ff6b6b", fontcolor="#ff6b6b", tooltip="FK_article_parentattributename", constraint=false, weight=1]; - articlehistory:article_id:se -> article:in2:n [color="#6bdf9a", fontcolor="#6bdf9a", tooltip="FK_articlehistory_article", weight=3]; + article:parentattributename_id:ne -> attributename:in0:n [color="#ff6b6b", fontcolor="#ff6b6b", tooltip="FK_article_parentattributename", constraint=false, weight=1]; + article:parentattributename_id:ne -> attributename:in0:n [color="#ff6b6b", fontcolor="#ff6b6b", tooltip="FK_article_parentattributename", constraint=false, weight=1]; + articlehistory:article_id:se -> article:in3:n [color="#6bdf9a", fontcolor="#6bdf9a", tooltip="FK_articlehistory_article", weight=3]; articlehistory:companyuser_id:e -> companyuser:in0:n [color="#5aa7ff", fontcolor="#5aa7ff", tooltip="FK_articlehistory_companyuser", constraint=false, weight=1]; - companyhistory:company_id:sw -> company:in19:n [color="#f5c15c", fontcolor="#f5c15c", tooltip="FK_companyhistory_company", weight=3]; - companyhistory:companyuser_id:e -> companyuser:in2:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_companyhistory_companyuser", constraint=false, weight=1]; - articletombstone:company_id:e -> company:in1:n [color="#ff9f5a", fontcolor="#ff9f5a", tooltip="FK_articletombstone_company", weight=3]; - articleean:article_id:ne -> article:in3:n [color="#5cd6d6", fontcolor="#5cd6d6", tooltip="FK_articleean_article", weight=3]; - articlepic:article_id:se -> article:in6:n [color="#ff7fc2", fontcolor="#ff7fc2", tooltip="FK_articlepic_article", weight=3]; - articlepic:pic_id:w -> pic:in0:n [color="#8f95ff", fontcolor="#8f95ff", tooltip="FK_articlepic_pic", constraint=false, weight=1]; + companyhistory:company_id:ne -> company:in20:n [color="#f5c15c", fontcolor="#f5c15c", tooltip="FK_companyhistory_company", weight=3]; + companyhistory:companyuser_id:e -> companyuser:in1:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_companyhistory_companyuser", constraint=false, weight=1]; + articletombstone:company_id:e -> company:in5:n [color="#ff9f5a", fontcolor="#ff9f5a", tooltip="FK_articletombstone_company", weight=3]; + articleean:article_id:sw -> article:in6:n [color="#5cd6d6", fontcolor="#5cd6d6", tooltip="FK_articleean_article", weight=3]; + articlepic:article_id:ne -> article:in4:n [color="#ff7fc2", fontcolor="#ff7fc2", tooltip="FK_articlepic_article", weight=3]; + articlepic:pic_id:e -> pic:in2:n [color="#8f95ff", fontcolor="#8f95ff", tooltip="FK_articlepic_pic", constraint=false, weight=1]; brandpic:brand_id:w -> brand:in1:n [color="#58d18a", fontcolor="#58d18a", tooltip="FK_brandpic_brand", weight=3]; - brandpic:pic_id:w -> pic:in1:n [color="#ff8f66", fontcolor="#ff8f66", tooltip="FK_brandpic_pic", constraint=false, weight=1]; - attributevaluepic:attributevalue_id:e -> attributevalue:in0:n [color="#4fc4e8", fontcolor="#4fc4e8", tooltip="FK_attributevaluepic_attributevalue", weight=3]; - attributevaluepic:pic_id:w -> pic:in3:n [color="#a98cff", fontcolor="#a98cff", tooltip="FK_attributevaluepic_pic", constraint=false, weight=1]; - articlelistarticle:articlelist_id:nw -> articlelist:in0:n [color="#ff6f6f", fontcolor="#ff6f6f", tooltip="FK_articlelistarticle_articlelist", weight=3]; - articlelistarticle:article_id:w -> article:in0:n [color="#4ecb8f", fontcolor="#4ecb8f", tooltip="FK_articlelistarticle_article", constraint=false, weight=1]; + brandpic:pic_id:w -> pic:in3:n [color="#ff8f66", fontcolor="#ff8f66", tooltip="FK_brandpic_pic", constraint=false, weight=1]; + attributevaluepic:attributevalue_id:w -> attributevalue:in2:n [color="#4fc4e8", fontcolor="#4fc4e8", tooltip="FK_attributevaluepic_attributevalue", weight=3]; + attributevaluepic:pic_id:e -> pic:in0:n [color="#a98cff", fontcolor="#a98cff", tooltip="FK_attributevaluepic_pic", constraint=false, weight=1]; + articlelistarticle:articlelist_id:se -> articlelist:in0:n [color="#ff6f6f", fontcolor="#ff6f6f", tooltip="FK_articlelistarticle_articlelist", weight=3]; + articlelistarticle:article_id:w -> article:in8:n [color="#4ecb8f", fontcolor="#4ecb8f", tooltip="FK_articlelistarticle_article", constraint=false, weight=1]; optionslistarticle:optionslist_id:sw -> optionslist:in0:n [color="#5aa7e6", fontcolor="#5aa7e6", tooltip="FK_optionslistarticle_optionslist", weight=3]; - optionslistarticle:article_id:e -> article:in1:n [color="#ff7aa8", fontcolor="#ff7aa8", tooltip="FK_optionslistarticle_article", constraint=false, weight=1]; - categoryarticle:category_id:nw -> category:in1:n [color="#e0b25a", fontcolor="#e0b25a", tooltip="FK_categoryarticle_category", weight=3]; - categoryarticle:article_id:sw -> article:in7:n [color="#56c8c8", fontcolor="#56c8c8", tooltip="FK_categoryarticle_article", constraint=false, weight=1]; - categorypic:category_id:sw -> category:in2:n [color="#ff5f9e", fontcolor="#ff5f9e", tooltip="FK_categorypic_category", weight=3]; - categorypic:pic_id:w -> pic:in2:n [color="#ffb25a", fontcolor="#ffb25a", tooltip="FK_categorypic_pic", constraint=false, weight=1]; - categorytext:category_id:e -> category:in3:n [color="#56d68a", fontcolor="#56d68a", tooltip="FK_categorytext_category", weight=3]; - categorytext:language_id:w -> language:in0:n [color="#66b3ff", fontcolor="#66b3ff", tooltip="FK_categorytext_language", constraint=false, weight=1]; - articletext:article_id:e -> article:in8:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_articletext_article", weight=3]; + optionslistarticle:article_id:w -> article:in10:n [color="#ff7aa8", fontcolor="#ff7aa8", tooltip="FK_optionslistarticle_article", constraint=false, weight=1]; + categoryarticle:category_id:nw -> category:in2:n [color="#e0b25a", fontcolor="#e0b25a", tooltip="FK_categoryarticle_category", weight=3]; + categoryarticle:article_id:nw -> article:in2:n [color="#56c8c8", fontcolor="#56c8c8", tooltip="FK_categoryarticle_article", constraint=false, weight=1]; + categorypic:category_id:sw -> category:in3:n [color="#ff5f9e", fontcolor="#ff5f9e", tooltip="FK_categorypic_category", weight=3]; + categorypic:pic_id:e -> pic:in1:n [color="#ffb25a", fontcolor="#ffb25a", tooltip="FK_categorypic_pic", constraint=false, weight=1]; + categorytext:category_id:w -> category:in5:n [color="#56d68a", fontcolor="#56d68a", tooltip="FK_categorytext_category", weight=3]; + categorytext:language_id:e -> language:in0:n [color="#66b3ff", fontcolor="#66b3ff", tooltip="FK_categorytext_language", constraint=false, weight=1]; + articletext:article_id:e -> article:in12:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_articletext_article", weight=3]; articletext:language_id:w -> language:in2:n [color="#ff6b6b", fontcolor="#ff6b6b", tooltip="FK_articletext_language", constraint=false, weight=1]; - price:tax_id:e -> tax:in1:n [color="#6bdf9a", fontcolor="#6bdf9a", tooltip="FK_price_tax", constraint=false, weight=1]; - price:article_id:w -> article:in11:n [color="#5aa7ff", fontcolor="#5aa7ff", tooltip="FK_price_article", weight=3]; + price:tax_id:e -> tax:in2:n [color="#6bdf9a", fontcolor="#6bdf9a", tooltip="FK_price_tax", constraint=false, weight=1]; + price:article_id:sw -> article:in9:n [color="#5aa7ff", fontcolor="#5aa7ff", tooltip="FK_price_article", weight=3]; price:customergroup_id:e -> customergroup:in0:n [color="#f5c15c", fontcolor="#f5c15c", tooltip="FK_price_customergroup", constraint=false, weight=1]; - articlesupplier:article_id:sw -> article:in5:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_articlesupplier_article", weight=3]; + articlesupplier:article_id:sw -> article:in7:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_articlesupplier_article", weight=3]; articlesupplier:entity_id:e -> entity:in0:n [color="#ff9f5a", fontcolor="#ff9f5a", tooltip="FK_articlesupplier_entity", constraint=false, weight=1]; - articlesupplier:tax_id:e -> tax:in0:n [color="#5cd6d6", fontcolor="#5cd6d6", tooltip="FK_articlesupplier_tax", constraint=false, weight=1]; - manifest:company_id:w -> company:in10:n [color="#ff7fc2", fontcolor="#ff7fc2", tooltip="FK_manifest_company", weight=3]; + articlesupplier:tax_id:nw -> tax:in0:n [color="#5cd6d6", fontcolor="#5cd6d6", tooltip="FK_articlesupplier_tax", constraint=false, weight=1]; + manifest:company_id:e -> company:in8:n [color="#ff7fc2", fontcolor="#ff7fc2", tooltip="FK_manifest_company", weight=3]; manifest:entity_id:e -> entity:in1:n [color="#8f95ff", fontcolor="#8f95ff", tooltip="FK_manifest_entity", constraint=false, weight=1]; - manifestarticle:manifest_id:sw -> manifest:in2:n [color="#58d18a", fontcolor="#58d18a", tooltip="FK_manifestarticle_manifest", weight=3]; - warehouse:company_id:e -> company:in11:n [color="#ff8f66", fontcolor="#ff8f66", tooltip="FK_warehouse_company", weight=3]; - ledger:manifestarticle_id:sw -> manifestarticle:in0:n [color="#4fc4e8", fontcolor="#4fc4e8", tooltip="FK_ledger_manifestarticle", weight=3]; - ledger:warehouse_id:e -> warehouse:in0:n [color="#a98cff", fontcolor="#a98cff", tooltip="FK_ledger_warehouse", constraint=false, weight=1]; - numbers:company_id:sw -> company:in18:n [color="#ff6f6f", fontcolor="#ff6f6f", tooltip="FK_numbers_company", weight=3]; + manifestarticle:manifest_id:se -> manifest:in1:n [color="#58d18a", fontcolor="#58d18a", tooltip="FK_manifestarticle_manifest", weight=3]; + warehouse:company_id:e -> company:in6:n [color="#ff8f66", fontcolor="#ff8f66", tooltip="FK_warehouse_company", weight=3]; + ledger:manifestarticle_id:w -> manifestarticle:in0:n [color="#4fc4e8", fontcolor="#4fc4e8", tooltip="FK_ledger_manifestarticle", constraint=false, weight=1]; + ledger:warehouse_id:se -> warehouse:in1:n [color="#a98cff", fontcolor="#a98cff", tooltip="FK_ledger_warehouse", weight=3]; + numbers:company_id:ne -> company:in21:n [color="#ff6f6f", fontcolor="#ff6f6f", tooltip="FK_numbers_company", weight=3]; companyuser:google_auth_id:e -> google_auth:in0:n [color="#4ecb8f", fontcolor="#4ecb8f", tooltip="FK_companyuser_google_auth", constraint=false, weight=1]; - companyuser:company_id:w -> company:in20:n [color="#5aa7e6", fontcolor="#5aa7e6", tooltip="FK_companyuser_company", weight=3]; - modelconversation:companyuser_id:e -> companyuser:in1:n [color="#ff7aa8", fontcolor="#ff7aa8", tooltip="FK_modelconversation_companyuser", weight=3]; - modelvfs:company_id:sw -> company:in13:n [color="#e0b25a", fontcolor="#e0b25a", tooltip="FK_modelvfs_company", weight=3]; + companyuser:company_id:w -> company:in23:n [color="#5aa7e6", fontcolor="#5aa7e6", tooltip="FK_companyuser_company", weight=3]; + modelconversation:companyuser_id:w -> companyuser:in2:n [color="#ff7aa8", fontcolor="#ff7aa8", tooltip="FK_modelconversation_companyuser", weight=3]; + modelvfs:company_id:se -> company:in18:n [color="#e0b25a", fontcolor="#e0b25a", tooltip="FK_modelvfs_company", weight=3]; modelmessage:conversation_id:sw -> modelconversation:in0:n [color="#56c8c8", fontcolor="#56c8c8", tooltip="FK_modelmessage_conversation", weight=3]; - companysetting:company_id:e -> company:in21:n [color="#ff5f9e", fontcolor="#ff5f9e", tooltip="FK_companysetting_company", weight=3]; - posterminal:company_id:e -> company:in6:n [color="#ffb25a", fontcolor="#ffb25a", tooltip="FK_posterminal_company", weight=3]; + companysetting:company_id:w -> company:in22:n [color="#ff5f9e", fontcolor="#ff5f9e", tooltip="FK_companysetting_company", weight=3]; + posterminal:company_id:e -> company:in13:n [color="#ffb25a", fontcolor="#ffb25a", tooltip="FK_posterminal_company", weight=3]; posterminal:root_category_id:w -> category:in7:n [color="#56d68a", fontcolor="#56d68a", tooltip="FK_posterminal_root_category", constraint=false, weight=1]; posterminalcategory:posterminal_id:se -> posterminal:in0:n [color="#66b3ff", fontcolor="#66b3ff", tooltip="FK_posterminalcategory_posterminal", weight=3]; - posterminalcategory:category_id:e -> category:in6:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_posterminalcategory_category", constraint=false, weight=1]; - printer:company_id:w -> company:in7:n [color="#ff6b6b", fontcolor="#ff6b6b", tooltip="FK_printer_company", weight=3]; - labeltemplate:company_id:e -> company:in9:n [color="#6bdf9a", fontcolor="#6bdf9a", tooltip="FK_labeltemplate_company", weight=3]; - manifestattachment:manifest_id:sw -> manifest:in1:n [color="#5aa7ff", fontcolor="#5aa7ff", tooltip="FK_manifestattachment_manifest", weight=3]; + posterminalcategory:category_id:w -> category:in6:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_posterminalcategory_category", constraint=false, weight=1]; + printer:company_id:e -> company:in12:n [color="#ff6b6b", fontcolor="#ff6b6b", tooltip="FK_printer_company", weight=3]; + labeltemplate:company_id:e -> company:in14:n [color="#6bdf9a", fontcolor="#6bdf9a", tooltip="FK_labeltemplate_company", weight=3]; + manifestattachment:manifest_id:sw -> manifest:in2:n [color="#5aa7ff", fontcolor="#5aa7ff", tooltip="FK_manifestattachment_manifest", weight=3]; manifestattachment:file_id:w -> file:in0:n [color="#f5c15c", fontcolor="#f5c15c", tooltip="FK_manifestattachment_file", constraint=false, weight=1]; - propertyname:company_id:e -> company:in5:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_propertyname_company", weight=3]; - articleproperty:article_id:e -> article:in9:n [color="#ff9f5a", fontcolor="#ff9f5a", tooltip="FK_articleproperty_article", weight=3]; - articleproperty:property_id:w -> propertyname:in0:n [color="#5cd6d6", fontcolor="#5cd6d6", tooltip="FK_articleproperty_property", constraint=false, weight=1]; - attributename:company_id:e -> company:in4:n [color="#ff7fc2", fontcolor="#ff7fc2", tooltip="FK_attributename_company", weight=3]; - attributevalue:attribute_id:se -> attributename:in2:n [color="#8f95ff", fontcolor="#8f95ff", tooltip="FK_attributevalue_attribute", weight=3]; - articleattributevalue:article_id:e -> article:in10:n [color="#58d18a", fontcolor="#58d18a", tooltip="FK_articleattributevalue_article", weight=3]; - articleattributevalue:attributevalue_id:w -> attributevalue:in2:n [color="#ff8f66", fontcolor="#ff8f66", tooltip="FK_articleattributevalue_attributevalue", constraint=false, weight=1]; - categoryproperty:category_id:w -> category:in4:n [color="#4fc4e8", fontcolor="#4fc4e8", tooltip="FK_categoryproperty_category", weight=3]; - categoryproperty:property_id:e -> propertyname:in1:n [color="#a98cff", fontcolor="#a98cff", tooltip="FK_categoryproperty_property", constraint=false, weight=1]; - categoryattributevalue:category_id:w -> category:in5:n [color="#ff6f6f", fontcolor="#ff6f6f", tooltip="FK_categoryattributevalue_category", weight=3]; - categoryattributevalue:attributevalue_id:e -> attributevalue:in1:n [color="#4ecb8f", fontcolor="#4ecb8f", tooltip="FK_categoryattributevalue_attributevalue", constraint=false, weight=1]; - account:company_id:e -> company:in8:n [color="#5aa7e6", fontcolor="#5aa7e6", tooltip="FK_account_company", weight=3]; + propertyname:company_id:e -> company:in0:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_propertyname_company", weight=3]; + articleproperty:article_id:w -> article:in0:n [color="#ff9f5a", fontcolor="#ff9f5a", tooltip="FK_articleproperty_article", weight=3]; + articleproperty:property_id:w -> propertyname:in1:n [color="#5cd6d6", fontcolor="#5cd6d6", tooltip="FK_articleproperty_property", constraint=false, weight=1]; + attributename:company_id:e -> company:in1:n [color="#ff7fc2", fontcolor="#ff7fc2", tooltip="FK_attributename_company", weight=3]; + attributevalue:attribute_id:e -> attributename:in2:n [color="#8f95ff", fontcolor="#8f95ff", tooltip="FK_attributevalue_attribute", weight=3]; + articleattributevalue:article_id:e -> article:in1:n [color="#58d18a", fontcolor="#58d18a", tooltip="FK_articleattributevalue_article", weight=3]; + articleattributevalue:attributevalue_id:w -> attributevalue:in1:n [color="#ff8f66", fontcolor="#ff8f66", tooltip="FK_articleattributevalue_attributevalue", constraint=false, weight=1]; + categoryproperty:category_id:e -> category:in1:n [color="#4fc4e8", fontcolor="#4fc4e8", tooltip="FK_categoryproperty_category", weight=3]; + categoryproperty:property_id:w -> propertyname:in0:n [color="#a98cff", fontcolor="#a98cff", tooltip="FK_categoryproperty_property", constraint=false, weight=1]; + categoryattributevalue:category_id:e -> category:in0:n [color="#ff6f6f", fontcolor="#ff6f6f", tooltip="FK_categoryattributevalue_category", weight=3]; + categoryattributevalue:attributevalue_id:w -> attributevalue:in0:n [color="#4ecb8f", fontcolor="#4ecb8f", tooltip="FK_categoryattributevalue_attributevalue", constraint=false, weight=1]; + account:company_id:e -> company:in3:n [color="#5aa7e6", fontcolor="#5aa7e6", tooltip="FK_account_company", weight=3]; payment:account_id:w -> account:in0:n [color="#ff7aa8", fontcolor="#ff7aa8", tooltip="FK_payment_account", constraint=false, weight=1]; - payment:manifest_id:se -> manifest:in0:n [color="#e0b25a", fontcolor="#e0b25a", tooltip="FK_payment_manifest", weight=3]; - shipping:manifest_id:w -> manifest:in4:n [color="#56c8c8", fontcolor="#56c8c8", tooltip="FK_shipping_manifest", weight=3]; - package:shipping_id:e -> shipping:in0:n [color="#ff5f9e", fontcolor="#ff5f9e", tooltip="FK_package_shipping", constraint=false, weight=1]; - package:entityaddress_id:e -> entityaddress:in0:n [color="#ffb25a", fontcolor="#ffb25a", tooltip="FK_package_entityaddress", weight=3]; - ordersummary:company_id:se -> company:in15:n [color="#56d68a", fontcolor="#56d68a", tooltip="FK_ordersummary_company", weight=3]; - ordersummary:manifest_id:w -> manifest:in7:n [color="#66b3ff", fontcolor="#66b3ff", tooltip="FK_ordersummary_manifest", constraint=false, weight=1]; - ordersummary:entity_id:e -> entity:in5:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_ordersummary_entity", constraint=false, weight=1]; - quotesummary:company_id:e -> company:in12:n [color="#ff6b6b", fontcolor="#ff6b6b", tooltip="FK_quotesummary_company", weight=3]; - quotesummary:manifest_id:nw -> manifest:in3:n [color="#6bdf9a", fontcolor="#6bdf9a", tooltip="FK_quotesummary_manifest", constraint=false, weight=1]; - quotesummary:entity_id:e -> entity:in2:n [color="#5aa7ff", fontcolor="#5aa7ff", tooltip="FK_quotesummary_entity", constraint=false, weight=1]; - shipmentsummary:company_id:se -> company:in14:n [color="#f5c15c", fontcolor="#f5c15c", tooltip="FK_shipmentsummary_company", weight=3]; - shipmentsummary:manifest_id:sw -> manifest:in5:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_shipmentsummary_manifest", constraint=false, weight=1]; - shipmentsummary:entity_id:e -> entity:in3:n [color="#ff9f5a", fontcolor="#ff9f5a", tooltip="FK_shipmentsummary_entity", constraint=false, weight=1]; - deliverysummary:company_id:se -> company:in16:n [color="#5cd6d6", fontcolor="#5cd6d6", tooltip="FK_deliverysummary_company", weight=3]; - deliverysummary:manifest_id:sw -> manifest:in6:n [color="#ff7fc2", fontcolor="#ff7fc2", tooltip="FK_deliverysummary_manifest", constraint=false, weight=1]; - deliverysummary:supplier_id:e -> entity:in4:n [color="#8f95ff", fontcolor="#8f95ff", tooltip="FK_deliverysummary_supplier", constraint=false, weight=1]; - mcp_auth_code:google_auth_id:sw -> google_auth:in2:n [color="#58d18a", fontcolor="#58d18a", tooltip="FK_mcp_auth_code_google_auth", weight=3]; - mcp_token:google_auth_id:sw -> google_auth:in1:n [color="#ff8f66", fontcolor="#ff8f66", tooltip="FK_mcp_token_google_auth", weight=3]; - subagentschedule:company_id:w -> company:in23:n [color="#4fc4e8", fontcolor="#4fc4e8", tooltip="FK_subagentschedule_company", weight=3]; + payment:manifest_id:e -> manifest:in0:n [color="#e0b25a", fontcolor="#e0b25a", tooltip="FK_payment_manifest", weight=3]; + carrier:company_id:e -> company:in16:n [color="#56c8c8", fontcolor="#56c8c8", tooltip="FK_carrier_company", weight=3]; + shipping:manifest_id:sw -> manifest:in4:n [color="#ff5f9e", fontcolor="#ff5f9e", tooltip="FK_shipping_manifest", weight=3]; + shipping:carrier_id:e -> carrier:in0:n [color="#ffb25a", fontcolor="#ffb25a", tooltip="FK_shipping_carrier", constraint=false, weight=1]; + package:shipping_id:w -> shipping:in0:n [color="#56d68a", fontcolor="#56d68a", tooltip="FK_package_shipping", constraint=false, weight=1]; + package:entityaddress_id:w -> entityaddress:in0:n [color="#66b3ff", fontcolor="#66b3ff", tooltip="FK_package_entityaddress", weight=3]; + ordersummary:company_id:sw -> company:in11:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_ordersummary_company", weight=3]; + ordersummary:manifest_id:e -> manifest:in5:n [color="#ff6b6b", fontcolor="#ff6b6b", tooltip="FK_ordersummary_manifest", constraint=false, weight=1]; + ordersummary:entity_id:w -> entity:in3:n [color="#6bdf9a", fontcolor="#6bdf9a", tooltip="FK_ordersummary_entity", constraint=false, weight=1]; + quotesummary:company_id:e -> company:in7:n [color="#5aa7ff", fontcolor="#5aa7ff", tooltip="FK_quotesummary_company", weight=3]; + quotesummary:manifest_id:sw -> manifest:in3:n [color="#f5c15c", fontcolor="#f5c15c", tooltip="FK_quotesummary_manifest", constraint=false, weight=1]; + quotesummary:entity_id:e -> entity:in2:n [color="#c79bff", fontcolor="#c79bff", tooltip="FK_quotesummary_entity", constraint=false, weight=1]; + shipmentsummary:company_id:ne -> company:in15:n [color="#ff9f5a", fontcolor="#ff9f5a", tooltip="FK_shipmentsummary_company", weight=3]; + shipmentsummary:manifest_id:w -> manifest:in7:n [color="#5cd6d6", fontcolor="#5cd6d6", tooltip="FK_shipmentsummary_manifest", constraint=false, weight=1]; + shipmentsummary:entity_id:e -> entity:in5:n [color="#ff7fc2", fontcolor="#ff7fc2", tooltip="FK_shipmentsummary_entity", constraint=false, weight=1]; + deliverysummary:company_id:sw -> company:in10:n [color="#8f95ff", fontcolor="#8f95ff", tooltip="FK_deliverysummary_company", weight=3]; + deliverysummary:manifest_id:e -> manifest:in6:n [color="#58d18a", fontcolor="#58d18a", tooltip="FK_deliverysummary_manifest", constraint=false, weight=1]; + deliverysummary:supplier_id:w -> entity:in4:n [color="#ff8f66", fontcolor="#ff8f66", tooltip="FK_deliverysummary_supplier", constraint=false, weight=1]; + articlewarehousesummary:article_id:sw -> article:in11:n [color="#4fc4e8", fontcolor="#4fc4e8", tooltip="FK_articlewarehousesummary_article", weight=3]; + articlewarehousesummary:warehouse_id:se -> warehouse:in0:n [color="#a98cff", fontcolor="#a98cff", tooltip="FK_articlewarehousesummary_warehouse", constraint=false, weight=1]; + mcp_auth_code:google_auth_id:sw -> google_auth:in1:n [color="#ff6f6f", fontcolor="#ff6f6f", tooltip="FK_mcp_auth_code_google_auth", weight=3]; + mcp_token:google_auth_id:w -> google_auth:in2:n [color="#4ecb8f", fontcolor="#4ecb8f", tooltip="FK_mcp_token_google_auth", weight=3]; + subagentschedule:company_id:se -> company:in19:n [color="#5aa7e6", fontcolor="#5aa7e6", tooltip="FK_subagentschedule_company", weight=3]; } \ No newline at end of file diff --git a/schema-graph.svg b/schema-graph.svg index 16bb2a0..e4ad6c8 100644 --- a/schema-graph.svg +++ b/schema-graph.svg @@ -4,287 +4,288 @@ - - + + schema - + cluster_identity - -Identity & Company + +Identity & Company cluster_i18n - -Localization + +Localization cluster_catalog - -Catalog + +Catalog cluster_media - -Media + +Media cluster_manifests - -Documents & Shipping + +Documents & Shipping cluster_commerce - -Pricing & Payments + +Pricing & Payments cluster_units - -Units + +Units cluster_pos - -POS + +POS cluster_ai - -AI & Models + +AI & Models cluster_attributes - -Properties & Attributes + +Properties & Attributes customergroup - - - - - -customergroup - - -id -INT -PK - - -company_id -? -INT -FK - - -name -NVARCHAR(255) - - -sort -INT - - -updated_at -DATETIME2 + + + + + +customergroup + + +id +INT +PK + + +company_id +? +INT +FK + + +name +NVARCHAR(255) + + +sort +INT + + +updated_at +DATETIME2 company - - - - - - - - - - - - - - - - - - - - - - - - - - -company - - -id -INT -PK - - -root_category_id -? -INT -FK - - -default_language_id -? -INT -FK - - -taxrate -? -INT -FK - - -reducedtaxrate -? -INT -FK - - -taxfreerate -? -INT -FK - - -poscustomergroup_id -INT -FK - - -name -NVARCHAR(255) + + + + + + + + + + + + + + + + + + + + + + + + + + + +company + + +id +INT +PK + + +root_category_id +? +INT +FK + + +taxrate +? +INT +FK + + +reducedtaxrate +? +INT +FK + + +taxfreerate +? +INT +FK + + +default_language_id +? +INT +FK + + +poscustomergroup_id +INT +FK + + +name +NVARCHAR(255) -customergroup:ne->company:n +customergroup:sw->company:n - - + + -company:se->customergroup:n +company:nw->customergroup:n - - + + language - - - - - - -language - - -id -INT -PK - - -iso639 -NVARCHAR(10) + + + + + + +language + + +id +INT +PK + + +iso639 +NVARCHAR(10) company:w->language:n - - + + - + category - - - - - - - - - - - -category - - -id -INT -PK - - -parent_id -? -INT -FK - - -sort -INT - - -updated_at -DATETIME2 + + + + + + + + + + + +category + + +id +INT +PK + + +parent_id +? +INT +FK + + +sort +INT + + +updated_at +DATETIME2 company:w->category:n - - + + - + tax - - - - - - - -tax - - -id -INT -PK - - -rate -DECIMAL(18,4) + + + + + + + +tax + + +id +INT +PK + + +rate +DECIMAL(18,4) company:w->tax:n - - + + @@ -292,8 +293,8 @@ company:w->tax:n - - + + @@ -301,395 +302,378 @@ company:w->tax:n - - + + meta - - -meta - - -key -NVARCHAR(255) - - -value -NVARCHAR(MAX) + + +meta + + +key +NVARCHAR(255) + + +value +NVARCHAR(MAX) companyhistory - - -companyhistory - - -id -INT -PK - - -company_id -INT -FK - - -companyuser_id -? -INT -FK - - -date -DATETIME2 - - -text -NVARCHAR(MAX) + + +companyhistory + + +id +INT +PK + + +company_id +INT +FK + + +companyuser_id +? +INT +FK + + +date +DATETIME2 + + +text +NVARCHAR(MAX) -companyhistory:sw->company:n +companyhistory:ne->company:n - - + + - + companyuser - - - - - - -companyuser - - -id -INT -PK - - -company_id -INT -FK - - -google_auth_id -INT -FK + + + + + + +companyuser + + +id +INT +PK + + +company_id +INT +FK + + +google_auth_id +INT +FK companyhistory:e->companyuser:n - - + + entityaddress - - - -entityaddress - - -id -INT -PK - - -entity_id -INT -FK - - -first_name? -NVARCHAR(255) - - -name? -NVARCHAR(255) - - -street? -NVARCHAR(255) - - -streetnumber? -NVARCHAR(50) - - -zip? -NVARCHAR(50) - - -city? -NVARCHAR(255) - - -county? -NVARCHAR(255) - - -addresstype -NVARCHAR(50) - - -sort -INT + + + +entityaddress + + +id +INT +PK + + +entity_id +INT +FK + + +first_name? +NVARCHAR(255) + + +name? +NVARCHAR(255) + + +street? +NVARCHAR(255) + + +streetnumber? +NVARCHAR(50) + + +zip? +NVARCHAR(50) + + +city? +NVARCHAR(255) + + +county? +NVARCHAR(255) + + +addresstype +NVARCHAR(50) + + +sort +INT entity - - - - - - - - - - - -entity - - -id -INT -PK - - -customergroup_id -INT -FK - - -first_name? -NVARCHAR(255) - - -name -NVARCHAR(255) - - -number? -NVARCHAR(100) - - -created_at -DATETIME2 - - -updated_at -DATETIME2 + + + + + + + + + + + +entity + + +id +INT +PK + + +customergroup_id +INT +FK + + +first_name? +NVARCHAR(255) + + +name +NVARCHAR(255) + + +number? +NVARCHAR(100) + + +created_at +DATETIME2 + + +updated_at +DATETIME2 -entityaddress:ne->entity:n +entityaddress:sw->entity:n - - + + numbers - - -numbers - - -id -INT -PK - - -company_id -INT -FK - - -type -NVARCHAR(100) - - -prefix -NVARCHAR(50) - - -padding -INT - - -next -INT + + +numbers + + +id +INT +PK + + +company_id +INT +FK + + +type +NVARCHAR(100) + + +prefix +NVARCHAR(50) + + +padding +INT + + +next +INT -numbers:sw->company:n +numbers:ne->company:n - - + + -entity:sw->customergroup:n +entity:w->customergroup:n - - + + entitycontact - - -entitycontact - - -id -INT -PK - - -entity_id -INT -FK - - -contacttype -NVARCHAR(50) - - -contact -NVARCHAR(255) - - -sort -INT + + +entitycontact + + +id +INT +PK + + +entity_id +INT +FK + + +contacttype +NVARCHAR(50) + + +contact +NVARCHAR(255) + + +sort +INT -entitycontact:sw->entity:n +entitycontact:se->entity:n - - + + - - -companyuser:w->company:n - - - - + + +companysetting + + +companysetting + + +id +INT +PK + + +company_id +INT +FK + + +key +NVARCHAR(255) + + +value +NVARCHAR(MAX) + + +frontend +BIT + + +writeonly +BIT - - - -google_auth - - - - - -google_auth - - -id -INT -PK - - -selected_company -? -INT -FK - - -email -NVARCHAR(320) - - -picture? -NVARCHAR(2048) - - -picturebinary? -VARBINARY(MAX) - - -sub? -NVARCHAR(255) - - -created_at -DATETIME2 - - - -companyuser:e->google_auth:n - - - + + +companysetting:w->company:n + + + entityhistory - - -entityhistory - - -id -INT -PK - - -entity_id -INT -FK - - -companyuser_id -? -INT -FK - - -date -DATETIME2 - - -text -NVARCHAR(MAX) + + +entityhistory + + +id +INT +PK + + +entity_id +INT +FK + + +companyuser_id +? +INT +FK + + +date +DATETIME2 + + +text +NVARCHAR(MAX) entityhistory:sw->entity:n - - + + @@ -697,50 +681,67 @@ entityhistory:se->companyuser:n - - + + - - -companysetting - - -companysetting - - -id -INT -PK - - -company_id -INT -FK - - -key -NVARCHAR(255) - - -value -NVARCHAR(MAX) - - -frontend -BIT - - -writeonly -BIT + + +companyuser:w->company:n + + + + - - -companysetting:e->company:n - - - + + + +google_auth + + + + + +google_auth + + +id +INT +PK + + +selected_company +? +INT +FK + + +email +NVARCHAR(320) + + +picture? +NVARCHAR(2048) + + +picturebinary? +VARBINARY(MAX) + + +sub? +NVARCHAR(255) + + +created_at +DATETIME2 + + + +companyuser:e->google_auth:n + + + @@ -748,771 +749,336 @@ google_auth:w->company:n - - - - - - - -articletext - - -articletext - - -id -INT -PK - - -article_id -INT -FK - - -language_id -INT -FK - - -name -NVARCHAR(255) - - -slug -NVARCHAR(255) - - -seo? -NVARCHAR(MAX) - - -desc? -NVARCHAR(MAX) - - - -articletext:w->language:n - - - - - - - - -article - - - - - - - - - - - - - - -article - - -id -INT -PK - - -brand_id -? -INT -FK - - -articlelist_id -? -INT -FK - - -optionslist_id -? -INT -FK - - -parentarticle_id -? -INT -FK - - -unit_id -INT -FK - - -parentattributename_id -? -INT -FK - - -company_id -INT -FK - - -sku? -NVARCHAR(100) - - -unitamount -FLOAT - - -weight -FLOAT - - -track_stock -BIT - - -is_parent -BIT - - -parentsort -INT - - -created_at -DATETIME2 - - -updated_at -DATETIME2 - - - -articletext:e->article:n - - - + + - + categorytext - - -categorytext - - -id -INT -PK - - -category_id -INT -FK - - -language_id -INT -FK - - -name -NVARCHAR(255) - - -slug -NVARCHAR(255) - - -seo? -NVARCHAR(MAX) - - -desc? -NVARCHAR(MAX) + + +categorytext + + +id +INT +PK + + +category_id +INT +FK + + +language_id +INT +FK + + +name +NVARCHAR(255) + + +slug +NVARCHAR(255) + + +seo? +NVARCHAR(MAX) + + +desc? +NVARCHAR(MAX) -categorytext:w->language:n +categorytext:e->language:n - - + + -categorytext:e->category:n +categorytext:w->category:n - - + + + + + + + +articletext + + +articletext + + +id +INT +PK + + +article_id +INT +FK + + +language_id +INT +FK + + +name +NVARCHAR(255) + + +slug +NVARCHAR(255) + + +seo? +NVARCHAR(MAX) + + +desc? +NVARCHAR(MAX) + + + +articletext:w->language:n + + + + + + + + +article + + + + + + + + + + + + + + + +article + + +id +INT +PK + + +parentattributename_id +? +INT +FK + + +parentarticle_id +? +INT +FK + + +articlelist_id +? +INT +FK + + +optionslist_id +? +INT +FK + + +brand_id +? +INT +FK + + +unit_id +INT +FK + + +company_id +INT +FK + + +sku? +NVARCHAR(100) + + +unitamount +FLOAT + + +weight +FLOAT + + +track_stock +BIT + + +is_parent +BIT + + +parentsort +INT + + +created_at +DATETIME2 + + +updated_at +DATETIME2 + + + +articletext:e->article:n + + + unittext - - -unittext - - -id -INT -PK - - -language_id -INT -FK - - -unit_id -INT -FK - - -symbol -NVARCHAR(50) - - -name -NVARCHAR(255) + + +unittext + + +id +INT +PK + + +language_id +INT +FK + + +unit_id +INT +FK + + +symbol +NVARCHAR(50) + + +name +NVARCHAR(255) unittext:w->language:n - - + + - + unit - - - - -unit - - -id -INT -PK - - -company_id -INT -FK - - -si -NVARCHAR(50) - - -basesi -NVARCHAR(50) - - -basesifactor -FLOAT + + + + +unit + + +id +INT +PK + + +company_id +INT +FK + + +si +NVARCHAR(50) + + +basesi +NVARCHAR(50) + + +basesifactor +FLOAT -unittext:se->unit:n +unittext:sw->unit:n - - + + - + -brand - - - - -brand - - -id -INT -PK - - -company_id -INT -FK - - -name -NVARCHAR(255) - - -gsprpinfo? -NVARCHAR(MAX) +categoryarticle + + +categoryarticle + + +id +INT +PK + + +category_id +INT +FK + + +article_id +INT +FK - - -brand:e->company:n - - - + + +categoryarticle:nw->category:n + + + - - -articletombstone - - -articletombstone - - -id -INT -PK - - -company_id -INT -FK - - -article_id? -INT - - -sku? -NVARCHAR(100) - - -name? -NVARCHAR(255) - - -taxrate? -DECIMAL(18,4) - - -net? -FLOAT - - -deleted_at -DATETIME2 - - - -articletombstone:e->company:n - - - - - - - - -articlelist - - - - -articlelist - - -id -INT -PK - - - -articlelistarticle - - -articlelistarticle - - -id -INT -PK - - -articlelist_id -INT -FK - - -article_id -INT -FK - - -count -INT - - -sort -INT - - - -articlelistarticle:nw->articlelist:n - - - - - - - - -articlelistarticle:w->article:n - - - - - - - - -optionslist - - - - -optionslist - - -id -INT -PK - - - -optionslistarticle - - -optionslistarticle - - -id -INT -PK - - -optionslist_id -INT -FK - - -article_id -INT -FK - - -count -INT - - -sort -INT - - -mandated -BIT - - - -optionslistarticle:sw->optionslist:n - - - - - - - - -optionslistarticle:e->article:n - - - - - - - - -articlehistory - - -articlehistory - - -id -INT -PK - - -article_id -INT -FK - - -companyuser_id -? -INT -FK - - -date -DATETIME2 - - -text -NVARCHAR(MAX) - - -meta? -NVARCHAR(MAX) - - - -articlehistory:e->companyuser:n - - - - - - - - -articlehistory:se->article:n - - - - - - - - -articleean - - -articleean - - -id -INT -PK - - -article_id -INT -FK - - -ean -NVARCHAR(50) - - - -articleean:ne->article:n - - - - - - - - -article:e->company:n - - - - - - - - -article:w->brand:n - - - - - - - - -article:w->articlelist:n - - - - - - - - -article:w->optionslist:n - - - - - - - - -article:e->article:e - - - - - - - - -article:e->unit:n - - - - - - - - -attributename - - - - - -attributename - - -id -INT -PK - - -company_id -INT -FK - - -name -NVARCHAR(255) - - -sort -INT - - -exclusive -BIT - - - -article:se->attributename:n - - - - - - - - -article:se->attributename:n - - - - - - - - -articlesupplier - - -articlesupplier - - -id -INT -PK - - -article_id -INT -FK - - -tax_id -? -INT -FK - - -entity_id -INT -FK - - -net? -FLOAT - - -sku? -NVARCHAR(100) - - -stock? -FLOAT - - -pu -FLOAT - - -sort -INT - - - -articlesupplier:e->entity:n - - - - - - - - -articlesupplier:sw->article:n - - - - - - - - -articlesupplier:e->tax:n - - - + + +categoryarticle:nw->article:n + + + @@ -1520,151 +1086,747 @@ category:e->category:e - - + + - + + +articlehistory + + +articlehistory + + +id +INT +PK + + +article_id +INT +FK + + +companyuser_id +? +INT +FK + + +date +DATETIME2 + + +text +NVARCHAR(MAX) + + +meta? +NVARCHAR(MAX) + + + +articlehistory:e->companyuser:n + + + + + + + + +articlehistory:se->article:n + + + + + + + + +article:e->company:n + + + + + + + + +article:e->article:e + + + + + + + + +articlelist + + + + +articlelist + + +id +INT +PK + + + +article:w->articlelist:n + + + + + + + + +optionslist + + + + +optionslist + + +id +INT +PK + + + +article:w->optionslist:n + + + + + + + + +brand + + + + +brand + + +id +INT +PK + + +company_id +INT +FK + + +name +NVARCHAR(255) + + +gsprpinfo? +NVARCHAR(MAX) + + + +article:w->brand:n + + + + + + + + +article:e->unit:n + + + + + + + + +attributename + + + + + +attributename + + +id +INT +PK + + +company_id +INT +FK + + +name +NVARCHAR(255) + + +sort +INT + + +exclusive +BIT + + + +article:ne->attributename:n + + + + + + + + +article:ne->attributename:n + + + + + + + + +articleean + + +articleean + + +id +INT +PK + + +article_id +INT +FK + + +ean +NVARCHAR(50) + + + +articleean:sw->article:n + + + + + + + + +articlesupplier + + +articlesupplier + + +id +INT +PK + + +article_id +INT +FK + + +tax_id +? +INT +FK + + +entity_id +INT +FK + + +net? +FLOAT + + +sku? +NVARCHAR(100) + + +stock? +FLOAT + + +pu +FLOAT + + +sort +INT + + + +articlesupplier:e->entity:n + + + + + + + + +articlesupplier:sw->article:n + + + + + + + + +articlesupplier:nw->tax:n + + + + + + + + +articlelistarticle + + +articlelistarticle + + +id +INT +PK + + +article_id +INT +FK + + +articlelist_id +INT +FK + + +count +INT + + +sort +INT + + + +articlelistarticle:w->article:n + + + + + + + + +articlelistarticle:se->articlelist:n + + + + + + + + +optionslistarticle + + +optionslistarticle + + +id +INT +PK + + +article_id +INT +FK + + +optionslist_id +INT +FK + + +count +INT + + +sort +INT + + +mandated +BIT + + + +optionslistarticle:w->article:n + + + + + + + + +optionslistarticle:sw->optionslist:n + + + + + + + + +brand:e->company:n + + + + + + + -categoryarticle - - -categoryarticle - - -id -INT -PK - - -article_id -INT -FK - - -category_id -INT -FK +articletombstone + + +articletombstone + + +id +INT +PK + + +company_id +INT +FK + + +article_id? +INT + + +sku? +NVARCHAR(100) + + +name? +NVARCHAR(255) + + +taxrate? +DECIMAL(18,4) + + +net? +FLOAT + + +deleted_at +DATETIME2 - - -categoryarticle:sw->article:n - - - + + +articletombstone:e->company:n + + + - - -categoryarticle:nw->category:n - - - - - + + +attributevaluepic + + +attributevaluepic + + +id +INT +PK + + +attributevalue_id +INT +FK + + +pic_id +INT +FK + + +sort +INT - + pic - - - - - - -pic - - -id -INT -PK - - -w -INT - - -h -INT - - -size -BIGINT - - -hash -NVARCHAR(64) - - -thumbw -INT - - -thumbh -INT - - -thumbhash -NVARCHAR(64) - - -smallthumbw -INT - - -smallthumbh -INT - - -source -NVARCHAR(MAX) - - -fullbinary -VARBINARY(MAX) - - -thumbbinary -VARBINARY(MAX) - - -smallthumbbinary -VARBINARY(MAX) + + + + + + +pic + + +id +INT +PK + + +w +INT + + +h +INT + + +size +BIGINT + + +hash +NVARCHAR(64) + + +thumbw +INT + + +thumbh +INT + + +thumbhash +NVARCHAR(64) + + +smallthumbw +INT + + +smallthumbh +INT + + +source +NVARCHAR(MAX) + + +fullbinary +VARBINARY(MAX) + + +thumbbinary +VARBINARY(MAX) + + +smallthumbbinary +VARBINARY(MAX) + + + +attributevaluepic:e->pic:n + + + + + + + + +attributevalue + + + + + +attributevalue + + +id +INT +PK + + +attribute_id +INT +FK + + +value +NVARCHAR(255) + + +sort +INT + + + +attributevaluepic:w->attributevalue:n + + + + + + + + +categorypic + + +categorypic + + +id +INT +PK + + +category_id +INT +FK + + +pic_id +INT +FK + + +sort +INT + + + +categorypic:sw->category:n + + + + + + + + +categorypic:e->pic:n + + + + + + + + +articlepic + + +articlepic + + +id +INT +PK + + +pic_id +INT +FK + + +article_id +INT +FK + + +sort +INT + + + +articlepic:ne->article:n + + + + + + + + +articlepic:e->pic:n + + + + + - + brandpic - - -brandpic - - -id -INT -PK - - -brand_id -INT -FK - - -pic_id -INT -FK - - -sort -INT + + +brandpic + + +id +INT +PK + + +pic_id +INT +FK + + +brand_id +INT +FK + + +sort +INT brandpic:w->brand:n - - + + @@ -1672,488 +1834,251 @@ brandpic:w->pic:n - - - - - - - -articlepic - - -articlepic - - -id -INT -PK - - -article_id -INT -FK - - -pic_id -INT -FK - - -sort -INT - - - -articlepic:se->article:n - - - - - - - - -articlepic:w->pic:n - - - - - - - - -categorypic - - -categorypic - - -id -INT -PK - - -pic_id -INT -FK - - -category_id -INT -FK - - -sort -INT - - - -categorypic:sw->category:n - - - - - - - - -categorypic:w->pic:n - - - - - - - - -attributevaluepic - - -attributevaluepic - - -id -INT -PK - - -pic_id -INT -FK - - -attributevalue_id -INT -FK - - -sort -INT - - - -attributevaluepic:w->pic:n - - - - - - - - -attributevalue - - - - - -attributevalue - - -id -INT -PK - - -attribute_id -INT -FK - - -value -NVARCHAR(255) - - -sort -INT - - - -attributevaluepic:e->attributevalue:n - - - + + file - - - -file - - -id -INT -PK - - -hash -NVARCHAR(64) - - -mimetype -NVARCHAR(255) - - -name -NVARCHAR(255) - - -size -BIGINT - - -created -DATETIME2 - - -modified -DATETIME2 - - -content -VARBINARY(MAX) - - -thumbavif? -VARBINARY(MAX) - - -thumbx? -INT - - -thumby? -INT - - -meta? -NVARCHAR(MAX) + + + +file + + +id +INT +PK + + +hash +NVARCHAR(64) + + +mimetype +NVARCHAR(255) + + +name +NVARCHAR(255) + + +size +BIGINT + + +created +DATETIME2 + + +modified +DATETIME2 + + +content +VARBINARY(MAX) + + +thumbavif? +VARBINARY(MAX) + + +thumbx? +INT + + +thumby? +INT + + +meta? +NVARCHAR(MAX) - + -manifestattachment - - -manifestattachment - - -id -INT -PK - - -file_id -INT -FK - - -manifest_id -INT -FK - - -sort -INT +articlewarehousesummary + + +articlewarehousesummary + + +id +INT +PK + + +article_id +INT +FK + + +warehouse_id +INT +FK + + +stock +FLOAT - - -manifestattachment:w->file:n - - - + + +articlewarehousesummary:sw->article:n + + + - + -manifest - - - - - - - - - - -manifest - - -id -INT -PK - - -company_id -INT -FK - - -entity_id -? -INT -FK - - -number -NVARCHAR(100) - - -type -NVARCHAR(100) - - -external_number? -NVARCHAR(100) - - -date -DATETIME2 - - -created_at -DATETIME2 +warehouse + + + + +warehouse + + +id +INT +PK + + +company_id +INT +FK + + +name +NVARCHAR(255) + + +sort +INT - - -manifestattachment:sw->manifest:n - - - + + +articlewarehousesummary:se->warehouse:n + + + ledger - - -ledger - - -id -INT -PK - - -manifestarticle_id -INT -FK - - -warehouse_id -? -INT -FK - - -transaction_type -NVARCHAR(100) - - -amount -FLOAT - - -transaction_text -NVARCHAR(MAX) - - -hash_version -INT - - -prev_hash? -NVARCHAR(128) - - -created_at -DATETIME2 + + +ledger + + +id +INT +PK + + +warehouse_id +? +INT +FK + + +manifestarticle_id +INT +FK + + +transaction_type +NVARCHAR(100) + + +amount +FLOAT + + +transaction_text +NVARCHAR(MAX) + + +hash_version +INT + + +prev_hash? +NVARCHAR(128) + + +created_at +DATETIME2 + + + +ledger:se->warehouse:n + + + + + manifestarticle - - - -manifestarticle - - -id -INT -PK - - -manifest_id -INT -FK - - -sku? -NVARCHAR(100) - - -name? -NVARCHAR(255) - - -pu -FLOAT - - -amount -FLOAT - - -net -FLOAT - - -comment? -NVARCHAR(MAX) - - -rebate -FLOAT - - -taxrate -FLOAT + + + +manifestarticle + + +id +INT +PK + + +manifest_id +INT +FK + + +sku? +NVARCHAR(100) + + +name? +NVARCHAR(255) + + +pu +FLOAT + + +amount +FLOAT + + +net +FLOAT + + +comment? +NVARCHAR(MAX) + + +rebate +FLOAT + + +taxrate +FLOAT -ledger:sw->manifestarticle:n +ledger:w->manifestarticle:n - - - - - - - -warehouse - - - -warehouse - - -id -INT -PK - - -company_id -INT -FK - - -name -NVARCHAR(255) - - -sort -INT - - - -ledger:e->warehouse:n - - - - - - - - -manifest:w->company:n - - - - - - - - -manifest:e->entity:n - - - - - - - - -manifestarticle:sw->manifest:n - - - + + @@ -2161,568 +2086,734 @@ warehouse:e->company:n - - + + - + + +manifest + + + + + + + + + + +manifest + + +id +INT +PK + + +company_id +INT +FK + + +entity_id +? +INT +FK + + +number +NVARCHAR(100) + + +type +NVARCHAR(100) + + +external_number? +NVARCHAR(100) + + +date +DATETIME2 + + +created_at +DATETIME2 + + + +manifestarticle:se->manifest:n + + + + + + + + +manifest:e->company:n + + + + + + + + +manifest:e->entity:n + + + + + + + -quotesummary - - -quotesummary - - -id -INT -PK - - -manifest_id -INT -FK - - -company_id -INT -FK - - -entity_id -? -INT -FK - - -quote_number -NVARCHAR(100) - - -quote_date -DATETIME2 - - -created_at -DATETIME2 - - -customer_name? -NVARCHAR(255) - - -positions -INT - - -gross_total -FLOAT - - -total_quantity -FLOAT +manifestattachment + + +manifestattachment + + +id +INT +PK + + +file_id +INT +FK + + +manifest_id +INT +FK + + +sort +INT - - -quotesummary:e->company:n - - - + + +manifestattachment:w->file:n + + + - - -quotesummary:e->entity:n - - - - - - - - -quotesummary:nw->manifest:n - - - + + +manifestattachment:sw->manifest:n + + + shipping - - - -shipping - - -id -INT -PK - - -manifest_id -INT -FK - - -number -NVARCHAR(100) - - -tracking_code? -NVARCHAR(255) - - -carrier? -NVARCHAR(100) - - -type -NVARCHAR(100) - - -state -NVARCHAR(100) + + + +shipping + + +id +INT +PK + + +manifest_id +INT +FK + + +carrier_id +INT +FK + + +number +NVARCHAR(100) + + +tracking_code? +NVARCHAR(255) + + +type +NVARCHAR(100) + + +state +NVARCHAR(100) - -shipping:w->manifest:n - - - + +shipping:sw->manifest:n + + + - + + +carrier + + + +carrier + + +id +INT +PK + + +company_id +INT +FK + + +name +NVARCHAR(255) + + +sort +INT + + +has_packages +BIT + + +is_reverse +BIT + + + +shipping:e->carrier:n + + + + + + + -shipmentsummary - - -shipmentsummary - - -id -INT -PK - - -manifest_id -INT -FK - - -company_id -INT -FK - - -entity_id -? -INT -FK - - -shipment_number -NVARCHAR(100) - - -shipment_date -DATETIME2 - - -created_at -DATETIME2 - - -order_id? -INT - - -order_number? -NVARCHAR(100) - - -customer_name? -NVARCHAR(255) - - -positions -INT - - -total_quantity -FLOAT - - -package_count -INT - - -carrier? -NVARCHAR(100) - - -tracking_code? -NVARCHAR(255) - - -state -NVARCHAR(50) +quotesummary + + +quotesummary + + +id +INT +PK + + +manifest_id +INT +FK + + +company_id +INT +FK + + +entity_id +? +INT +FK + + +quote_number +NVARCHAR(100) + + +quote_date +DATETIME2 + + +created_at +DATETIME2 + + +customer_name? +NVARCHAR(255) + + +positions +INT + + +gross_total +FLOAT + + +total_quantity +FLOAT - - -shipmentsummary:se->company:n - - - + + +quotesummary:e->company:n + + + - - -shipmentsummary:e->entity:n - - - - - - - + -shipmentsummary:sw->manifest:n - - - +quotesummary:e->entity:n + + + - + + +quotesummary:sw->manifest:n + + + + + + + -deliverysummary - - -deliverysummary - - -id -INT -PK - - -manifest_id -INT -FK - - -company_id -INT -FK - - -supplier_id -? -INT -FK - - -delivery_number -NVARCHAR(100) - - -external_number? -NVARCHAR(100) - - -delivery_date -DATETIME2 - - -created_at -DATETIME2 - - -supplier_name? -NVARCHAR(255) - - -positions -INT - - -gross_total -FLOAT - - -net_total -FLOAT - - -total_quantity -FLOAT - - -stock_positions -INT - - -booked_positions -INT - - -unbooked_positions -INT - - -stock_quantity -FLOAT - - -booked_quantity -FLOAT - - -unbooked_quantity -FLOAT - - -is_booked -TINYINT +ordersummary + + +ordersummary + + +id +INT +PK + + +manifest_id +INT +FK + + +company_id +INT +FK + + +entity_id +? +INT +FK + + +order_number +NVARCHAR(100) + + +order_date +DATETIME2 + + +created_at +DATETIME2 + + +customer_name? +NVARCHAR(255) + + +positions +INT + + +gross_total +FLOAT + + +paid_total +FLOAT + + +ordered_quantity +FLOAT + + +shipped_quantity +FLOAT + + +is_paid +TINYINT + + +is_shipped +TINYINT - - -deliverysummary:se->company:n - - - + + +ordersummary:sw->company:n + + + - - -deliverysummary:e->entity:n - - - + + +ordersummary:w->entity:n + + + - - -deliverysummary:sw->manifest:n - - - + + +ordersummary:e->manifest:n + + + package - - -package - - -id -INT -PK - - -shipping_id -INT -FK - - -entityaddress_id -INT -FK - - -number -NVARCHAR(100) - - -type -NVARCHAR(100) - - -state -NVARCHAR(100) - - -details? -NVARCHAR(MAX) + + +package + + +id +INT +PK + + +shipping_id +INT +FK + + +entityaddress_id +INT +FK + + +number +NVARCHAR(100) + + +type +NVARCHAR(100) + + +state +NVARCHAR(100) + + +details? +NVARCHAR(MAX) - -package:e->entityaddress:n - - - + +package:w->entityaddress:n + + + - -package:e->shipping:n - - - - - - - - -ordersummary - - -ordersummary - - -id -INT -PK - - -manifest_id -INT -FK - - -company_id -INT -FK - - -entity_id -? -INT -FK - - -order_number -NVARCHAR(100) - - -order_date -DATETIME2 - - -created_at -DATETIME2 - - -customer_name? -NVARCHAR(255) - - -positions -INT - - -gross_total -FLOAT - - -paid_total -FLOAT - - -ordered_quantity -FLOAT - - -shipped_quantity -FLOAT - - -is_paid -TINYINT - - -is_shipped -TINYINT - - -ordersummary:se->company:n - - - +package:w->shipping:n + + + - - -ordersummary:e->entity:n - - - + + +deliverysummary + + +deliverysummary + + +id +INT +PK + + +manifest_id +INT +FK + + +company_id +INT +FK + + +supplier_id +? +INT +FK + + +delivery_number +NVARCHAR(100) + + +external_number? +NVARCHAR(100) + + +delivery_date +DATETIME2 + + +created_at +DATETIME2 + + +supplier_name? +NVARCHAR(255) + + +positions +INT + + +gross_total +FLOAT + + +net_total +FLOAT + + +total_quantity +FLOAT + + +stock_positions +INT + + +booked_positions +INT + + +unbooked_positions +INT + + +stock_quantity +FLOAT + + +booked_quantity +FLOAT + + +unbooked_quantity +FLOAT + + +is_booked +TINYINT + + + +deliverysummary:sw->company:n + + + - - -ordersummary:w->manifest:n - - - + + +deliverysummary:w->entity:n + + + + + + + + +deliverysummary:e->manifest:n + + + + + + + + +shipmentsummary + + +shipmentsummary + + +id +INT +PK + + +manifest_id +INT +FK + + +company_id +INT +FK + + +entity_id +? +INT +FK + + +shipment_number +NVARCHAR(100) + + +shipment_date +DATETIME2 + + +created_at +DATETIME2 + + +order_id? +INT + + +order_number? +NVARCHAR(100) + + +customer_name? +NVARCHAR(255) + + +positions +INT + + +total_quantity +FLOAT + + +package_count +INT + + +carrier? +NVARCHAR(100) + + +tracking_code? +NVARCHAR(255) + + +state +NVARCHAR(50) + + + +shipmentsummary:ne->company:n + + + + + + + + +shipmentsummary:e->entity:n + + + + + + + + +shipmentsummary:w->manifest:n + + + - + price - - -price - - -id -INT -PK - - -article_id -INT -FK - - -tax_id -INT -FK - - -customergroup_id -INT -FK - - -minmultiplier -DECIMAL(18,4) - - -net -FLOAT + + +price + + +id +INT +PK + + +article_id +INT +FK + + +tax_id +INT +FK + + +customergroup_id +INT +FK + + +minmultiplier +DECIMAL(18,4) + + +net +FLOAT price:e->customergroup:n - - + + -price:w->article:n +price:sw->article:n - - + + @@ -2730,82 +2821,82 @@ price:e->tax:n - - + + - + account - - - -account - - -id -INT -PK - - -company_id -INT -FK - - -type -NVARCHAR(100) - - -name -NVARCHAR(255) + + + +account + + +id +INT +PK + + +company_id +INT +FK + + +type +NVARCHAR(100) + + +name +NVARCHAR(255) account:e->company:n - - + + - + payment - - -payment - - -id -INT -PK - - -account_id -INT -FK - - -manifest_id -INT -FK - - -type -NVARCHAR(100) - - -amount -FLOAT + + +payment + + +id +INT +PK + + +account_id +INT +FK + + +manifest_id +INT +FK + + +type +NVARCHAR(100) + + +amount +FLOAT -payment:se->manifest:n +payment:e->manifest:n - - + + @@ -2813,8 +2904,8 @@ payment:w->account:n - - + + @@ -2822,108 +2913,158 @@ unit:w->company:n - - + + - + posterminalcategory - - -posterminalcategory - - -id -INT -PK - - -category_id -INT -FK - - -posterminal_id -INT -FK + + +posterminalcategory + + +id +INT +PK + + +category_id +INT +FK + + +posterminal_id +INT +FK -posterminalcategory:e->category:n +posterminalcategory:w->category:n - - + + - + posterminal - - - -posterminal - - -id -INT -PK - - -root_category_id -? -INT -FK - - -company_id -INT -FK - - -name -NVARCHAR(255) - - -token? -NVARCHAR(255) - - -pairingpin? -NVARCHAR(50) - - -paired_at? -DATETIME2 - - -clientserial? -NVARCHAR(255) - - -maxknowntombstoneid? -INT - - -sync_root_articles -BIT - - -lastseen_at? -DATETIME2 - - -updated_at -DATETIME2 + + + +posterminal + + +id +INT +PK + + +root_category_id +? +INT +FK + + +company_id +INT +FK + + +name +NVARCHAR(255) + + +token? +NVARCHAR(255) + + +pairingpin? +NVARCHAR(50) + + +paired_at? +DATETIME2 + + +clientserial? +NVARCHAR(255) + + +maxknowntombstoneid? +INT + + +sync_root_articles +BIT + + +lastseen_at? +DATETIME2 + + +updated_at +DATETIME2 posterminalcategory:se->posterminal:n - - + + + + + + + +printer + + +printer + + +id +INT +PK + + +company_id +INT +FK + + +address +NVARCHAR(255) + + +type +NVARCHAR(50) + + +model? +NVARCHAR(255) + + +serial? +NVARCHAR(255) + + +sort +INT + + +desc? +NVARCHAR(MAX) + + + +printer:e->company:n + + + @@ -2931,8 +3072,8 @@ posterminal:e->company:n - - + + @@ -2940,475 +3081,448 @@ posterminal:w->category:n - - - - - - - -printer - - -printer - - -id -INT -PK - - -company_id -INT -FK - - -address -NVARCHAR(255) - - -type -NVARCHAR(50) - - -model? -NVARCHAR(255) - - -serial? -NVARCHAR(255) - - -sort -INT - - -desc? -NVARCHAR(MAX) - - - -printer:w->company:n - - - + + - + labeltemplate - - -labeltemplate - - -id -INT -PK - - -company_id -INT -FK - - -name -NVARCHAR(255) - - -width -INT - - -height -INT - - -dpi -INT - - -type -NVARCHAR(50) - - -content -NVARCHAR(MAX) - - -thumb? -VARBINARY(MAX) + + +labeltemplate + + +id +INT +PK + + +company_id +INT +FK + + +name +NVARCHAR(255) + + +width +INT + + +height +INT + + +dpi +INT + + +type +NVARCHAR(50) + + +content +NVARCHAR(MAX) + + +thumb? +VARBINARY(MAX) labeltemplate:e->company:n - - + + - + modelvfs - - -modelvfs - - -id -INT -PK - - -company_id -INT -FK - - -name -NVARCHAR(255) - - -mime -NVARCHAR(100) - - -content -VARBINARY(MAX) - - -meta -NVARCHAR(MAX) - - -created_at -DATETIME2 - - -updated_at -DATETIME2 + + +modelvfs + + +id +INT +PK + + +company_id +INT +FK + + +name +NVARCHAR(255) + + +mime +NVARCHAR(100) + + +content +VARBINARY(MAX) + + +meta +NVARCHAR(MAX) + + +created_at +DATETIME2 + + +updated_at +DATETIME2 -modelvfs:sw->company:n +modelvfs:se->company:n - - + + + + + + + +subagentschedule + + +subagentschedule + + +id +INT +PK + + +company_id +INT +FK + + +desc? +NVARCHAR(MAX) + + +prompt +NVARCHAR(MAX) + + +skills? +NVARCHAR(MAX) + + +lastagentnote? +NVARCHAR(MAX) + + +max_itr +INT + + +cron +NVARCHAR(100) + + +created_at +DATETIME2 + + +lastrun_at? +DATETIME2 + + + +subagentschedule:se->company:n + + + - + modelconversation - - - -modelconversation - - -id -INT -PK - - -companyuser_id -INT -FK - - -provider -NVARCHAR(100) - - -model -NVARCHAR(255) - - -created_at -DATETIME2 - - -updated_at -DATETIME2 - - -state -NVARCHAR(20) - - -started_by? -INT + + + +modelconversation + + +id +INT +PK + + +companyuser_id +INT +FK + + +provider +NVARCHAR(100) + + +model +NVARCHAR(255) + + +created_at +DATETIME2 + + +updated_at +DATETIME2 + + +state +NVARCHAR(20) + + +started_by? +INT -modelconversation:e->companyuser:n +modelconversation:w->companyuser:n - - + + - + modelmessage - - -modelmessage - - -id -INT -PK - - -conversation_id -INT -FK - - -created_at -DATETIME2 - - -role -NVARCHAR(20) - - -message -NVARCHAR(MAX) + + +modelmessage + + +id +INT +PK + + +conversation_id +INT +FK + + +created_at +DATETIME2 + + +role +NVARCHAR(20) + + +message +NVARCHAR(MAX) modelmessage:sw->modelconversation:n - - - - - - - -articleproperty - - -articleproperty - - -id -INT -PK - - -article_id -INT -FK - - -property_id -INT -FK - - -value -NVARCHAR(MAX) - - -sort -INT - - - -articleproperty:e->article:n - - - + + - -propertyname - - - - -propertyname - - -id -INT -PK - - -company_id -INT -FK - - -name -NVARCHAR(255) - - -sort -INT - - -exclusive -BIT - - - -articleproperty:w->propertyname:n - - - - - - - - -articleattributevalue - - -articleattributevalue - - -id -INT -PK - - -article_id -INT -FK - - -attributevalue_id -INT -FK - - -sort -INT - - - -articleattributevalue:e->article:n - - - - - - - - -articleattributevalue:w->attributevalue:n - - - - - - - -categoryproperty - - -categoryproperty - - -id -INT -PK - - -category_id -INT -FK - - -property_id -INT -FK - - -value -NVARCHAR(MAX) - - -sort -INT +propertyname + + + + +propertyname + + +id +INT +PK + + +company_id +INT +FK + + +name +NVARCHAR(255) + + +sort +INT + + +exclusive +BIT - - -categoryproperty:w->category:n - - - - - - - - -categoryproperty:e->propertyname:n - - - - - - - - -categoryattributevalue - - -categoryattributevalue - - -id -INT -PK - - -category_id -INT -FK - - -attributevalue_id -INT -FK - - -sort -INT - - - -categoryattributevalue:w->category:n - - - - - - - - -categoryattributevalue:e->attributevalue:n - - - + + +propertyname:e->company:n + + + -attributevalue:se->attributename:n +attributevalue:e->attributename:n - - + + + + + + + +categoryproperty + + +categoryproperty + + +id +INT +PK + + +property_id +INT +FK + + +category_id +INT +FK + + +value +NVARCHAR(MAX) + + +sort +INT + + + +categoryproperty:e->category:n + + + + + + + + +categoryproperty:w->propertyname:n + + + + + + + + +categoryattributevalue + + +categoryattributevalue + + +id +INT +PK + + +attributevalue_id +INT +FK + + +category_id +INT +FK + + +sort +INT + + + +categoryattributevalue:e->category:n + + + + + + + + +categoryattributevalue:w->attributevalue:n + + + + + + + + +articleproperty + + +articleproperty + + +id +INT +PK + + +property_id +INT +FK + + +article_id +INT +FK + + +value +NVARCHAR(MAX) + + +sort +INT + + + +articleproperty:w->article:n + + + + + + + + +articleproperty:w->propertyname:n + + + @@ -3416,257 +3530,243 @@ attributename:e->company:n - - + + - - -propertyname:e->company:n - - - + + +articleattributevalue + + +articleattributevalue + + +id +INT +PK + + +attributevalue_id +INT +FK + + +article_id +INT +FK + + +sort +INT + + + +articleattributevalue:e->article:n + + + + + + + + +articleattributevalue:w->attributevalue:n + + + + + + + + +carrier:e->company:n + + + - + mcp_client - - -mcp_client - - -id -INT -PK - - -client_id -NVARCHAR(100) - - -client_secret? -NVARCHAR(255) - - -client_name -NVARCHAR(255) - - -redirect_uris -NVARCHAR(MAX) - - -grant_types? -NVARCHAR(255) - - -response_types? -NVARCHAR(255) - - -scope? -NVARCHAR(255) - - -created_at -DATETIME2 - - - -mcp_token - - -mcp_token - - -id -INT -PK - - -google_auth_id -INT -FK - - -refresh_token -NVARCHAR(128) - - -client_id -NVARCHAR(100) - - -scope? -NVARCHAR(255) - - -expires_at -DATETIME2 - - -revoked -TINYINT - - -created_at -DATETIME2 - - - -mcp_token:sw->google_auth:n - - - - - + + +mcp_client + + +id +INT +PK + + +client_id +NVARCHAR(100) + + +client_secret? +NVARCHAR(255) + + +client_name +NVARCHAR(255) + + +redirect_uris +NVARCHAR(MAX) + + +grant_types? +NVARCHAR(255) + + +response_types? +NVARCHAR(255) + + +scope? +NVARCHAR(255) + + +created_at +DATETIME2 - + mcp_auth_code - - -mcp_auth_code - - -code -NVARCHAR(128) -PK - - -google_auth_id -INT -FK - - -client_id -NVARCHAR(100) - - -redirect_uri -NVARCHAR(2048) - - -code_challenge -NVARCHAR(255) - - -code_challenge_method -NVARCHAR(32) - - -scope? -NVARCHAR(255) - - -expires_at -DATETIME2 - - -used -TINYINT - - -created_at -DATETIME2 + + +mcp_auth_code + + +code +NVARCHAR(128) +PK + + +google_auth_id +INT +FK + + +client_id +NVARCHAR(100) + + +redirect_uri +NVARCHAR(2048) + + +code_challenge +NVARCHAR(255) + + +code_challenge_method +NVARCHAR(32) + + +scope? +NVARCHAR(255) + + +expires_at +DATETIME2 + + +used +TINYINT + + +created_at +DATETIME2 - + mcp_auth_code:sw->google_auth:n - - - + + + - - -subagentschedule - - -subagentschedule - - -id -INT -PK - - -company_id -INT -FK - - -desc? -NVARCHAR(MAX) - - -prompt -NVARCHAR(MAX) - - -skills? -NVARCHAR(MAX) - - -lastagentnote? -NVARCHAR(MAX) - - -max_itr -INT - - -cron -NVARCHAR(100) - - -created_at -DATETIME2 - - -lastrun_at? -DATETIME2 + + +mcp_token + + +mcp_token + + +id +INT +PK + + +google_auth_id +INT +FK + + +refresh_token +NVARCHAR(128) + + +client_id +NVARCHAR(100) + + +scope? +NVARCHAR(255) + + +expires_at +DATETIME2 + + +revoked +TINYINT + + +created_at +DATETIME2 - - -subagentschedule:w->company:n - - - + + +mcp_token:w->google_auth:n + + + - + __legend - - - -Legend - -PK - -primary key - -FK - -foreign key - -? - -nullable column - -— - -FOREIGN KEY constraint - -- - - -naming convention only, no constraint + + + +Legend + +PK + +primary key + +FK + +foreign key + +? + +nullable column + +— + +FOREIGN KEY constraint + +- - + +naming convention only, no constraint