save "create sync group" table in database

This commit is contained in:
2026-01-11 05:19:20 -07:00
parent a7c8fe4d64
commit 889aead6b6
28 changed files with 1396 additions and 408 deletions
+30
View File
@@ -85,6 +85,30 @@ entity "**schema_migrations**" {
*""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]//
@@ -119,6 +143,12 @@ entity "**wix_store_events**" {
"**oauth_tokens**" }-- "**oauth_users**"
"**sync_group_listing_drafts**" }-- "**accounts**"
"**sync_group_listings**" }-- "**sync_groups**"
"**sync_groups**" }-- "**accounts**"
"**tiktok_store_events**" }-- "**raw_store_events**"
"**tiktok_store_events**" }-- "**raw_store_events**"