data types Shipped
What this lens looks for
Validates SQLite type affinity and the 5-rule algorithm, ensures STRICT mode is considered for type safety, confirms TEXT is used instead of STRING (non-standard), validates NUMERIC affinity behavior for decimal precision, and checks type mapping consistency between SQLite and PostgreSQL for synced tables.
What its verifier checks
- No
STRINGtype used anywhere; all text columns useTEXT - Type affinity explicitly understood for each column (INTEGER, TEXT, REAL, BLOB, NUMERIC)
- STRICT mode enabled on tables requiring strict type enforcement
- NUMERIC columns used only for decimal precision work (not boolean, not enum)
- Boolean columns use
INTEGERorTEXTwith CHECK constraint, neverBOOLEAN - Datetime columns use
TEXT(ISO 8601) orINTEGER(Unix timestamp) with rationale documented - For synced tables: cross-database type mapping documented (SQLite ↔ PostgreSQL equivalence)
- No reliance on implicit type coercion in queries