The simplest Sync Rules are for “global” data — synced to all users.
For example, the following Sync Rules sync all todos and only unarchived lists to all users:
Copy
bucket_definitions: global_bucket: data: # Sync all todos - SELECT * FROM todos # Sync all lists except archived ones - SELECT * FROM lists WHERE archived = false
Note: Table names within Sync Rules must match the names defined in the client-side schema.