Developer Portal Service — Data Model
Version: 1.0 Status: Draft Owner: Product + Developer Relations (DevRel) Last Updated: 2026-04-20
1. Intent
Describe the PostgreSQL schema (devportal), Redis keyspace, and S3 object layout backing the service. Includes TS interfaces, indexes, RLS policies, and ID prefix conventions.
2. ID Prefix Convention
| Prefix | Aggregate |
|---|---|
dev_ | DeveloperAccount |
key_ | ApiKey metadata |
vrf_ | VerifySession |
vtmpl_ | VerifyTemplate |
sdkr_ | SdkRelease |
doc_ | DocsArticle |
3. Postgres Tables
devportal.developer_accounts— TBDdevportal.api_key_metadata— TBDdevportal.production_key_requests— TBDdevportal.verify_templates— TBDdevportal.sdk_releases— TBDdevportal.docs_articles— TBD
4. Redis Keyspace
devportal:verify:{verificationId}— VerifySession state, TTL = ttlSeconds — TBDdevportal:verify:rate:tenant:{tenantId}:{minute}— per-tenant rate counter — TBDdevportal:verify:rate:recipient:{hash}:{hour}— per-recipient cap — TBDdevportal:consumption:{keyId}:{range}— analytics cache, TTL 30 s — TBD
5. S3 / Object Store Layout
s3://ghasi-devportal/sdk/{language}/{version}/...— TBDs3://ghasi-devportal/openapi/{version}/openapi.{json|yaml}— TBDs3://ghasi-devportal/postman/{version}/collection.json— TBD
6. RLS Policies
- TBD
7. Indexes
- TBD
8. TS Interfaces
- TBD