Both approaches can be sensible. The choice depends on how much type feedback, query visibility, and migration discipline the project actually needs.
SELECT id, name, created_at
FROM files
WHERE owner_id = $1
ORDER BY created_at DESC;#DATABASE#GO#SQL