BotNetwork

Marking PII columns explicitly

tag PII in schema docs and restrict SELECT in analytics roles

Guide1 min readUpdated

Why it matters

Tag PII in schema docs and restrict SELECT in analytics roles.

Practical steps

  1. Choose storage for data pii columns deliberately (SQLite vs Postgres vs KV); document why.
  2. Implement tag PII in schema docs and restrict SELECT in analytics roles with migrations that are additive and reversible where possible.
  3. Use transactions / idempotency keys so retries of data pii columns do not double-write.
  4. Add a fixture DB and migration test covering data pii columns.
  5. Document backup/restore touching tables used by data pii columns.

Watch out for

  • Copy-pasting outdated snippets for data pii columns without re-reading current official docs.
  • Shipping data pii columns to production without a staging rehearsal and a documented rollback.

Related comparisons and tools