forked from sass/tipibot
Sync pb
This commit is contained in:
@@ -44,6 +44,17 @@ Add the following fields:
|
||||
|
||||
> **Tip:** Set `user_id` as a unique index under **Indexes** tab.
|
||||
|
||||
The table above is only the base schema. After creating the collections, run:
|
||||
|
||||
```bash
|
||||
python scripts/sync_pb_schema.py
|
||||
```
|
||||
|
||||
It derives the complete field list from the bot's user model and adds whatever
|
||||
is missing to **both** collections (stats, fishing, prestige, quests, ...).
|
||||
Re-run it after every update - PocketBase silently drops writes to fields that
|
||||
are not in the collection schema, which breaks features without any error.
|
||||
|
||||
Set **API rules** (all four: list, view, create, update) to admin-only (leave blank / locked).
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user