mock shops more spelled out
This commit is contained in:
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 167 KiB |
@@ -1,466 +0,0 @@
|
||||
@startuml
|
||||
hide circle
|
||||
skinparam linetype ortho
|
||||
|
||||
entity "**accounts**" {
|
||||
+ ""account_id"": //serial [PK]//
|
||||
--
|
||||
*""email"": //text //
|
||||
*""verified"": //boolean //
|
||||
*""user_id"": //text [FK]//
|
||||
}
|
||||
|
||||
entity "**etsy_access_tokens**" {
|
||||
+ ""user_id"": //integer [PK][FK]//
|
||||
--
|
||||
*""access_token"": //text //
|
||||
*""refresh_token"": //text //
|
||||
*""access_token_expiration"": //timestamp with time zone //
|
||||
*""refresh_token_expiration"": //timestamp with time zone //
|
||||
}
|
||||
|
||||
entity "**etsy_oauth_requests**" {
|
||||
+ ""state"": //bytea [PK]//
|
||||
--
|
||||
*""code_verifier"": //bytea //
|
||||
*""expiration"": //timestamp with time zone //
|
||||
*""account_id"": //integer [FK]//
|
||||
}
|
||||
|
||||
entity "**etsy_store_events**" {
|
||||
+ ""store_id"": //text [PK][FK]//
|
||||
+ ""event_timestamp"": //timestamp with time zone [PK][FK]//
|
||||
+ ""event_id"": //text [PK][FK]//
|
||||
--
|
||||
*""platform"": //text [FK]//
|
||||
}
|
||||
|
||||
entity "**etsy_users**" {
|
||||
+ ""user_id"": //integer [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""shop_id"": //integer //
|
||||
}
|
||||
|
||||
entity "**mock_accounts**" {
|
||||
+ ""account_id"": //serial [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
}
|
||||
|
||||
entity "**mock_store_amazon**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**mock_store_big_cartel**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**mock_store_ebay**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**mock_store_ecwid**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**mock_store_shopify**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**mock_store_square_online**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**mock_store_squarespace**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**mock_store_tiktok**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**mock_store_walmart_marketplace**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**mock_store_wix**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**mock_store_woo_commerce**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**mock_store_zoho**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**mock_sync_group_listings**" {
|
||||
+ ""sync_group_id"": //integer [PK][FK]//
|
||||
+ ""order_index"": //integer [PK]//
|
||||
--
|
||||
*""platform"": //platform //
|
||||
*""shop_id"": //text //
|
||||
*""listing_id"": //text //
|
||||
}
|
||||
|
||||
entity "**mock_sync_groups**" {
|
||||
+ ""sync_group_id"": //serial [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
}
|
||||
|
||||
entity "**oauth_login_states**" {
|
||||
+ ""state"": //bytea [PK]//
|
||||
--
|
||||
*""expiration"": //timestamp with time zone //
|
||||
*""target_uri"": //text //
|
||||
}
|
||||
|
||||
entity "**oauth_tokens**" {
|
||||
+ ""access_token"": //text [PK]//
|
||||
--
|
||||
*""token_type"": //text //
|
||||
*""refresh_token"": //text //
|
||||
*""expiry"": //timestamp with time zone //
|
||||
*""id_token_issuer"": //text //
|
||||
*""id_token_audience"": //text[] //
|
||||
*""id_token_subject"": //text [FK]//
|
||||
*""id_token_expiry"": //timestamp with time zone //
|
||||
*""id_token_issued_at"": //timestamp with time zone //
|
||||
*""id_token_nonce"": //text //
|
||||
*""id_token_access_token_hash"": //text //
|
||||
*""claims"": //jsonb //
|
||||
}
|
||||
|
||||
entity "**oauth_users**" {
|
||||
+ ""user_id"": //text [PK]//
|
||||
--
|
||||
}
|
||||
|
||||
entity "**raw_store_events**" {
|
||||
+ ""platform"": //text [PK]//
|
||||
+ ""store_id"": //text [PK]//
|
||||
+ ""event_timestamp"": //timestamp with time zone [PK]//
|
||||
+ ""event_id"": //text [PK]//
|
||||
--
|
||||
*""raw_payload"": //jsonb //
|
||||
}
|
||||
|
||||
entity "**schema_migrations**" {
|
||||
+ ""version"": //bigint [PK]//
|
||||
--
|
||||
*""dirty"": //boolean //
|
||||
}
|
||||
|
||||
entity "**sync_group_listing_drafts**" {
|
||||
+ ""account_id"": //integer [PK][FK]//
|
||||
+ ""order_index"": //integer [PK]//
|
||||
--
|
||||
""platform"": //platform //
|
||||
""shop_id"": //text //
|
||||
""listing_id"": //text //
|
||||
}
|
||||
|
||||
entity "**sync_group_listings**" {
|
||||
+ ""sync_group_id"": //integer [PK][FK]//
|
||||
+ ""order_index"": //integer [PK]//
|
||||
--
|
||||
*""platform"": //platform //
|
||||
*""shop_id"": //text //
|
||||
*""listing_id"": //text //
|
||||
}
|
||||
|
||||
entity "**sync_groups**" {
|
||||
+ ""sync_group_id"": //serial [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
}
|
||||
|
||||
entity "**tiktok_store_events**" {
|
||||
+ ""store_id"": //text [PK][FK]//
|
||||
+ ""event_timestamp"": //timestamp with time zone [PK][FK]//
|
||||
+ ""event_id"": //text [PK][FK]//
|
||||
--
|
||||
*""platform"": //text [FK]//
|
||||
}
|
||||
|
||||
entity "**wix_store_events**" {
|
||||
+ ""store_id"": //text [PK][FK]//
|
||||
+ ""event_timestamp"": //timestamp with time zone [PK][FK]//
|
||||
+ ""event_id"": //text [PK][FK]//
|
||||
--
|
||||
*""platform"": //text [FK]//
|
||||
}
|
||||
|
||||
"**accounts**" }-- "**oauth_users**"
|
||||
|
||||
"**etsy_access_tokens**" ||-|| "**etsy_users**"
|
||||
|
||||
"**etsy_oauth_requests**" }-- "**accounts**"
|
||||
|
||||
"**etsy_store_events**" }-- "**raw_store_events**"
|
||||
|
||||
"**etsy_store_events**" }-- "**raw_store_events**"
|
||||
|
||||
"**etsy_store_events**" }-- "**raw_store_events**"
|
||||
|
||||
"**etsy_store_events**" }-- "**raw_store_events**"
|
||||
|
||||
"**etsy_users**" }-- "**accounts**"
|
||||
|
||||
"**mock_accounts**" }-- "**oauth_users**"
|
||||
|
||||
"**mock_accounts**" }-- "**oauth_users**"
|
||||
|
||||
"**mock_store_amazon**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_amazon**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_amazon**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_amazon**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_amazon**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_amazon**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_amazon**" }-- "**oauth_users**"
|
||||
|
||||
"**mock_store_big_cartel**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_big_cartel**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_big_cartel**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_big_cartel**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_big_cartel**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_big_cartel**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_big_cartel**" }-- "**oauth_users**"
|
||||
|
||||
"**mock_store_ebay**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_ebay**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_ebay**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_ebay**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_ebay**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_ebay**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_ebay**" }-- "**oauth_users**"
|
||||
|
||||
"**mock_store_ecwid**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_ecwid**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_ecwid**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_ecwid**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_ecwid**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_ecwid**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_ecwid**" }-- "**oauth_users**"
|
||||
|
||||
"**mock_store_shopify**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_shopify**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_shopify**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_shopify**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_shopify**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_shopify**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_shopify**" }-- "**oauth_users**"
|
||||
|
||||
"**mock_store_square_online**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_square_online**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_square_online**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_square_online**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_square_online**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_square_online**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_square_online**" }-- "**oauth_users**"
|
||||
|
||||
"**mock_store_squarespace**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_squarespace**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_squarespace**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_squarespace**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_squarespace**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_squarespace**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_squarespace**" }-- "**oauth_users**"
|
||||
|
||||
"**mock_store_tiktok**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_tiktok**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_tiktok**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_tiktok**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_tiktok**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_tiktok**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_tiktok**" }-- "**oauth_users**"
|
||||
|
||||
"**mock_store_walmart_marketplace**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_walmart_marketplace**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_walmart_marketplace**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_walmart_marketplace**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_walmart_marketplace**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_walmart_marketplace**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_walmart_marketplace**" }-- "**oauth_users**"
|
||||
|
||||
"**mock_store_wix**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_wix**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_wix**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_wix**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_wix**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_wix**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_wix**" }-- "**oauth_users**"
|
||||
|
||||
"**mock_store_woo_commerce**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_woo_commerce**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_woo_commerce**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_woo_commerce**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_woo_commerce**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_woo_commerce**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_woo_commerce**" }-- "**oauth_users**"
|
||||
|
||||
"**mock_store_zoho**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_zoho**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_zoho**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_zoho**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_zoho**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_zoho**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_store_zoho**" }-- "**oauth_users**"
|
||||
|
||||
"**mock_sync_group_listings**" }-- "**mock_sync_groups**"
|
||||
|
||||
"**mock_sync_groups**" }-- "**mock_accounts**"
|
||||
|
||||
"**mock_sync_groups**" }-- "**mock_accounts**"
|
||||
|
||||
"**oauth_tokens**" }-- "**oauth_users**"
|
||||
|
||||
"**sync_group_listing_drafts**" }-- "**accounts**"
|
||||
|
||||
"**sync_group_listing_drafts**" }-- "**accounts**"
|
||||
|
||||
"**sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**sync_groups**" }-- "**accounts**"
|
||||
|
||||
"**tiktok_store_events**" }-- "**raw_store_events**"
|
||||
|
||||
"**tiktok_store_events**" }-- "**raw_store_events**"
|
||||
|
||||
"**tiktok_store_events**" }-- "**raw_store_events**"
|
||||
|
||||
"**tiktok_store_events**" }-- "**raw_store_events**"
|
||||
|
||||
"**wix_store_events**" }-- "**raw_store_events**"
|
||||
|
||||
"**wix_store_events**" }-- "**raw_store_events**"
|
||||
|
||||
"**wix_store_events**" }-- "**raw_store_events**"
|
||||
|
||||
"**wix_store_events**" }-- "**raw_store_events**"
|
||||
@enduml
|
||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 209 KiB |
@@ -0,0 +1,570 @@
|
||||
@startuml
|
||||
hide circle
|
||||
skinparam linetype ortho
|
||||
set separator none
|
||||
|
||||
entity "**accounts**" {
|
||||
+ ""account_id"": //serial [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
}
|
||||
|
||||
entity "**shop_amazon**" {
|
||||
+ ""account_id"": //integer [PK][FK]//
|
||||
+ ""shop_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_amazon_listings**" {
|
||||
+ ""shop_id"": //text [PK]//
|
||||
+ ""listing_id"": //text [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_amazon_sync_group_listings**" {
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""sync_group_id"": //integer [FK]//
|
||||
*""shop_id"": //text [FK]//
|
||||
*""listing_id"": //text //
|
||||
*""order_index"": //integer //
|
||||
}
|
||||
|
||||
entity "**shop_big_cartel**" {
|
||||
+ ""account_id"": //integer [PK][FK]//
|
||||
+ ""shop_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_big_cartel_listings**" {
|
||||
+ ""shop_id"": //text [PK]//
|
||||
+ ""listing_id"": //text [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_big_cartel_sync_group_listings**" {
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""sync_group_id"": //integer [FK]//
|
||||
*""shop_id"": //text [FK]//
|
||||
*""listing_id"": //text //
|
||||
*""order_index"": //integer //
|
||||
}
|
||||
|
||||
entity "**shop_ebay**" {
|
||||
+ ""account_id"": //integer [PK][FK]//
|
||||
+ ""shop_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_ebay_listings**" {
|
||||
+ ""shop_id"": //text [PK]//
|
||||
+ ""listing_id"": //text [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_ebay_sync_group_listings**" {
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""sync_group_id"": //integer [FK]//
|
||||
*""shop_id"": //text [FK]//
|
||||
*""listing_id"": //text //
|
||||
*""order_index"": //integer //
|
||||
}
|
||||
|
||||
entity "**shop_ecwid**" {
|
||||
+ ""account_id"": //integer [PK][FK]//
|
||||
+ ""shop_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_ecwid_listings**" {
|
||||
+ ""shop_id"": //text [PK]//
|
||||
+ ""listing_id"": //text [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_ecwid_sync_group_listings**" {
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""sync_group_id"": //integer [FK]//
|
||||
*""shop_id"": //text [FK]//
|
||||
*""listing_id"": //text //
|
||||
*""order_index"": //integer //
|
||||
}
|
||||
|
||||
entity "**shop_shopify**" {
|
||||
+ ""account_id"": //integer [PK][FK]//
|
||||
+ ""shop_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_shopify_listings**" {
|
||||
+ ""shop_id"": //text [PK]//
|
||||
+ ""listing_id"": //text [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_shopify_sync_group_listings**" {
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""sync_group_id"": //integer [FK]//
|
||||
*""shop_id"": //text [FK]//
|
||||
*""listing_id"": //text //
|
||||
*""order_index"": //integer //
|
||||
}
|
||||
|
||||
entity "**shop_square_online**" {
|
||||
+ ""account_id"": //integer [PK][FK]//
|
||||
+ ""shop_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_square_online_listings**" {
|
||||
+ ""shop_id"": //text [PK]//
|
||||
+ ""listing_id"": //text [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_square_online_sync_group_listings**" {
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""sync_group_id"": //integer [FK]//
|
||||
*""shop_id"": //text [FK]//
|
||||
*""listing_id"": //text //
|
||||
*""order_index"": //integer //
|
||||
}
|
||||
|
||||
entity "**shop_squarespace**" {
|
||||
+ ""account_id"": //integer [PK][FK]//
|
||||
+ ""shop_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_squarespace_listings**" {
|
||||
+ ""shop_id"": //text [PK]//
|
||||
+ ""listing_id"": //text [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_squarespace_sync_group_listings**" {
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""sync_group_id"": //integer [FK]//
|
||||
*""shop_id"": //text [FK]//
|
||||
*""listing_id"": //text //
|
||||
*""order_index"": //integer //
|
||||
}
|
||||
|
||||
entity "**shop_tiktok**" {
|
||||
+ ""account_id"": //integer [PK][FK]//
|
||||
+ ""shop_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_tiktok_listings**" {
|
||||
+ ""shop_id"": //text [PK]//
|
||||
+ ""listing_id"": //text [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_tiktok_sync_group_listings**" {
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""sync_group_id"": //integer [FK]//
|
||||
*""shop_id"": //text [FK]//
|
||||
*""listing_id"": //text //
|
||||
*""order_index"": //integer //
|
||||
}
|
||||
|
||||
entity "**shop_walmart_marketplace**" {
|
||||
+ ""account_id"": //integer [PK][FK]//
|
||||
+ ""shop_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_walmart_marketplace_listings**" {
|
||||
+ ""shop_id"": //text [PK]//
|
||||
+ ""listing_id"": //text [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_walmart_marketplace_sync_group_listings**" {
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""sync_group_id"": //integer [FK]//
|
||||
*""shop_id"": //text [FK]//
|
||||
*""listing_id"": //text //
|
||||
*""order_index"": //integer //
|
||||
}
|
||||
|
||||
entity "**shop_wix**" {
|
||||
+ ""account_id"": //integer [PK][FK]//
|
||||
+ ""shop_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_wix_listings**" {
|
||||
+ ""shop_id"": //text [PK]//
|
||||
+ ""listing_id"": //text [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_wix_sync_group_listings**" {
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""sync_group_id"": //integer [FK]//
|
||||
*""shop_id"": //text [FK]//
|
||||
*""listing_id"": //text //
|
||||
*""order_index"": //integer //
|
||||
}
|
||||
|
||||
entity "**shop_woo_commerce**" {
|
||||
+ ""account_id"": //integer [PK][FK]//
|
||||
+ ""shop_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_woo_commerce_listings**" {
|
||||
+ ""shop_id"": //text [PK]//
|
||||
+ ""listing_id"": //text [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_woo_commerce_sync_group_listings**" {
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""sync_group_id"": //integer [FK]//
|
||||
*""shop_id"": //text [FK]//
|
||||
*""listing_id"": //text //
|
||||
*""order_index"": //integer //
|
||||
}
|
||||
|
||||
entity "**shop_zoho**" {
|
||||
+ ""account_id"": //integer [PK][FK]//
|
||||
+ ""shop_id"": //text [PK]//
|
||||
--
|
||||
*""user_id"": //text [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_zoho_listings**" {
|
||||
+ ""shop_id"": //text [PK]//
|
||||
+ ""listing_id"": //text [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
entity "**shop_zoho_sync_group_listings**" {
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""sync_group_id"": //integer [FK]//
|
||||
*""shop_id"": //text [FK]//
|
||||
*""listing_id"": //text //
|
||||
*""order_index"": //integer //
|
||||
}
|
||||
|
||||
entity "**sync_group_listing_order_indexes**" {
|
||||
--
|
||||
*""sync_group_id"": //integer [FK]//
|
||||
*""order_index"": //integer //
|
||||
}
|
||||
|
||||
entity "**sync_groups**" {
|
||||
+ ""sync_group_id"": //serial [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""name"": //text //
|
||||
}
|
||||
|
||||
"**accounts**" }-- "**public.oauth_users**"
|
||||
|
||||
"**shop_amazon**" }-- "**accounts**"
|
||||
|
||||
"**shop_amazon**" }-- "**accounts**"
|
||||
|
||||
"**shop_amazon**" }-- "**public.oauth_users**"
|
||||
|
||||
"**shop_amazon_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_amazon_listings**" }-- "**shop_amazon**"
|
||||
|
||||
"**shop_amazon_sync_group_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_amazon_sync_group_listings**" }-- "**shop_amazon**"
|
||||
|
||||
"**shop_amazon_sync_group_listings**" }-- "**shop_amazon_listings**"
|
||||
|
||||
"**shop_amazon_sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**shop_amazon_sync_group_listings**" }-- "**sync_group_listing_order_indexes**"
|
||||
|
||||
"**shop_big_cartel**" }-- "**accounts**"
|
||||
|
||||
"**shop_big_cartel**" }-- "**accounts**"
|
||||
|
||||
"**shop_big_cartel**" }-- "**public.oauth_users**"
|
||||
|
||||
"**shop_big_cartel_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_big_cartel_listings**" }-- "**shop_big_cartel**"
|
||||
|
||||
"**shop_big_cartel_sync_group_listings**" }-- "**sync_group_listing_order_indexes**"
|
||||
|
||||
"**shop_big_cartel_sync_group_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_big_cartel_sync_group_listings**" }-- "**shop_big_cartel**"
|
||||
|
||||
"**shop_big_cartel_sync_group_listings**" }-- "**shop_big_cartel_listings**"
|
||||
|
||||
"**shop_big_cartel_sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**shop_ebay**" }-- "**accounts**"
|
||||
|
||||
"**shop_ebay**" }-- "**accounts**"
|
||||
|
||||
"**shop_ebay**" }-- "**public.oauth_users**"
|
||||
|
||||
"**shop_ebay_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_ebay_listings**" }-- "**shop_ebay**"
|
||||
|
||||
"**shop_ebay_sync_group_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_ebay_sync_group_listings**" }-- "**shop_ebay**"
|
||||
|
||||
"**shop_ebay_sync_group_listings**" }-- "**shop_ebay_listings**"
|
||||
|
||||
"**shop_ebay_sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**shop_ebay_sync_group_listings**" }-- "**sync_group_listing_order_indexes**"
|
||||
|
||||
"**shop_ecwid**" }-- "**accounts**"
|
||||
|
||||
"**shop_ecwid**" }-- "**accounts**"
|
||||
|
||||
"**shop_ecwid**" }-- "**public.oauth_users**"
|
||||
|
||||
"**shop_ecwid_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_ecwid_listings**" }-- "**shop_ecwid**"
|
||||
|
||||
"**shop_ecwid_sync_group_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_ecwid_sync_group_listings**" }-- "**shop_ecwid**"
|
||||
|
||||
"**shop_ecwid_sync_group_listings**" }-- "**shop_ecwid_listings**"
|
||||
|
||||
"**shop_ecwid_sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**shop_ecwid_sync_group_listings**" }-- "**sync_group_listing_order_indexes**"
|
||||
|
||||
"**shop_shopify**" }-- "**accounts**"
|
||||
|
||||
"**shop_shopify**" }-- "**accounts**"
|
||||
|
||||
"**shop_shopify**" }-- "**public.oauth_users**"
|
||||
|
||||
"**shop_shopify_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_shopify_listings**" }-- "**shop_shopify**"
|
||||
|
||||
"**shop_shopify_sync_group_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_shopify_sync_group_listings**" }-- "**shop_shopify**"
|
||||
|
||||
"**shop_shopify_sync_group_listings**" }-- "**shop_shopify_listings**"
|
||||
|
||||
"**shop_shopify_sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**shop_shopify_sync_group_listings**" }-- "**sync_group_listing_order_indexes**"
|
||||
|
||||
"**shop_square_online**" }-- "**accounts**"
|
||||
|
||||
"**shop_square_online**" }-- "**accounts**"
|
||||
|
||||
"**shop_square_online**" }-- "**public.oauth_users**"
|
||||
|
||||
"**shop_square_online_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_square_online_listings**" }-- "**shop_square_online**"
|
||||
|
||||
"**shop_square_online_sync_group_listings**" }-- "**sync_group_listing_order_indexes**"
|
||||
|
||||
"**shop_square_online_sync_group_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_square_online_sync_group_listings**" }-- "**shop_square_online**"
|
||||
|
||||
"**shop_square_online_sync_group_listings**" }-- "**shop_square_online_listings**"
|
||||
|
||||
"**shop_square_online_sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**shop_squarespace**" }-- "**accounts**"
|
||||
|
||||
"**shop_squarespace**" }-- "**accounts**"
|
||||
|
||||
"**shop_squarespace**" }-- "**public.oauth_users**"
|
||||
|
||||
"**shop_squarespace_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_squarespace_listings**" }-- "**shop_squarespace**"
|
||||
|
||||
"**shop_squarespace_sync_group_listings**" }-- "**sync_group_listing_order_indexes**"
|
||||
|
||||
"**shop_squarespace_sync_group_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_squarespace_sync_group_listings**" }-- "**shop_squarespace**"
|
||||
|
||||
"**shop_squarespace_sync_group_listings**" }-- "**shop_squarespace_listings**"
|
||||
|
||||
"**shop_squarespace_sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**shop_tiktok**" }-- "**accounts**"
|
||||
|
||||
"**shop_tiktok**" }-- "**accounts**"
|
||||
|
||||
"**shop_tiktok**" }-- "**public.oauth_users**"
|
||||
|
||||
"**shop_tiktok_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_tiktok_listings**" }-- "**shop_tiktok**"
|
||||
|
||||
"**shop_tiktok_sync_group_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_tiktok_sync_group_listings**" }-- "**shop_tiktok**"
|
||||
|
||||
"**shop_tiktok_sync_group_listings**" }-- "**shop_tiktok_listings**"
|
||||
|
||||
"**shop_tiktok_sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**shop_tiktok_sync_group_listings**" }-- "**sync_group_listing_order_indexes**"
|
||||
|
||||
"**shop_walmart_marketplace**" }-- "**accounts**"
|
||||
|
||||
"**shop_walmart_marketplace**" }-- "**accounts**"
|
||||
|
||||
"**shop_walmart_marketplace**" }-- "**public.oauth_users**"
|
||||
|
||||
"**shop_walmart_marketplace_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_walmart_marketplace_listings**" }-- "**shop_walmart_marketplace**"
|
||||
|
||||
"**shop_walmart_marketplace_sync_group_listings**" }-- "**sync_group_listing_order_indexes**"
|
||||
|
||||
"**shop_walmart_marketplace_sync_group_listings**" }-- "**shop_walmart_marketplace**"
|
||||
|
||||
"**shop_walmart_marketplace_sync_group_listings**" }-- "**shop_walmart_marketplace_listings**"
|
||||
|
||||
"**shop_walmart_marketplace_sync_group_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_walmart_marketplace_sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**shop_wix**" }-- "**accounts**"
|
||||
|
||||
"**shop_wix**" }-- "**accounts**"
|
||||
|
||||
"**shop_wix**" }-- "**public.oauth_users**"
|
||||
|
||||
"**shop_wix_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_wix_listings**" }-- "**shop_wix**"
|
||||
|
||||
"**shop_wix_sync_group_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_wix_sync_group_listings**" }-- "**shop_wix**"
|
||||
|
||||
"**shop_wix_sync_group_listings**" }-- "**shop_wix_listings**"
|
||||
|
||||
"**shop_wix_sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**shop_wix_sync_group_listings**" }-- "**sync_group_listing_order_indexes**"
|
||||
|
||||
"**shop_woo_commerce**" }-- "**accounts**"
|
||||
|
||||
"**shop_woo_commerce**" }-- "**accounts**"
|
||||
|
||||
"**shop_woo_commerce**" }-- "**public.oauth_users**"
|
||||
|
||||
"**shop_woo_commerce_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_woo_commerce_listings**" }-- "**shop_woo_commerce**"
|
||||
|
||||
"**shop_woo_commerce_sync_group_listings**" }-- "**sync_group_listing_order_indexes**"
|
||||
|
||||
"**shop_woo_commerce_sync_group_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_woo_commerce_sync_group_listings**" }-- "**shop_woo_commerce**"
|
||||
|
||||
"**shop_woo_commerce_sync_group_listings**" }-- "**shop_woo_commerce_listings**"
|
||||
|
||||
"**shop_woo_commerce_sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**shop_zoho**" }-- "**accounts**"
|
||||
|
||||
"**shop_zoho**" }-- "**accounts**"
|
||||
|
||||
"**shop_zoho**" }-- "**public.oauth_users**"
|
||||
|
||||
"**shop_zoho_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_zoho_listings**" }-- "**shop_zoho**"
|
||||
|
||||
"**shop_zoho_sync_group_listings**" }-- "**accounts**"
|
||||
|
||||
"**shop_zoho_sync_group_listings**" }-- "**shop_zoho**"
|
||||
|
||||
"**shop_zoho_sync_group_listings**" }-- "**shop_zoho_listings**"
|
||||
|
||||
"**shop_zoho_sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**shop_zoho_sync_group_listings**" }-- "**sync_group_listing_order_indexes**"
|
||||
|
||||
"**sync_group_listing_order_indexes**" }-- "**sync_groups**"
|
||||
|
||||
"**sync_groups**" }-- "**accounts**"
|
||||
@enduml
|
||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 52 KiB |
@@ -0,0 +1,150 @@
|
||||
@startuml
|
||||
hide circle
|
||||
skinparam linetype ortho
|
||||
set separator none
|
||||
|
||||
entity "**accounts**" {
|
||||
+ ""account_id"": //serial [PK]//
|
||||
--
|
||||
*""email"": //text //
|
||||
*""verified"": //boolean //
|
||||
*""user_id"": //text [FK]//
|
||||
}
|
||||
|
||||
entity "**etsy_access_tokens**" {
|
||||
+ ""user_id"": //integer [PK][FK]//
|
||||
--
|
||||
*""access_token"": //text //
|
||||
*""refresh_token"": //text //
|
||||
*""access_token_expiration"": //timestamp with time zone //
|
||||
*""refresh_token_expiration"": //timestamp with time zone //
|
||||
}
|
||||
|
||||
entity "**etsy_oauth_requests**" {
|
||||
+ ""state"": //bytea [PK]//
|
||||
--
|
||||
*""code_verifier"": //bytea //
|
||||
*""expiration"": //timestamp with time zone //
|
||||
*""account_id"": //integer [FK]//
|
||||
}
|
||||
|
||||
entity "**etsy_store_events**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
+ ""event_timestamp"": //timestamp with time zone [PK]//
|
||||
+ ""event_id"": //text [PK]//
|
||||
--
|
||||
*""platform"": //text [FK]//
|
||||
}
|
||||
|
||||
entity "**etsy_users**" {
|
||||
+ ""user_id"": //integer [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
*""shop_id"": //integer //
|
||||
}
|
||||
|
||||
entity "**oauth_login_states**" {
|
||||
+ ""state"": //bytea [PK]//
|
||||
--
|
||||
*""expiration"": //timestamp with time zone //
|
||||
*""target_uri"": //text //
|
||||
}
|
||||
|
||||
entity "**oauth_tokens**" {
|
||||
+ ""access_token"": //text [PK]//
|
||||
--
|
||||
*""token_type"": //text //
|
||||
*""refresh_token"": //text //
|
||||
*""expiry"": //timestamp with time zone //
|
||||
*""id_token_issuer"": //text //
|
||||
*""id_token_audience"": //text[] //
|
||||
*""id_token_subject"": //text [FK]//
|
||||
*""id_token_expiry"": //timestamp with time zone //
|
||||
*""id_token_issued_at"": //timestamp with time zone //
|
||||
*""id_token_nonce"": //text //
|
||||
*""id_token_access_token_hash"": //text //
|
||||
*""claims"": //jsonb //
|
||||
}
|
||||
|
||||
entity "**oauth_users**" {
|
||||
+ ""user_id"": //text [PK]//
|
||||
--
|
||||
}
|
||||
|
||||
entity "**raw_store_events**" {
|
||||
+ ""platform"": //text [PK]//
|
||||
+ ""store_id"": //text [PK]//
|
||||
+ ""event_timestamp"": //timestamp with time zone [PK]//
|
||||
+ ""event_id"": //text [PK]//
|
||||
--
|
||||
*""raw_payload"": //jsonb //
|
||||
}
|
||||
|
||||
entity "**schema_migrations**" {
|
||||
+ ""version"": //bigint [PK]//
|
||||
--
|
||||
*""dirty"": //boolean //
|
||||
}
|
||||
|
||||
entity "**sync_group_listing_drafts**" {
|
||||
+ ""account_id"": //integer [PK][FK]//
|
||||
+ ""order_index"": //integer [PK]//
|
||||
--
|
||||
""platform"": //platform //
|
||||
""shop_id"": //text //
|
||||
""listing_id"": //text //
|
||||
}
|
||||
|
||||
entity "**sync_group_listings**" {
|
||||
+ ""sync_group_id"": //integer [PK][FK]//
|
||||
+ ""order_index"": //integer [PK]//
|
||||
--
|
||||
*""platform"": //platform //
|
||||
*""shop_id"": //text //
|
||||
*""listing_id"": //text //
|
||||
}
|
||||
|
||||
entity "**sync_groups**" {
|
||||
+ ""sync_group_id"": //serial [PK]//
|
||||
--
|
||||
*""account_id"": //integer [FK]//
|
||||
}
|
||||
|
||||
entity "**tiktok_store_events**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
+ ""event_timestamp"": //timestamp with time zone [PK]//
|
||||
+ ""event_id"": //text [PK]//
|
||||
--
|
||||
*""platform"": //text [FK]//
|
||||
}
|
||||
|
||||
entity "**wix_store_events**" {
|
||||
+ ""store_id"": //text [PK]//
|
||||
+ ""event_timestamp"": //timestamp with time zone [PK]//
|
||||
+ ""event_id"": //text [PK]//
|
||||
--
|
||||
*""platform"": //text [FK]//
|
||||
}
|
||||
|
||||
"**accounts**" }-- "**oauth_users**"
|
||||
|
||||
"**etsy_access_tokens**" ||-|| "**etsy_users**"
|
||||
|
||||
"**etsy_oauth_requests**" }-- "**accounts**"
|
||||
|
||||
"**etsy_store_events**" }-- "**raw_store_events**"
|
||||
|
||||
"**etsy_users**" }-- "**accounts**"
|
||||
|
||||
"**oauth_tokens**" }-- "**oauth_users**"
|
||||
|
||||
"**sync_group_listing_drafts**" }-- "**accounts**"
|
||||
|
||||
"**sync_group_listings**" }-- "**sync_groups**"
|
||||
|
||||
"**sync_groups**" }-- "**accounts**"
|
||||
|
||||
"**tiktok_store_events**" }-- "**raw_store_events**"
|
||||
|
||||
"**wix_store_events**" }-- "**raw_store_events**"
|
||||
@enduml
|
||||
Reference in New Issue
Block a user