← Skills
UPPER_CASE keywords: SELECT, FROM, WHERE, JOINsnake_case tables and columnsSELECT
u.id,
u.email,
p.display_name
FROM
users u
INNER JOIN profiles p ON p.user_id = u.id
WHERE
u.is_active = TRUE
ORDER BY
u.created_at DESC;
users, save_games)id. FK: referenced_table_id (user_id)idx_table_column (idx_users_email)WHERE id = ? or WHERE id = :id)EXPLAIN ANALYZE on hot paths. Prefer JOIN over subqueriesNOT NULL unless nulls are explicit. created_at / updated_at on every tableDECIMAL for money, UUID for external IDsup() and down()BEGIN / COMMIT / ROLLBACK for multi-statement operationspgcrypto or equivalent for db-side hashing