Design an agent memory schema that survives production: timestamps, tenancy, permissions, and indexes, plus a copyable Postgres and pgvector schema example.